There are three registers associated with each port.
- The output register PORTX
- The input register PINX
- The data direction register DDRX.
For instance port B is made up of 8 pins PB0, PB1, PB2 ....PB7. It has three associated registers:
- PORTB
- PINB
- DDRB
These registers live in the I/O register space just above the 32 general purpose registers.
Some good port pages:
Useful but about GCC.
Some good stuff here.
Some good port pages:
Useful but about GCC.
Some good stuff here.
No comments:
Post a Comment