EasyManua.ls Logo

Atmel AT90S2313 User Manual

Atmel AT90S2313
87 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 #25 background imageLoading...
Page #25 background image
AT90S2313
25
Bit 6 - OCIE1A: Timer/Counter1 Output Compare Match Interrupt Enable
When the OCIE1A bit is set (one) and the I-bit in the Status Register is set (one), the Timer/Counter1 Compare Match inter-
rupt is enabled. The corresponding interrupt (at vector $004) is executed if a Compare match in Timer/Counter1 occurs,
i.e., when the OCF1A bit is set in the Timer/Counter Interrupt Flag Register - TIFR.
Bit 5,4 - Res: Reserved bits
These bits are reserved bits in the AT90S2313 and always read as zero.
Bit 3 - TICIE1: Timer/Counter1 Input Capture Interrupt Enable
When the TICIE1 bit is set (one) and the I-bit in the Status Register is set (one), the Timer/Counter1 Input Capture Event
Interrupt is enabled. The corresponding interrupt (at vector $003) is executed if a capture-triggering event occurs on
PD6(ICP), i.e., when the ICF1 bit is set in the Timer/Counter Interrupt Flag Register - TIFR.
Bit 2 - Res: Reserved bit
This bit is a reserved bit in the AT90S2313 and always reads as zero.
Bit 1 - TOIE0: Timer/Counter0 Overflow Interrupt Enable
When the TOIE0 bit is set (one) and the I-bit in the Status Register is set (one), the Timer/Counter0 Overflow interrupt is
enabled. The corresponding interrupt (at vector $006) is executed if an overflow in Timer/Counter0 occurs, i.e., when the
TOV0 bit is set in the Timer/Counter Interrupt Flag Register - TIFR.
Bit 0 - Res: Reserved bit
This bit is a reserved bit in the AT90S2313 and always read as zero.
Timer/Counter Interrupt FLAG Register - TIFR
Bit 7 - TOV1: Timer/Counter1 Overflow Flag
The TOV1 is set (one) when an overflow occurs in Timer/Counter1. TOV1 is cleared by hardware when executing the
corresponding interrupt handling vector. Alternatively, TOV1 is cleared by writing a logical one to the flag. When the I-bit in
SREG, and TOIE1 (Timer/Counter1 Overflow Interrupt Enable), and TOV1 are set (one), the Timer/Counter1 Overflow
Interrupt is executed. In PWM mode, this bit is set when Timer/Counter1 changes counting direction at $0000.
Bit 6 - OCF1A: Output Compare Flag 1A
The OCF1A bit is set (one) when compare match occurs between the Timer/Counter1 and the data in OCR1A - Output
Compare Register1 A. OCF1A is cleared by hardware when executing the corresponding interrupt handling vector. Alterna-
tively, OCF1A is cleared by writing a logical one to the flag. When the I-bit in SREG, and OCIE1A (Timer/Counter1
Compare match Interrupt Enable), and the OCF1A is set (one), the Timer/Counter1 Compare match Interrupt is executed.
Bits 5, 4 - Res: Reserved bits
These bits are reserved bits in the AT90S2313 and always read as zero.
Bit 3 - ICF1: - Input Capture Flag 1
The ICF1 bit is set (one) to flag an input capture event, indicating that the Timer/Counter1 value has been transferred to the
input capture register - ICR1. ICF1 is cleared by hardware when executing the corresponding interrupt handling vector.
Alternatively, ICF1 is cleared by writing a logical one to the flag. When the SREG I-bit, and TICIE1 (Timer/Counter1 Input
Capture Interrupt Enable), and ICF1 are set (one), the Timer/Counter1 Capture Interrupt is executed.
Bit 2 - Res: Reserved bit
This bit is a reserved bit in the AT90S2313 and always read as zero.
Bit 1 - TOV0: Timer/Counter0 Overflow Flag
The bit TOV0 is set (one) when an overflow occurs in Timer/Counter0. TOV0 is cleared by hardware when executing the
corresponding interrupt handling vector. Alternatively, TOV0 is cleared by writing a logical one to the flag. When the SREG
I-bit, and TOIE0 (Timer/Counter0 Overflow Interrupt Enable), and TOV0 are set (one), the Timer/Counter0 Overflow
interrupt is executed.
Bit 0 - Res: Reserved bit
This bit is a reserved bit in the AT90S2313 and always read as zero.
Bit 7 6 5 4 3 2 1 0
$38 ($58) TOV1 OCF1A - - ICF1 - TOV0 - TIFR
Read/Write R/W R/W R R R/W R R/W R
Initial value 0 0 0 0 0 0 0 0
Question and Answer IconNeed help?

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

Atmel AT90S2313 Specifications

General IconGeneral
ArchitectureAVR
Flash Memory2 KB
SRAM128 bytes
EEPROM128 bytes
I/O Pins15
ADCNo
Timers1 x 8-bit, 1 x 16-bit
Data Bus Width8-bit
Instruction Set ArchitectureRISC
ManufacturerAtmel
CoreAVR
PackageSOIC

Summary

Features of AT90S2313 Microcontroller

AVR RISC Architecture

High-performance, low-power RISC architecture with single clock cycle execution.

Memory Features

2K Flash, 128B SRAM, 128B EEPROM with endurance specifications.

Peripheral Features

Includes timers, PWM, comparator, Watchdog, SPI, and UART modules.

Pin Configuration

Pin Descriptions

Architectural Overview

General Purpose Register File

In-System Programmable Flash Program Memory

EEPROM Data Memory

SRAM Data Memory Organization

Program and Data Addressing Modes

Memory Access and Instruction Execution Timing

I/O Memory Map

Status Register - SREG

Reset and Interrupt Handling

Reset Sources

Power-On Reset

External Reset

Watchdog Reset

Interrupt Handling

External Interrupts

MCU Control Register - MCUCR

Sleep Modes

Power Down Mode

Oscillator stopped; wake-up via external reset or interrupt.

Timer/Counters Overview

8-bit Timer/Counter0

Timer/Counter0 Control Register - TCCR0

16-bit Timer/Counter1

Timer/Counter1 Control Register A - TCCR1A

Timer/Counter1 Control Register B - TCCR1B

Timer/Counter1 - TCNT1H and TCNT1L

Timer/Counter1 Output Compare Register A

Timer/Counter1 Input Capture Register

Timer/Counter1 in PWM Mode

Watchdog Timer Functionality

Watchdog Timer Control Register - WDTCR

EEPROM Read/Write Access

EEPROM Control Register - EECR

Prevent EEPROM Corruption

UART Overview

UART Data Reception

UART Control

UART Control Register - UCR

Baud Rate Generator Functionality

Analog Comparator Overview

Analog Comparator Control and Status Register - ACSR

Analog Comparator Control Bits

Port B Description

Alternate Functions of Port B

Port D Description

Alternate Functions of Port D

Memory Programming Overview

Fuse Bits Configuration

Programming the Flash and EEPROM

Parallel Programming Interface

Enter Programming Mode

Chip Erase Procedure

Programming the Flash Memory

Reading the Flash Memory

Programming the EEPROM Memory

Reading the EEPROM Memory

Programming the Fuse Bits

Programming the Lock Bits

Parallel Programming Characteristics

Serial Downloading Procedure

Serial Programming Algorithm

Serial Programming Characteristics

Electrical Characteristics

Absolute Maximum Ratings

Operating limits to prevent device damage.

DC Characteristics

Register Summary

Instruction Set Summary

Instruction Set Summary (Continued)

Related product manuals