This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
atmel [2007/01/02 22:29] – herman | atmel [2018/12/30 00:13] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 16: | Line 16: | ||
* DDRx Data direction register (1: output, 0: input) | * DDRx Data direction register (1: output, 0: input) | ||
* PINx Port input pins | * PINx Port input pins | ||
+ | |||
===== BIT manipulation in C ===== | ===== BIT manipulation in C ===== | ||
* ~ means invert int -> ~_bv(5) means 11101111 not 00010000 | * ~ means invert int -> ~_bv(5) means 11101111 not 00010000 | ||
Line 37: | Line 38: | ||
* [[http:// | * [[http:// | ||
- | ====== Reference | + | ====== Reference ====== |
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
Line 45: | Line 46: | ||
* [[http:// | * [[http:// | ||
+ | * Handy command for debugging: avr-objdump -d $filename.elf > $filename.asm | ||
====== Interrupts ====== | ====== Interrupts ====== | ||
All soft uart implementations use interrupts in one way or the other (timer and/or external). To understand them I'd like to test some more. | All soft uart implementations use interrupts in one way or the other (timer and/or external). To understand them I'd like to test some more. |