microcontroller

How can I reprogram a USB "easy button"?

I have a USB "easy button"- is a USB cable attached to a large button. It appears as a keyboard to the computer. When I push the button, it sends the keys Start+R and then quickly types in a pre-configured URL. I am fairly certain that the company that produces these buttons sets the URL via some sort of software over USB. How could I re...

Starting hardware development

I am looking to start simple hardware development, and hopefully progress enough to learn from reverse engineering. I would like to start with a micro-controller and have a few in mind, such as Mbed and Arduino. What should I go with? I was thinking maybe mbed because it has USB and ethernet features, among a few others, but I don't re...

SD File Systems for access with SPI

I found this site: http://www.pjrc.com/tech/8051/ide/fat32.html Basically it's a great overview of the FAT32 filesystem. It so far has proven to be very easy to understand, I was wondering if anyone out there knew of any similar documents/how-to's for different Linux Filesystems, I am interested in how they store data on drives! I did...

Writing Device Drivers for a Microcontroller(any)

Hi All , I am very enthusiastic in writing device drivers for a microcontroller(like PIC, Atmel etc). Since I am a newbie in this controller-coding-area I just want to know whether writing device drivers for controller is same as we write for linux( or any other OS) ? Also can anyone suggest some online device driver building tutorial ...

looking for sugestions on how to get started with embeded xp

In the past I have worked with the microchip PIC family, but I would like to broaden my horizons by working with XP embedded systems, and I am looking for suggestions on where to start. ...

Why 24 bits registers?

Hi, In my work I deal with different micro-controllers, micro-processors and DSP processors. Many of them have 24-bits registers and counters. I know how to use them, this is not my question. My question is why do they have 24-bits register! why not make it 32 bit? and as I know, it is not a problem of size, because the registers are ...

Interfacing PIC Microcontroller with Java on PC using USB

HI! I want to interface PIC18F4550 with Java program and make it cross-platform initially. There are only one way I now Java has is javacomm. But i want it to be USB because not every laptop has RS232 port nowadays. Waht are the ways of interfacing PIC with Java you can suggest to make it really cross-platform and avoid writing driver fo...

Initializing SD card in SPI issues

Sorry for the length of this question, but I thought it best to show as much detail to fend of questions asking if I had done A when I had already done A... ;-) I've had a look at the "micro-SD card initialization using SPI interface" thread and didn't see any answers that matched my issue (i.e. things I haven't already tried). I have a...

Where can I find soft-multiply and divide algorithms?

I'm working on a micro-controller without hardware multiply and divide. I need to cook up software algorithms for these basic operations that are a nice balance of compact size and efficiency. My C compiler port will employ these algos, not the the C developers themselves. My google-fu is so far turning up mostly noise on this topic. ...

[8051 microcontroller] sleep

I'm supposed to write a program that will send some values to registers, then wait one second, then change the values. The thing is, I'm unable to find the instruction that will halt operations for one second. ...

A PDF reader - please guide - a step by step guidance - reference to guidance-

I have to make a hardware project using a microcontroller, memory, screens, etc. Is it possible to make an independent PDF / documents reader, which is capable of running on battery power? Please note I don't want to use any technology which needs licensing. It must be all freeware readers, etc., and programing language can be assembly...

Compile-time lookup array creation for ANSI-C?

A previous programmer preferred to generate large lookup tables (arrays of constants) to save runtime CPU cycles rather than calculating values on the fly. He did this by creating custom Visual C++ projects that were unique for each individual lookup table... which generate array files that are then #included into a completely separate A...

Declaration of arrays before "normal" variables in c?

Hi We are currently developing an application for a msp430 MCU, and are running into some weird problems. We discovered that declaring arrays withing a scope after declaration of "normal" variables, sometimes causes what seems to be undefined behavior. Like this: foo(int a, int *b); int main(void) { int x = 2; int arr[5]; ...

How could I represent a interrupt (for microcontrollers) in a flowchart?

Does anyone have any visual examples? ...

Looking for ideas for a simple pattern matching algorithm to run on a microcontroller

I'm working on a project to recognize simple audio patterns. I have two data sets, each made up of between 4 and 32 note/duration pairs. One set is predefined, the other is from an incoming data stream. The length of the two strongly correlated data sets is often different, but roughly the same "shape". My goal is to come up with some s...

PIC 18 controller as serial to ethernet bridge

Hi Geeks, I am planning to use PIC18F6*** serial microntroller for my project serial-ethernet converter. Once I will put my hex code in PIC micro-controller for send recieve serial port data I will use the windows hyper-terminal and for checking the ethernet data is there any application in windows? If my question is not clear I am re...

How to calculate timer value to use to generate a timer IRQ

I'm using an ARM7 core microcontroller. I'm unsure of how to calculate what T1LD register value to load to the timer to allow it to generate an IRQ every x ms. The only information that I can find in the documentation states "The timer interval is calcualted as follows" Interval = ((TxD)xPrescalar)/Source Clock I'm not sure...

AVR Analog Comparator + Internal Pullup?

I have what I hope is a simple question pertaining to the Atmel AVR microcontrollers. So I want to use the ATTiny85's Analog Comparator to determine if a signal is above or below a threshold. This signal is normally "floating" and pulled toward ground when "active" (i.e. it's an active low - open collector signal). If I enable the pullup...

linear interpolation on 8bit microcontroller

I need to do a linear interpolation over time between two values on an 8 bit PIC microcontroller (Specifically 16F627A but that shouldn't matter) using PIC assembly language. Although I'm looking for an algorithm here as much as actual code. I need to take an 8 bit starting value, an 8 bit ending value and a position between the two (Cu...

Writing to EEPROM on PIC

Are there any PIC microcontroller programmers here? I'm learning some PIC microcontroller programming using a pickit2 and the 16F690 chip that came with it. I'm working through trying out the various facilities at the moment. I can sucessfully read a byte from the EEPROM in code if I set the EEPROM vaklue in MPLAB but I don't seem to be...