EasyManua.ls Logo

Atmel AVR AT90S2313 User Manual

Atmel AVR AT90S2313
91 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #27 background imageLoading...
Page #27 background image
27
AT90S2313
0839G–08/01
Sleep Modes To enter the sleep modes, the SE bit in MCUCR must be set (one) and a SLEEP instruc-
tion must be executed. If an enabled interrupt occurs while the MCU is in a sleep mode,
the MCU awakes, executes the interrupt routine, and resumes execution from the
instruction following SLEEP. The contents of the register file, SRAM and I/O memory
are unaltered. If a reset occurs during Sleep Mode, the MCU wakes up and executes
from the Reset vector.
Idle Mode When the SM bit is cleared (zero), the SLEEP instruction forces the MCU into the Idle
Mode, stopping the CPU but allowing Timer/Counters, Watchdog and the interrupt sys-
tem to continue operating. This enables the MCU to wake up from external triggered
interrupts as well as internal ones like Timer Overflow interrupt and Watchdog reset. If
wake-up from the Analog Comparator Interrupt is not required, the Analog Comparator
can be powered down by setting the ACD-bit in the Analog Comparator Control and Sta-
tus Register (ACSR). This will reduce power consumption in Idle Mode. When the MCU
wakes up from Idle Mode, the CPU starts program execution immediately.
Power-down Mode When the SM bit is set (one), the SLEEP instruction forces the MCU into the Power-
down Mode. In this mode, the external oscillator is stopped while the external interrupts
and the Watchdog (if enabled) continue operating. Only an external reset, a Watchdog
reset (if enabled), an external level interrupt on INT0 or INT1 can wake up the MCU.
Note that when a level-triggered interrupt is used for wake-up from power-down, the low
level must be held for a time longer than the reset delay Time-out period t
TOUT
. Other-
wise, the device will not wake up.
Timer/Counters The AT90S2313 provides two general-purpose Timer/Counters – one 8-bit T/C and one
16-bit T/C. The Timer/Counters have individual prescaling selection from the same 10-
bit prescaling timer. Both Timer/Counters can either be used as a timer with an internal
clock time base or as a counter with an external pin connection that triggers the
counting.

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Atmel AVR AT90S2313 and is the answer not in the manual?

Atmel AVR AT90S2313 Specifications

General IconGeneral
ArchitectureAVR
CPU8-bit
ManufacturerAtmel
ModelAT90S2313
Flash Memory2 KB
SRAM128 Bytes
EEPROM128 Bytes
Clock SpeedUp to 10 MHz
I/O Pins15
Timer1 x 8-bit, 1 x 16-bit
Operating Temperature Range-40°C to +85°C
Data Bus Width8-bit
Communication InterfacesUSART
PackageSOIC
SeriesAVR AT90S

Summary

Features

Pin Configuration

Pin Descriptions

Explains the function of each pin on the microcontroller.

Crystal Oscillator

Architectural Overview

Program and Data Addressing Modes

Explains how the MCU accesses memory.

I/O Memory

Reset and Interrupt Handling

Describes reset sources and interrupt vectors.

Watchdog Timer

Details the Watchdog Timer functionality and control.

EEPROM Read/Write Access

UART

Analog Comparator

I/O Ports

Memory Programming

Programming the Flash and EEPROM

Procedures for writing Flash and EEPROM.

Parallel Programming

Details the parallel programming interface and commands.

Serial Downloading

Explains serial programming via SPI.

Related product manuals