Post Created date
ISR assembly code
! This is ASM not C. An AVR don't have ISR vectors, but have an address for ecah ISR it jump to. Så for each ISR you use you normally have a ORG.
Thursday, 7 March 2019 - 08:10
atmega still alive ?
If it's just for tests/dev get a 1284 in dip, it's always nice with ekstra buffers for dev. etc. (a 1284 has 16KB of RAM)
Wednesday, 6 March 2019 - 11:47
atmega still alive ?
As I remember the mega162 was the first with two USART, and after the datasheet was made , I guess it has been kind of random which datasheet is the master for cut and paste for...
Wednesday, 6 March 2019 - 10:18
no do is red and xanh is green ;)   (nice to know before you get into trouble) 
Tuesday, 5 March 2019 - 14:39
ISR assembly code
add: And for bigger than 8k rjmp from the vectors can still reach the top (almost) 4k of flash.   It's just that for 8k and smaller rjmp can reach all flash, so no need...
Monday, 4 March 2019 - 11:28
atmega328P: stack problem ?
it's this : unsigned char USART_receive(void){     uint16_t kk=1000;     //while(!(UCSR0A & (1<<RXC0)));     //return UDR0...
Saturday, 2 March 2019 - 11:14
atmega328P: stack problem ?
I had a very short look at the code.   Are you 100% sure that none of the indexes are out of range?   I would put a check before all writes where indexes are used....
Saturday, 2 March 2019 - 10:03
2 Word AVR Instructions
Long time ago (about 20 years time fly), I for fun played with a SRET equivalent instruction for the AVR. (skip return meaning that if a function return false it skip the...
Saturday, 2 March 2019 - 09:53
whats the best way to implement a not gate.
You have to define the word:  best fast, low power, high output power, simple, small, cheap, ...   sub things, fast just in one edge (push or pull), low power (when...
Friday, 1 March 2019 - 12:13
atmega328P: stack problem ?
Just to check if it's a RAM problem I would change the speed of the LED if the stackpointer is getting to low (something like RAMSTART+staticRAMuse+"a tad").   Perhaps some...
Thursday, 28 February 2019 - 09:54
Unable to compile TinyOs applications with avr-gcc 4.2.1 but able to compile with avr-gcc 3.3
make a global replace of <$> with <_dollar_>   add: For sure $ is not legal in C, but perhaps "some" preprocessors can eat them and in this case...
Wednesday, 27 February 2019 - 12:24
AVR works after pressing Reset Button
A smile from the side line:   It made me smile and think of my first "real" job where I was to make a communication driver. My boss gave me a roll with a 50m flat cable that...
Wednesday, 27 February 2019 - 10:31