ata6616 ATMEL Corporation, ata6616 Datasheet - Page 143

no-image

ata6616

Manufacturer Part Number
ata6616
Description
Microcontroller With Lin Transceiver, 5v Regulator And Watchdog
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ata6616-P3QW
Manufacturer:
ATMEL
Quantity:
950
Part Number:
ata6616-P3QW
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ata6616C
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ata6616C-P3QW
Manufacturer:
ATMEL
Quantity:
887
9132A–AUTO–10/08
DRAFT
Figure 4-47. Output Compare Unit, Block Diagram
The OCR1A/B Register is double buffered when using any of the twelve 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 OCR1A/B
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 out-
put glitch-free.
The OCR1A/B Register access may seem complex, but this is not case. When the double buff-
ering is enabled, the CPU has access to the OCR1A/B Buffer Register, and if double buffering is
disabled the CPU will access the OCR1A/B directly. The content of the OCR1A/B (Buffer or
Compare) Register is only changed by a write operation (the Timer/Counter does not update this
register automatically as the TCNT1 and ICR1 Register). Therefore OCR1A/B is not read via the
high byte temporary register (TEMP). However, it is a good practice to read the low byte first as
when accessing other 16-bit registers. Writing the OCR1A/B Registers must be done via the
TEMP Register since the compare of all 16 bits is done continuously. The high byte
(OCR1A/BH) has to be written first. When the high byte I/O location is written by the CPU, the
TEMP Register will be updated by the value written. Then when the low byte (OCR1A/BL) is
written to the lower eight bits, the high byte will be copied into the upper 8-bits of either the
OCR1A/B buffer or OCR1A/B Compare Register in the same system clock cycle.
For more information of how to access the 16-bit registers refer to
on page
136.
OCRnxH Buf.(8-bit)
OCRnxH (8-bit)
BOTTOM
OCRnx Buffer (16-bit Register)
TEMP (8-bit)
TOP
OCRnx (16-bit Register)
ATA6616/ATA6617 [Preliminary]
OCRnxL Buf.(8-bit)
OCRnxL (8-bit)
DATA BUS
Waveform Generator
WGMn3:0
=
(16-bit Comparator )
(8-bit)
COMnx1:0
TCNTnH (8-bit)
OCFnx
TCNTn (16-bit Counter)
“Accessing 16-bit Registers”
(Int.Req.)
TCNTnL (8-bit)
OCnxW
OCnxX
OCnxU
OCnxV
143

Related parts for ata6616