L/o memory, Atmega161(l) – Rainbow Electronics ATmega161L User Manual
Page 19
19
ATmega161(L)
1228C–AVR–08/02
l/O Memory
The I/O space definition of the ATmega161 is shown in Table 1.
Table 1. ATmega161 I/O Space
(1)
I/O Address
(SRAM Address)
Name
Function
$3F($5F)
SREG
Status REGister
$3E ($5E)
SPH
Stack Pointer High
$3D ($5D)
SPL
Stack Pointer Low
$3B ($5B)
GIMSK
General Interrupt MaSK Register
$3A ($5A)
GIFR
General Interrupt Flag Register
$39 ($59)
TIMSK
Timer/Counter Interrupt MaSK Register
$38 ($58)
TIFR
Timer/Counter Interrupt Flag Register
$37 ($57)
SPMCR
Store Program Memory Control Register
$36 ($56)
EMCUCR
Extended MCU general Control Register
$35 ($55)
MCUCR
MCU general Control Register
$34 ($54)
MCUSR
MCU general Status Register
$33 ($53)
TCCR0
Timer/Counter0 Control Register
$32 ($52)
TCNT0
Timer/Counter0 (8-bit)
$31 ($51)
OCR0
Timer/Counter0 Output Compare Register
$30 ($50)
SFIOR
Special Function IO Register
$2F ($4F)
TCCR1A
Timer/Counter1 Control Register A
$2E ($4E)
TCCR1B
Timer/Counter1 Control Register B
$2D ($4D)
TCNT1H
Timer/Counter1 High Byte
$2C ($4C)
TCNT1L
Timer/Counter1 Low Byte
$2B ($4B)
OCR1AH
Timer/Counter1 Output Compare RegisterA High Byte
$2A ($4A)
OCR1AL
Timer/Counter1 Output Compare RegisterA Low Byte
$29 ($49)
OCR1BH
Timer/Counter1 Output Compare RegisterB High Byte
$28 ($48)
OCR1BL
Timer/Counter1 Output Compare RegisterB Low Byte
$27 ($47)
TCCR2
Timer/Counter2 Control Register
$26 ($46)
ASSR
Asynchronous mode StatuS Register
$25 ($45)
ICR1H
Timer/Counter1 Input Capture Register High Byte
$24 ($44)
ICR1L
Timer/Counter1 Input Capture Register Low Byte
$23 ($43)
TCNT2
Timer/Counter2 (8-bit)
$22 ($42)
OCR2
Timer/Counter2 Output Compare Register
$21 ($41)
WDTCR
Watchdog Timer Control Register
$20 ($40)
UBRRHI
UART Baud Register HIgh
$1F ($3F)
EEARH
EEPROM Address Register High
$1E ($3E)
EEARL
EEPROM Address Register Low
$1D ($3D)
EEDR
EEPROM Data Register