AT90S2313

Manufacturer Part NumberAT90S2313
Description8-bit Microcontroller with 2K Bytes of In-System Programmable Flash
ManufacturerATMEL Corporation
AT90S2313 datasheet
 
1
Page 1
2
Page 2
3
Page 3
4
Page 4
5
Page 5
6
Page 6
7
Page 7
8
Page 8
Page 1/8

Download datasheet (388Kb)Embed
Next
Features
®
AVR
- High Performance and Low Power RISC Architecture
118 Powerful Instructions - Most Single Clock Cycle Execution
2K bytes of In-System Reprogrammable Flash
– SPI Serial Interface for Program Downloading
– Endurance: 1,000 Write/Erase Cycles
128 bytes EEPROM
– Endurance: 100,000 Write/Erase Cycles
128 bytes Internal RAM
32 x 8 General Purpose Working Registers
15 Programmable I/O Lines
V
: 2.7 - 6.0V
CC
Fully Static Operation
– 0 - 10 MHz, 4.0 - 6.0V
– 0 - 4 MHz, 2.7 - 6.0V
Up to 10 MIPS Throughput at 10 MHz
One 8-Bit Timer/Counter with Separate Prescaler
One 16-Bit Timer/Counter with Separate Prescaler
and Compare and Capture Modes
Full Duplex UART
Selectable 8, 9 or 10 bit PWM
External and Internal Interrupt Sources
Programmable Watchdog Timer with On-Chip Oscillator
On-Chip Analog Comparator
Low Power Idle and Power Down Modes
Programming Lock for Software Security
20-Pin Device
Description
The AT90S2313 is a low-power CMOS 8-bit microcontroller based on the AVR
enhanced RISC architecture. By executing powerful instructions in a single clock
cycle, the AT90S2313 achieves throughputs approaching 1 MIPS per MHz allowing
the system designer to optimize power consumption versus processing speed.
The AVR core combines a rich instruction set with 32 general purpose working regis-
ters. All the 32 registers are directly connected to the Arithmetic Logic Unit (ALU),
allowing two independent registers to be accessed in one single instruction executed
in one clock cycle. The resulting architecture is more code efficient while achieving
throughputs up to ten times faster than conventional CISC microcontrollers.
Pin Configuration
8-Bit
Microcontroller
with 2K bytes
In-System
Programmable
Flash
AT90S2313
(continued)
Note: This is a summary document. For the complete 68 page
datasheet, please visit our web site at www.atmel.com or e-
mail at literature@atmel.com and request literature #0839D.
Rev. 0839DS–07/98
1

AT90S2313 Summary of contents

  • Page 1

    ... Device Description The AT90S2313 is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the AT90S2313 achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed. ...

  • Page 2

    ... AT90S2313 is a powerful microcontroller that provides a highly flexible and cost effective solution to many embed- ded control applications. The AT90S2313 AVR is supported with a full suite of pro- gram and system development tools including: C compil- ers, macro assemblers, program debugger/simulators, in- circuit emulators, and evaluation kits. ...

  • Page 3

    ... As inputs, Port D pins that are externally pulled low will source current if the pull-up resistors are activated. Port D also serves the functions of various special features of the AT90S2313 as listed on page 43. RESET Reset input. A low on this pin for two machine cycles while the oscillator is running resets the device. ...

  • Page 4

    ... The ALU supports arithmetic and logic functions between registers or between a constant and a register. Single reg- ister operations are also executed in the ALU. Figure 4 shows the AT90S2313 AVR Enhanced RISC microcontrol- ler architecture. In addition to the register operation, the conventional mem- ory addressing modes can be used on the register file as well ...

  • Page 5

    ... Figure 4. The AT90S2313 AVR Enhanced RISC Architecture Figure 5. Memory Maps 5 ...

  • Page 6

    ... AT90S2313 Register Summary Address Name Bit 7 $3F ($5F) SREG I $3E ($5E) Reserved $3D ($5D) SPL SP7 $3C ($5C) Reserved $3B ($5B) GIMSK INT1 $3A ($5A) GIFR INTF1 $39 ($59) TIMSK TOIE1 $38 ($58) TIFR TOV1 $37 ($57) Reserved $36 ($56) Reserved $35 ($55) MCUCR - $34 ($54) Reserved $33 ($53) TCCR0 - $32 ($52) TCNT0 Timer/Counter0 (8 Bit) ...

  • Page 7

    ... AT90S2313 Instruction Set Summary Mnemonics Operands Description ARITHMETIC AND LOGIC INSTRUCTIONS ADD Rd, Rr Add two Registers ADC Rd, Rr Add with Carry two Registers ADIW Rdl,K Add Immediate to Word SUB Rd, Rr Subtract two Registers SUBI Rd, K Subtract Constant from Register SBIW Rdl,K ...

  • Page 8

    ... Clear Twos Complement Overflow SET Set T in SREG CLT Clear T in SREG SEH Set Half Carry Flag in SREG CLH Clear Half Carry Flag in SREG NOP No Operation SLEEP Sleep WDR Watchdog Reset AT90S2313 8 Operation Flags Rd Rr None Rd K None Rd (X) None Rd (X), X ...