I/O Memory - Atmel AVR AT90S1200 Manual

8-bit microcontroller with 1k byte of in-system programmable flash
Hide thumbs Also See for AVR AT90S1200:
Table of Contents

Advertisement

I/O Memory

AT90S1200
10
The I/O space definition of the AT90S1200 is shown in the following table.
Table 1. The AT90S1200 I/O Space
Address Hex
Name
$3F
SREG
$3B
GIMSK
$39
TIMSK
$38
TIFR
$35
MCUCR
$33
TCCR0
$32
TCNT0
$21
WDTCR
$1E
EEAR
$1D
EEDR
$1C
EECR
$18
PORTB
$17
DDRB
$16
PINB
$12
PORTD
$11
DDRD
$10
PIND
$08
ACSR
Note:
Reserved and unused locations are not shown in the table.
All AT90S1200 I/Os and peripherals are placed in the I/O space. The different I/O loca-
tions are accessed by the IN and OUT instructions transferring data between the 32
general purpose working registers and the I/O space. I/O registers within the address
range $00 - $1F 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 instruc-
tions. Refer to the instruction set chapter for more details.
For compatibility with future devices, reserved bits should be written to zero if accessed.
Reserved I/O memory addresses should never be written.
Some of the status flags are cleared by writing a logical one to them. Note that the CBI
and SBI instructions will operate on all bits in the I/O register, writing a one back into any
flag read as set, thus clearing the flag. The CBI and SBI instructions work with registers
$00 to $1F only.
The different I/O and peripherals control registers are explained in the following
sections.
Function
Status REGister
General Interrupt MaSK register
Timer/Counter Interrupt MaSK register
Timer/Counter Interrupt Flag register
MCU general Control Register
Timer/Counter0 Control Register
Timer/Counter0 (8-bit)
Watchdog Timer Control Register
EEPROM Address Register
EEPROM Data Register
EEPROM Control Register
Data Register, Port B
Data Direction Register, Port B
Input Pins, Port B
Data Register, Port D
Data Direction Register, Port D
Input Pins, Port D
Analog Comparator Control and Status Register
0838H–AVR–03/02

Advertisement

Table of Contents
loading

Table of Contents