Update for 03-11-21 18:00
This commit is contained in:
parent
4c0c6ee6ce
commit
5dc9203b35
@ -47,7 +47,13 @@ Port C controls the analog Pins,
|
|||||||
Port B controls pins D8 - 13
|
Port B controls pins D8 - 13
|
||||||
|
|
||||||
Each port has 3 registers associated with it. Port* is the register that allows
|
Each port has 3 registers associated with it. Port* is the register that allows
|
||||||
writing to the pins. These are PortB (0x25), PortC (0x28)
|
writing to the pins. These are PortB (0x25), PortC (0x28), and PortD (0x2B).
|
||||||
|
The Data Direction Registers (DDR*) determine if the Pin is used for Input or
|
||||||
|
Output. When a bit is set to zero (0), the pin will be used for input. Setting
|
||||||
|
a pin to one (1) will enable it for output. The three DDR* registers are DDRB,
|
||||||
|
(0x24), DDRC (0x27), and DDRD (0x2A). Finally, there are the PIN* registers,
|
||||||
|
which allow for input to taken. These registers are read only. The three PIN*
|
||||||
|
registers are PINB (0x23), PINC (0x26), and PIND (0x29).
|
||||||
|
|
||||||
|
|
||||||
* PortC
|
* PortC
|
||||||
|
Loading…
Reference in New Issue
Block a user