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 #23 background imageLoading...
Page #23 background image
23
AT90S2313
0839G–08/01
General Interrupt Mask
Register – GIMSK
• Bit 7 – INT1: External Interrupt Request 1 Enable
When the INT1 bit is set (one) and the I-bit in the Status Register (SREG) is set (one),
the external pin interrupt is enabled. The Interrupt Sense Control1 bits 1/0 (ISC11 and
ISC10) in the MCU general Control Register (MCUCR) defines whether the external
interrupt is activated on rising or falling edge of the INT1 pin or level sensed. Activity on
the pin will cause an interrupt request even if INT1 is configured as an output. The corre-
sponding interrupt of External Interrupt Request 1 is executed from program memory
address $002. See also “External Interrupts”.
• Bit 6 – INT0: External Interrupt Request 0 Enable
When the INT0 bit is set (one) and the I-bit in the Status Register (SREG) is set (one),
the external pin interrupt is enabled. The Interrupt Sense Control0 bits 1/0 (ISC01 and
ISC00) in the MCU general Control Register (MCUCR) defines whether the external
interrupt is activated on rising or falling edge of the INT0 pin or level sensed. Activity on
the pin will cause an interrupt request even if INT0 is configured as an output. The corre-
sponding interrupt of External Interrupt Request 0 is executed from program memory
address $001. See also “External Interrupts.”
• Bits 5..0 – Res: Reserved Bits
These bits are reserved bits in the AT90S2313 and always read as zero.
General Interrupt FLAG
Register – GIFR
• Bit 7 – INTF1: External Interrupt Flag1
When an edge on the INT1 pin triggers an interrupt request, the corresponding interrupt
flag, INTF1, becomes set (one). If the I-bit in SREG and the corresponding interrupt
enable bit, INT1 bit in GIMSK, are set (one), the MCU will jump to the interrupt vector.
The flag is cleared when the interrupt routine is executed. Alternatively, the flag can be
cleared by writing a logical “1” to it. The flag is always cleared when INT1 is configured
as level interrupt.
• Bit 6 – INTF0: External Interrupt Flag0
When an edge on the INT0 pin triggers an interrupt request, the corresponding interrupt
flag, INTF0, becomes set (one). If the I-bit in SREG and the corresponding interrupt
enable bit, INT0 bit in GIMSK, are set (one), the MCU will jump to the interrupt vector.
The flag is cleared when the interrupt routine is executed. Alternatively, the flag can be
cleared by writing a logical “1” to it. The flag is always cleared when INT0 is configured
as level interrupt.
• Bits 5..0 – Res: Reserved Bits
These bits are reserved bits in the AT90S2313 and always read as zero.
Note that external level interrupt does not have a flag, and will only be remembered for
as long as the interrupt condition is active.
Bit 7 6 5 4 3 2 1 0
$3B ($5B) INT1 INT0 GIMSK
Read/Write R/W R/W R R R R R R
Initial value 0 0 0 0 0 0 0 0
Bit 7 6 5 4 3 2 1 0
$3A ($5A) INTF1 INTF0 GIFR
Read/Write R/W R/W R R R R R R
Initial value 0 0 0 0 0 0 0 0

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