Table of Contents
0839I–AVR–06/02
AT90S2313
Features................................................................................................. 1
Pin Configuration.................................................................................. 1
Description ............................................................................................ 2
Pin Descriptions.................................................................................................... 3
Crystal Oscillator................................................................................................... 4
Architectural Overview......................................................................... 5
General Purpose Register File ............................................................................. 7
ALU – Arithmetic Logic Unit.................................................................................. 8
In-System Programmable Flash Program Memory .............................................. 8
EEPROM Data Memory........................................................................................ 8
SRAM Data Memory............................................................................................. 9
Program and Data Addressing Modes................................................................ 10
Memory Access and Instruction Execution Timing ............................................. 14
I/O Memory ......................................................................................................... 15
Reset and Interrupt Handling .............................................................................. 18
Sleep Modes....................................................................................................... 27
Timer/Counters ................................................................................... 27
Timer/Counter Prescaler..................................................................................... 27
8-bit Timer/Counter0........................................................................................... 28
16-bit Timer/Counter1......................................................................................... 30
Watchdog Timer.................................................................................. 37
EEPROM Read/Write Access............................................................. 39
Prevent EEPROM Corruption ............................................................................. 41
UART.................................................................................................... 42
Data Transmission.............................................................................................. 42
Data Reception ................................................................................................... 43
UART Control ..................................................................................................... 45
Analog Comparator ............................................................................ 48
I/O Ports............................................................................................... 50
Port B.................................................................................................................. 50
Port D.................................................................................................................. 55
Memory Programming........................................................................ 60
Program and Data Memory Lock Bits................................................................. 60
Fuse Bits............................................................................................................. 60
Signature Bytes .................................................................................................. 60
Programming the Flash and EEPROM............................................................... 60
i