General Purpose I/O
Registers
AT90PWM2/3
The AT90PWM2/3 contains four General Purpose I/O Registers. These registers can be
used for storing any information, and they are particularly useful for storing global vari-
ables and status flags.
The General Purpose I/O Registers, within the address range 0x00 - 0x1F, are directly
bit-accessible using the SBI, CBI, SBIS, and SBIC instructions.
General Purpose I/O Register
0 – GPIOR0
Bit
Read/Write
Initial Value
General Purpose I/O Register
1 – GPIOR1
Bit
Read/Write
Initial Value
General Purpose I/O Register
2 – GPIOR2
Bit
Read/Write
Initial Value
General Purpose I/O Register
3– GPIOR3
Bit
Read/Write
Initial Value
7
6
5
4
3
2
1
0
GPIOR07 GPIOR06 GPIOR05 GPIOR04 GPIOR03 GPIOR02 GPIOR01 GPIOR00
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
0
0
0
0
0
0
0
0
GPIOR0
7
6
5
4
3
2
1
0
GPIOR17 GPIOR16 GPIOR15 GPIOR14 GPIOR13 GPIOR12 GPIOR11 GPIOR10
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
0
0
0
0
0
0
0
0
GPIOR1
7
6
5
4
3
2
1
0
GPIOR27 GPIOR26 GPIOR25 GPIOR24 GPIOR23 GPIOR22 GPIOR21 GPIOR20
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
0
0
0
0
0
0
0
0
GPIOR2
7
6
5
4
3
2
1
0
GPIOR37 GPIOR36 GPIOR35 GPIOR34 GPIOR33 GPIOR32 GPIOR31 GPIOR30
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
0
0
0
0
0
0
0
0
GPIOR3
29
4317B–AVR–02/05