ATA6613-EK Atmel, ATA6613-EK Datasheet - Page 165

no-image

ATA6613-EK

Manufacturer Part Number
ATA6613-EK
Description
BOARD DEMO LIN-MCM FOR ATA6613
Manufacturer
Atmel
Datasheets

Specifications of ATA6613-EK

Main Purpose
Interface, LIN + MCU
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
ATA6613
Primary Attributes
LIN-SBC (System-Basis-Chip) Transceiver, LIN 2.0, Voltage Regulator, Window Watchdog
Secondary Attributes
16 kB Flash, 4 Power Modes: Pre-Normal, Normal, Sleep, Silent, 48-QFN
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
6.15.4
6.15.4.1
9111H–AUTO–01/11
Output Compare Unit
Force Output Compare
The 8-bit comparator continuously compares TCNT2 with the Output Compare Register
(OCR2A and OCR2B). Whenever TCNT2 equals OCR2A or OCR2B, the comparator signals a
match. A match will set the Output Compare Flag (OCF2A or OCF2B) at the next timer clock
cycle. If the corresponding interrupt is enabled, the Output Compare Flag generates an Output
Compare interrupt. The Output Compare Flag is automatically cleared when the interrupt is
executed. Alternatively, the Output Compare Flag can be cleared by software by writing a log-
ical one to its I/O bit location. The Waveform Generator uses the match signal to generate an
output according to operating mode set by the WGM22:0 bits and Compare Output mode
(COM2x1:0) bits. The max and bottom signals are used by the Waveform Generator for han-
dling the special cases of the extreme values in some modes of operation (see
Operation” on page
Figure 6-55
Figure 6-55. Output Compare Unit, Block Diagram
The OCR2x Register is double buffered when using any of the Pulse Width Modulation (PWM)
modes. For the Normal and Clear Timer on Compare (CTC) modes of operation, the double
buffering is disabled. The double buffering synchronizes the update of the OCR2x Compare
Register to either top or bottom of the counting sequence. The synchronization prevents the
occurrence of odd-length, non-symmetrical PWM pulses, thereby making the output
glitch-free.
The OCR2x Register access may seem complex, but this is not case. When the double buffer-
ing is enabled, the CPU has access to the OCR2x Buffer Register, and if double buffering is
disabled the CPU will access the OCR2x directly.
In non-PWM waveform generation modes, the match output of the comparator can be forced
by writing a one to the Force Output Compare (FOC2x) bit. Forcing compare match will not set
the OCF2x Flag or reload/clear the timer, but the OC2x pin will be updated as if a real com-
pare match had occurred (the COM2x1:0 bits settings define whether the OC2x pin is set,
cleared or toggled).
shows a block diagram of the Output Compare unit.
168).
bottom
FOCn
top
OCRnx
Waveform Generator
WGMn1:0
= (8-bit Comparator)
DATA BUS
Atmel ATA6612/ATA6613
COMnX1:0
TCNTn
OCFnx (Int.Req.)
OCnx
“Modes of
165

Related parts for ATA6613-EK