Post Created date
initialize ports
By the way, what is wrong with using "io.h" or ? I can't recall ever using anything else and my applications work. Does it have something to do with having another io.h file...
Monday, 17 March 2008 - 23:31
Where are the AVR specific keywords defined?
If you're using WinAVR take a look at {install location }\doc\avr-libc and you'll find both a PDF and PS version of the document in question.
Thursday, 13 March 2008 - 22:24
AVR timer
Using a timer is much better than calling _delay_ms as this just puts the processor into a loop and prevents it doing anything else useful. Timer0 is an 8-bit timer with...
Thursday, 13 March 2008 - 10:15
PIC code?
I'm more interested in why anyone would want to generate PIC code since you can't run anything out of RAM. You would have to program any code into FLASH first before you could run...
Tuesday, 11 March 2008 - 04:38
Writing my own bootloader, I have questions.
It sounds like you need to spend some time reading the datasheet for some of your answers - it will make life much easier for you. As for locating the bootloader at the correct...
Thursday, 6 March 2008 - 04:29
Long jump goto
Quote:If it goes to the main application through a function call without the "noreturn" attribute then would not the stack keep the return address even though it is a separate...
Wednesday, 5 March 2008 - 23:11
Mystifying result - at least for me
First tip would be to use the 'code' option when pasting code on the forum, it makes it much easier to read. Quote:when i add the while loop the problems start. it never executes...
Wednesday, 5 March 2008 - 10:30
Long jump goto
Right, so you start execution from the bootloader which contains C-startup code. This code sets up the stack pointer and copies over data from FLASH to RAM for use in the...
Tuesday, 4 March 2008 - 09:05
Long jump goto
How are you building your main applications. If they are built sand-alone which I'm sure they are, they are going to contain the normal C startup which is going setup the stack...
Monday, 3 March 2008 - 09:18
Possible to program AVR without erasing it?
Sounds like you need to take look at the EESAVE fuse, it does exactly what you want it to do. Once programmed you can erase and reprogram the FLASH without changing the EEPROM. We...
Monday, 3 March 2008 - 00:37
RTOS for Mega168
There are stax out there and unless people know what you require you're probably not going to get much of a response. It's like asking people what car you should buy without...
Thursday, 28 February 2008 - 04:22
UART receive and SPI to send question
I'm sure you've noticed that an SD card has a few more lines than just those required for a simple SPI interface. An SD card has two bus interfaces, SPI and another which uses...
Friday, 22 February 2008 - 00:46