microcontroller

What is the difference of a Relay controller verses a Micro Controller?

What is the difference of a Relay controller verses a Micro Controller? I'm looking into Arduino boards and just getting into this stuff wanted to know the difference. understandable this is not a programming question but I am developing in PHP and would like to know what the difference is before I start to code to make sure I'm going ...

Circuit Design book for programmers

I need a book that teaches circuit design that will be useful when programming microcontrollers. Usually when I join a project, before I can start programming any logic into the microcontroller, it needs to be integrated into a circuit with a power supply, transducer, etc. I find that I'm lacking the skills to do this myself but once the...

What microcontroller (and other components) would I need to create a timer device?

As a hobby project to keep myself out of trouble, I'd like to build a little programmer timer device. It will basically accept a program which is a list of times and then count down from each time. I'd like to use a C or Java micro controller. I have used BASIC in the past to make a little autonomous robot, so this time around I'd like ...

How to turn on a single Arduino port using C#?

I have an Arduino Duemilanove USB. I have just a single LED wired up to a single port on it. I want to use C# to turn on this LED. Does anyone have a simple example of how to do this? Just the most basic on/off code is what I'm looking for. On a side note, I know there are some libraries written for .NET communication with Arduino. The ...

Code execution in embedded systems

Hi all, I am working in embedded system domain. I would like to know how a code gets executed from a microcontroller(uC need not be subjective, in general), starting from a C file. Also i would like to know stuffs like startup code, object file, etc. I couldnt find any online documentations regarding the above stuff. If possible, please ...

Whats the best resource to learn Assembly language for PIC microcontroller's

I'm going to start working on a project where I need to have a decent understanding of Assembly language for the PIC microcontroller's. I'm intimately familiar with C/C++, so I know how to code for the most part, and I have done many projects for the PIC already so I understand the architecture, but have done all my programming for it i...

no response from microsd card.

Hi, I was trying to interface a 64 mb microsd card with microchip mcu. I send cmd0-addr3-addr2-addr1-addr0-crc but i didn't get any response....what should I do next ...

I have an embedded project idea that i want to start. I have many questions.

This is my first post on stackoverflow, I've heard of this website and I think its awesome! Let's see if i can get some guidance on how to start my project. The Idea: Basically I want to build my own custom OSC controller (OSC is a protocol based off UDP with the intention of replacing MIDI). What's interesting about this is that I want...

How to generate random numbers in microcontrollers efficiently?

Any general guidelines? Or particular fast method? Thanks in advance. ...

Books to read on networking and microcontrollers?

Hi folks, I was recently elected programming team lead for my community college's engineering club. We're going to put a solar panel on a roof. The programming part involves Controlling servos to adjust the orientation of the panel Sending data on the electricity collected by the panel to a server (we haven't decided whether we want...

Fast Multiplication

Hi! I'm writing code for a microprocessor with fast integer arithmetic and not so fast float arithmetic. I need to divide an integer by a number from 1 to 9 and convert result back to integer. I made a float array with members like 0, 1, 0.5, 0.3333 etc. But i think there is MAGIC constants (like 0x55555556) for a numbers except (1/3)....

Code Banking with SDCC

I need to use code banking in an 8051 microcontroller to fit all the code. SDCC says it supports it, but I'm having trouble at the linking step. I have a test project with 3 files: main.c, func1.c, and bank.asm. The main function should call func1() and then sit in a while loop. But func1() is in a different code bank. // main.c int...

Micro-controller 8051: How to get addresses of inputs to JB & CJNE instructions?

I'm implementing whole set of 8051 instructions in VHDL from scratch. Most of things went well but stumbled on these 2 instructions: JB bit,rel 00100000 bit_address rel_address CJNE A,#data,rel 10110100 immediate_data rel_address Any help or hint is greatly appreciated. Thank you in advance! ...

How to Get Ambient Temp from Arduino Lilypad Temperature Sensor

I am connecting a LilyPad Temperature sensor to a LilyPad Arduino 328 Main Board with the goal of reading fairly accurate ambient temperature readings. The sensor is receiving power and giving a responses I'm able to read over serial. The problem I am confronted with is that reading from the sensor is giving me very unusual - although ...

Using Printf to display on serial port of an ARM microcontroller

I would like to use printf to diplay text on a serial port of an ARM microcontroller. I am unable to do so. Any help is appreciated. My init_serial looks like this void init_serial (void) { PINSEL0 = 0x00050000; /* Enable RXD1 TxD1 */ U1LCR = 0x00000083; /*8 bits, 1 Stop bit */ U1DLL = 0x000000C2; /*9600 Baud Rate @12MHz VPB Clock */ ...

Coding realtime clock for for ARM architecture based microcontroller

I need to write a program to implement real time clock for ARM architecture. example: LPC213x It should display Hour Minute and Seconds. I have no idea about ARM so having trouble getting started. My code below is not working // ... int main (void) { int hour=0; int min=0; int sec; init_serial(); /* Init UART */ I...

clear code for counting from 0 to 255 using 8-bit datatype

I was wondering if there is a clean way of counting from 0 to 255 using an 8 bit datatype, something like: for(uint8_t i(0);i<=255;++i) { .... } This obviously will not work but it makes it clear you want to count from 0 to 255. A working solution would be something like: uint8_t i(0); do { ... ++i; } while(i > 0); Bu...

Which embedded (microcontroller) platform to move to

Hi all. I have been programming with 8bit PICs for quite some time but now need to move to something more powerful. I would like a family of chips that: I can get a good (free) IDE for Solderable packages, QFN or similar (arm9 out) Scales well -- some of my projects will require a small chip for PWM / switches etc, but I'd ultimately...

Display previously received UART values

This should be easy to answer to anyone familiar with C. I want to display the previous values of a variable (receive register of a UART (RS-232) on a microcontroller) on an LCD. This is my current implementation and it works ok. But I'd like to know if there is a way to spend less time in my interrupt routine. Currently, the peripheral ...

Thermometer using DS1620 IC and arm microcontroller

I am working on a project in which I have to use DS1620 IC to display temperature using ARM LPC23xx micro controller. I want to write code in C. I am a newbie in embedded systems and I have to finish this in 24 Hrs. Please help in any way possible. ...