Datasheet
84
ATtiny828 [DATASHEET]
8371A–AVR–08/12
10.4.9 PINC – Port C Input Pins
z Bits 7:0 – PINC[7:0]: Port Input Data
Regardless of the setting of the data direction bit, the value of the port pin PCn can be read through the PINCn bit.
Writing a logic one to PINCn toggles the value of PORTCn, regardless of the value in DDCn.
10.4.10 PUEB – Port B Pull-Up Enable Control Register
z Bits 7:0 – PUEB[7:0]: Pull-Up Enable Bits
When a pull-up enable bit, PUEBn, is set the pull-up resistor on the equivalent port pin, PBn, is enabled.
10.4.11 PORTB – Port B Data Register
z Bits 7:0 – PORTB[3:0]: Port Data Bits
When pin PBn is configured as an output, setting PORTBn will drive PBn high. Clearing PORTBn will drive PBn low.
When the pin is configured as an input the value of the PORTxn bit doesn’t matter. See Table 19 on page 61.
10.4.12 DDRB – Port B Data Direction Register
z Bits 7:0 – DDB[7:0]: Data Direction Bits
When DDBn is set, the pin PBn is configured as an output. When DDBn is cleared, the pin is configured as an input.
Bit 76543210
0x08 (0x28)
PINC7 PINC6 PINC5 PINC4 PINC3 PINC2 PINC1 PINC0 PINC
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value N/A N/A N/A N/A N/A N/A N/A N/A
Bit 76543210
0x07 (0x27)
PUEB7 PUEB6 PUEB5 PUEB4 PUEB3 PUEB2 PUEB1 PUEB0 PUEB
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value00000000
Bit 76543210
0x06 (0x26)
PORTB7 PORTB6 PORTB5 PORTB4 PORTB3 PORTB2 PORTB1 PORTB0 PORTB
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value00000000
Bit 76543210
0x06 (0x26)
DDB7 DDB6 DDB5 DDB4 DDB3 DDB2 DDB1 DDB0 DDRB
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value00000000