ATMEGA165A_11 ATMEL [ATMEL Corporation], ATMEGA165A_11 Datasheet - Page 13

no-image

ATMEGA165A_11

Manufacturer Part Number
ATMEGA165A_11
Description
8-bit Atmel Microcontroller with 16/32/64K Bytes In-System Programmable Programmable
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Note:
8285DS–AVR–06/11
0x1D (0x3D)
0x1C (0x3C)
0x0D (0x2D)
0x0C (0x2C)
0x1F (0x3F)
0x1E (0x3E)
0x1B (0x3B)
0x1A (0x3A)
0x0F (0x2F)
0x0E (0x2E)
0x0B (0x2B)
0x0A (0x2A)
Address
0x26 (0x46)
0x25 (0x45)
0x24 (0x44)
0x23 (0x43)
0x22 (0x42)
0x21 (0x41)
0x20 (0x40)
0x19 (0x39)
0x18 (0x38)
0x17 (0x37)
0x16 (0x36)
0x15 (0x35)
0x14 (0x34)
0x13 (0x33)
0x12 (0x32)
0x11 (0x31)
0x10 (0x30)
0x09 (0x29)
0x08 (0x28)
0x07 (0x27)
0x06 (0x26)
0x05 (0x25)
0x04 (0x24)
0x03 (0x23)
0x02 (0x22)
0x01 (0x21)
0x00 (0x20)
1. For compatibility with future devices, reserved bits should be written to zero if accessed. Reserved I/O memory addresses
2. I/O Registers within the address range 0x00 - 0x1F are directly bit-accessible using the SBI and CBI instructions. In these
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
4. When using the I/O specific commands IN and OUT, the I/O addresses 0x00 - 0x3F must be used. When addressing I/O
should never be written.
registers, the value of single bits can be checked by using the SBIS and SBIC instructions.
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.
Registers as data space using LD and ST instructions, 0x20 must be added to these addresses. The
ATmega165A/165PA/325A/325PA/3250A/3250PA/645A/645P/6450A/6450P is a complex microcontroller with more periph-
eral 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.
TCNT0
Reserved
TCCR0A
GTCCR
EEARH
EEARL
EEDR
EECR
GPIOR0
EIMSK
EIFR
Reserved
Reserved
Reserved
Reserved
TIFR2
TIFR1
TIFR0
PORTG
DDRG
PING
PORTF
DDRF
PINF
PORTE
DDRE
PINE
PORTD
DDRD
PIND
PORTC
DDRC
PINC
PORTB
DDRB
PINB
PORTA
DDRA
PINA
Name
ATmega165A/PA/325A/PA/3250A/PA/645A/P/6450A/P
PORTF7
PORTE7
PORTD7
PORTC7
PORTB7
PORTA7
FOC0A
PIND7
PINC7
Bit 7
PCIF3
PINF7
PINE7
DDD7
DDC7
PINB7
PINA7
DDF7
DDE7
DDB7
DDA7
PCIE
TSM
PORTF6
PORTE6
PORTD6
PORTC6
PORTB6
PORTA6
WGM00
Bit 6
PCIE2
PINE6
PIND6
PINC6
PINB6
PINA6
PCIF2
PINF6
DDD6
DDC6
DDF6
DDE6
DDB6
DDA6
COM0A1
PORTF5
PORTE5
PORTD5
PORTC5
PORTB5
PORTA5
Bit 5
PCIE1
PING5
PINE5
PIND5
PINC5
PINB5
PINA5
PCIF1
PINF5
DDD5
DDC5
DDF5
DDE5
DDB5
DDA5
ICF1
EEPROM Address Register Low
General Purpose I/O Register
COM0A0
PORTG4
PORTD4
PORTC4
PORTF4
PORTE4
PORTB4
PORTA4
Bit 4
PCIE0
PCIF0
PING4
PINF4
PINE4
PIND4
PINC4
PINB4
PINA4
DDG4
DDE4
DDD4
DDC4
DDB4
EEPROM Data Register
DDF4
DDA4
Timer/Counter0
PORTG3
PORTD3
PORTC3
PORTF3
PORTE3
PORTB3
PORTA3
WGM01
EERIE
PING3
Bit 3
PINF3
PINE3
PIND3
PINC3
PINB3
PINA3
DDG3
DDF3
DDE3
DDD3
DDC3
DDB3
DDA3
PORTG2
PORTE2
PORTD2
PORTC2
PORTB2
EEMWE
PORTF2
PORTA2
OCF1B
PING2
Bit 2
DDG2
PINF2
PINE2
PIND2
PINC2
PINB2
PINA2
DDF2
DDE2
DDD2
DDC2
DDB2
DDA2
CS02
EEPROM Address Register High
PORTG1
PORTF1
PORTE1
PORTD1
PORTC1
PORTB1
PORTA1
OCF2A
OCF1A
OCF0A
EEWE
PING1
PIND1
PINC1
Bit 1
DDG1
PINF1
PINE1
PINB1
PINA1
PSR2
DDF1
DDE1
DDD1
DDC1
DDB1
DDA1
CS01
PORTG0
PORTF0
PORTE0
PORTD0
PORTC0
PORTB0
PORTA0
PSR10
PING0
PIND0
PINC0
Bit 0
EERE
INTF0
DDG0
PINF0
PINE0
DDD0
DDC0
PINB0
PINA0
CS00
TOV2
TOV1
TOV0
DDF0
DDE0
DDB0
DDA0
INT0
139/158
Page
105
107
157
136
139
26
26
26
27
28
64
65
92
92
92
92
92
92
91
91
92
91
91
91
91
91
91
90
90
90
90
90
90
13

Related parts for ATMEGA165A_11