Type in the full discussion title or a part of it.
Discussion Title Created date
Gotcha in CLI-less reading of software-extended timer
I want to share a subtle gotcha with a particular approach to a software-extended timer, so that others might avoid being caught by it. I encountered this the common software-...
Friday, 24 October 2014 - 07:26
Port bit masks rather than bit numbers?
The port bit symbolic names are defined to the bit number rathers than the masks (bit values). This means that code is littered with bit shifts or various macros TIMSK |= 1<...
Sunday, 3 November 2013 - 21:43
[TUT][SOFT]AVR CPU core instruction and timing tests
I've been working on some fairly complete AVR CPU instruction and timing tests. They're mainly to be sure that simavr's CPU simulator is accurate (after some fixes it passes these...
Sunday, 6 October 2013 - 00:23
Divide symbol address by two at assembly time?
How do I accomplish this without having to do the lsr/ror at run-time? ldi r26,lo8(here) ldi r27,hi8(here) lsr r27 ror r26 push r26 push r27 ret here...
Thursday, 3 October 2013 - 17:43
Particular asm code crashes linker with --relax
$ cat crash.s main: nop rjmp main ret rjmp main $ avr-gcc -mmcu=atmega8 -Wl,--relax crash.s collect2: ld terminated with signal 11 [Segmentation fault], core dumped This...
Thursday, 3 October 2013 - 15:55
Link vector handler only if init is used in program?
I'm using a debugging library (just a .c file) with my program that outputs over USB and uses a couple of interrupt vector handlers internally. Even if nothing is ever called...
Friday, 30 August 2013 - 01:37