Datasheet
300
7734Q–AVR–02/12
AT90PWM81/161
Note: 1. For compatibility with future devices, reserved bits should be written to zero if accessed. Reserved I/O memory addresses
should never be written.
2. I/O Registers within the address range 0x00 - 0x1F are directly bit-accessible using the SBI and CBI instructions. In these
registers, the value of single bits can be checked by using the SBIS and SBIC instructions.
3. Some of the status flags are cleared by writing a logical one to them. Note that, unlike most other AVRs, the CBI and SBI
instructions will only operate on the specified bit, and can therefore be used on registers containing such status flags. The
CBI and SBI instructions work with registers 0x00 to 0x1F only.
4. When using the I/O specific commands IN and OUT, the I/O addresses 0x00 - 0x3F must be used. When addressing I/O
Registers as data space using LD and ST instructions, 0x20 must be added to these addresses. The AT90PWM81/161 is a
complex microcontroller with more peripheral units than can be supported within the 64 location reserved in Opcode for the
IN and OUT instructions. For the Extended I/O space from 0x60 - 0xFF in SRAM, only the ST/STS/STD and LD/LDS/LDD
instructions can be used.
0x1B (0x3B)
GPIOR2 GPIOR27 GPIOR26 GPIOR25 GPIOR24 GPIOR23 GPIOR22 GPIOR21 GPIOR20 26
0x1A (0x3A) GPIOR1 GPIOR17 GPIOR16 GPIOR15 GPIOR14 GPIOR13 GPIOR12 GPIOR11 GPIOR10 26
0x19 (0x39) GPIOR0 GPIOR07 GPIOR06 GPIOR05 GPIOR04 GPIOR03 GPIOR02 GPIOR01 GPIOR00 26
0x18 (0x38) SPSR SPIF WCOL – – – – –SPI2X 188
0x17 (0x37) SPCR SPIE SPE DORD MSTR CPOL CPHA SPR1 SPR0 186
0x16 (0x36) PCTL2 PPRE21 PPRE20 PBFM2 PAOC2B PAOC2A PARUN2 PCCYC2 PRUN2 140
0x15 (0x35) PCNF2 PFIFTY2 PALOCK2 PLOCK2 PMODE21 PMODE20 POP2 PCLKSEL2 POME2 136
0x14 (0x34) PIFR2
POAC2B POAC2A PSEI2 PEV2B PEV2A PRN21 PRN20 PEOP2
144
0x13 (0x33) PIM2
- - PSEIE2 PEVE2B PEVE2A - PEOEPE2 PEOPE2
143
0x12 (0x32) PCTL0 PPRE01 PPRE00 PBFM01 PAOC0B PAOC0A PBFM00 PCCYC0 PRUN0 174
0x11 (0x31) PCNF0 PFIFTY0 PALOCK0 PLOCK0 PMODE01 PMODE00 POP0 PCLKSEL0 – 173
0x10 (0x30) PIFR0 POAC0B POAC0A –
PEV0B PEV0A PRN01 PRN00 PEOP0
178
0x0F (0x2F) PIM0
--
–
PEVE0B PEVE0A
–
PEOEPE0 PEOPE0
177
0x0E (0x2E) PORTE – – – – – PORTE2 PORTE1 PORTE0 82
0x0D (0x2D) DDRE – – – – – DDE2 DDE1 DDE0 82
0x0C (0x2C) PINE – – – – – PINE2 PINE1 PINE0 82
0x0B (0x2B) PORTD PORTD7 PORTD6 PORTD5 PORTD4 PORTD3 PORTD2 PORTD1 PORTD0 82
0x0A (0x2A) DDRD DDD7 DDD6 DDD5 DDD4 DDD3 DDD2 DDD1 DDD0 82
0x09 (0x29) PIND PIND7 PIND6 PIND5 PIND4 PIND3 PIND2 PIND1 PIND0 82
0x08 (0x28) ADMUX REFS1 REFS0 ADLAR – MUX3 MUX2 MUX1 MUX0 217
0x07 (0x27) ADCSRB ADHSM ADNCDIS – ADSSEN ADTS3 ADTS2 ADTS1 ADTS0 220
0x06 (0x26) ADCSRA ADEN ADSC ADATE ADIF ADIE ADPS2 ADPS1 ADPS0 219
0x05 (0x25) PORTB PORTB7 PORTB6 PORTB5 PORTB4 PORTB3 PORTB2 PORTB1 PORTB0 81
0x04 (0x24) DDRB DDB7 DDB6 DDB5 DDB4 DDB3 DDB2 DDB1 DDB0 82
0x03 (0x23) PINB PINB7 PINB6 PINB5 PINB4 PINB3 PINB2 PINB1 PINB0 82
0x02 (0x22) TIFR1 – –ICF1– – – –TOV1 99
0x01 (0x21) TIMSK1 – –ICIE1– – – –TOIE1 99
0x00 (0x20) ACSR AC3IF AC2IF AC1IF – AC3O AC2O AC1O – 201
Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Page