ATtiny1624/1626/1627

Data Direction Set

Name:
DIRSET
Offset:
0x01
Reset:
0x00
Access:
-
Bit76543210
DIRSET[7:0]
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000000

Bits 7:0 – DIRSET[7:0]: Data Direction Set

Data Direction Set

This bit field controls the output driver for each PORTx pin, without using a read-modify-write operation.

Writing a ‘0’ to bit n in this bit field has no effect.

Writing a ‘1’ to bit n in this bit field will set the corresponding bit in PORTx.DIR, which will configure pin n (Pxn) as an output pin and enable the output driver.

Reading this bit field will return the value of PORTx.DIR.