EasyManuals Logo

Atmel AT90S8515-8PI User Manual

Atmel AT90S8515-8PI
101 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 #28 background imageLoading...
Page #28 background image
AT90S4414/8515
28
Note: When changing the ISC01/ISC00 bits, INT0 must be disabled by clearing its Interrupt Enable bit in the GIMSK Register.
Otherwise an interrupt can occur when the bits are changed.
The value on the INTn pin is sampled before detecting edges. If edge interrupt is selected, pulses with a duration longer
than one CPU clock period will generate an interrupt. Shorter pulses are not guaranteed to generate an interrupt. If low
level interrupt is selected, the low level must be held until the completion of the currently executing instruction to generate
an interrupt. If enabled, a level triggered interrupt will generate an interrupt request as long as the pin is held low.
Sleep Modes
To enter the sleep modes, the SE bit in MCUCR must be set (one) and a SLEEP instruction 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 system 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 wakeup 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 Status 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
. Otherwise, the MCU will fail to wake up.
Timer/Counters
The AT90S4414/8515 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 timebase or as a counter with an external pin connection which triggers the
counting.
Table 7. Interrupt 0 Sense Control
ISC01 ISC00 Description
0 0 The low level of INT0 generates an interrupt request.
01Reserved
1 0 The falling edge of INT0 generates an interrupt request.
1 1 The rising edge of INT0 generates an interrupt request.

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Atmel AT90S8515-8PI and is the answer not in the manual?

Atmel AT90S8515-8PI Specifications

General IconGeneral
BrandAtmel
ModelAT90S8515-8PI
CategoryMicrocontrollers
LanguageEnglish

Related product manuals