microcontroller

PIC Assembly function calling

I'm writing a pretty basic program in PIC18 assembly. It requires that I write a subroutine to multiply two 16-bit numbers... This is what I have right now: ;*********************************************************************** ; mul_16bit: subroutine that multiplies two 16 bit numbers stored in ; addresses mul_16ptr1, mul_16ptr1+1...

How can I interface an ARM chip with an external memory chip?

I have finished a project using an LPC2132 and quickly ran into problems with not having enough RAM (64k). For my next project, I'd like to avoid this problem all together by picking a chip that can interface with an external, larger memory chip. How can I do this or where are some resources that I could read up on this at? (I already ...

Error while online manipulation of CM5 in the bioloid kit

I am getting the following error after flashing a program on the controller(CM5) and while on-line manipulation of CM5 in the bioloid kit. 000 0x00 dynamixels found . Error 0800. What gives? ...

Communication between microcontroller and separately powered PCB (electronics)

On one board I have a microcontroller with one power supply and on another I have a Flip Flop with a separate power supply. I want to connect a pin of the microcontroller to the reset pin of the flip flop. Can I just put a wire accross or does it need more than that? I was going to do that but now I'm not sure that would work because it ...

Why does avr-gcc bother to save the register state when calling main()?

The main() function in an avr-gcc program saves the register state on the stack, but when the runtime calls it I understand on a microcontroller there isn't anything to return to. Is this a waste of RAM? How can this state saving be prevented? ...

Communicating with the Pic 16F913

Here is my issue, it appears that all the communication lines for the PIC 16F913 reside on the same set of pins, this is convenient in that I don't have to sacrifice GPIO pins just to do comms, however the problem I'm having now is if I'm using the SPI on the chip, how can I send information to the RS232? The reason this issue came up,...

Access to two variables safely when an interrupt might occur between them.

First of all I'd welcome edits to the title of this question, I couldn't think how to word it better but I'm not too happy with what I came up with. This is a question about concurrency, my application is on a microcontroller in C but I don't think that matters a great deal. I have an interrupt routine which can change the values of tw...

Instruction timing on ARM Cortex-m3 (Specifically LPC1343)

I'm looking to write some very timing sensitive code on an LPC1343 where I need to count exact clock cycles. There are two issues :- I've read that code executing from the internal flash memory isn't always able to run at the full 72Mhz and wait states might be introduced. But I can't find any "official" document about this. I saw one ...

#pragma inside #define

I'm working in a micro controller using C language. In this specific micro, the interrupts have to be defined using #pragma in following way: static void func(); #pragma INTERRUPT func <interrupt_address> <interrupt_category> static void func() { /* function body */ } The <interrupt_address> is address of the interrupt in vector table...

Searching for ultra low power microcontroller options

Hello all, I am searching for ultra low power microcontroller for my upcoming project. Can any one please help me to find the best available solution comparable to MSP430. Rom ~ 128 Ram ~ 64 Internal ADC ~ 10bit etc Regards Dani ...

Where to begin with programming for robotics?

Ok so i've been interested in robotics for a while and had a project in mind. Building a small remote controlled vehicle-robot/ unmanned vehicle-robot. Hopefully with the ability to read in data from sensory devices(gps,thermometer etc) and write the data to some kind of device. The idea(s) had been on the backburner for a while until i ...

Flow of Startup code in an embedded system , concept of boot loader ?

hi, I am working with an embedded board , but i don't know the flow of the start up code(C/assembly) of the same. Can we discuss the general modules/steps acted upon by the start up action in the case of an embedded system. Just a high level overview(algorithmic) is enough.All examples are welcome. /Kanu__ ...

Why Bitshift operators???

I dont understand when and why you would use bitshift operators for microchip programming: for example... SWITCH_DDR &= ~SWITCH_BIT; SWITCH_PORT |= SWITCH_BIT; Why use these operators? Or... void SerialInit(void) { UBRRH = ((XTAL / (8 * 250000)) - 1)>>8; // 250kbps at 16Mhz UBRRL = (XTAL / (8 * 250000)) - 1; UCSRA = (1...

SAM-BA not responding with olimex sam7s256

I am using an Olimex sam7s256 board. I tried to get it up and running in linux (Ubuntu). I was able to successfully install GCC and binutils. I installed SAM-BA for linux from the atmel site. I was able to get the USB port for connection as specified in the SAM-BA manual (.dev/ttyUSB0). But when I try to use the GUI and 'connect' there i...

What is difference between MSP430 and MSP430X?

Any comparison table available ? Regards Adnan ...

TCP vs UDP for Microprocessor Communication

I am using TCP for communicating with an arduino (just open a socket and wait for a connection)using an ethernet shield, While watching/reading about various other project that use some sort of network interface for communication they all seem to use UDP instead of TCP for communication. What I was wondering is what would be my gain if I...

Want to learn about pic microcontroller ?

Possible Duplicate: Getting Started With Programming PICs (or similar products) I want to learn pic microcontroller and want to write programs in both ASM language and C language , which is the best place to start ? any resources would be help full , books , links , audio , video would be helpfull ? also can i find any microco...

Triple Play Test using PIC24 micro-controller

Hi Geeks, Can anybody suggest me if I can program my device as Triple-Play-Tester? My device has PIC24 processor and ENC28J60 chip. I am thinking can my micro-controller process the packets and measure the performance? ...

Compressing/packing "don't care" bits into 3 states

At the moment I am working on an on screen display project with black, white and transparent pixels. (This is an open source project: http://code.google.com/p/super-osd; that shows the 256x192 pixel set/clear OSD in development but I'm migrating to a white/black/clear OSD.) Since each pixel is black, white or transparent I can use a sim...

AVR or PIC using MATLAB?

AVR or PIC,which one is better? Using MATLAB as assembly language. (I am a beginner) ...