ATmega48PA Automotive Atmel Corporation, ATmega48PA Automotive Datasheet - Page 100
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATmega48PA Automotive
Manufacturer Part Number
ATmega48PA Automotive
Description
Manufacturer
Atmel Corporation
- Current page: 100 of 225
- Download datasheet (4Mb)
14.7
100
Output Compare Units
Atmel ATtiny24/44/84 [Preliminary]
Measurement of an external signal's duty cycle requires that the trigger edge be changed after
each capture. Changing the edge sensing must be done as early as possible after the ICR1
register has been read. After a change of the edge, the input capture flag (ICF1) must be
cleared by software (writing a logical one to the I/O bit location). For measuring frequency
only, the clearing of the ICF1 flag is not required (if an interrupt handler is used).
The 16-bit comparator continuously compares TCNT1 with the output compare register
(OCR1x). If TCNT equals OCR1x, the comparator signals a match. A match will set the output
compare flag (OCF1x) at the next timer clock cycle. If enabled (OCIE1x = 1), the output com-
pare flag generates an output compare interrupt. The OCF1x flag is automatically cleared
when the interrupt is executed. Alternatively the OCF1x flag can be cleared by software by
writing a logical one to its I/O bit location. The waveform generator uses the match signal to
generate an output according to the operating mode set by the waveform generation mode
(WGM13:0) bits and compare output mode (COM1x1:0) bits. The top and bottom signals are
used by the waveform generator for handling the special cases of the extreme values in some
modes of operation
A special feature of Output Compare unit A allows it to define the Timer/Counter TOP value
(i.e., counter resolution). In addition to the counter resolution, the TOP value defines the
period time for waveforms generated by the Waveform Generator.
Figure 14-4 on page 100
the register and bit names indicates the device number (n = 1 for timer/counter 1), and the "x"
indicates output compare unit (A/B). The elements of the block diagram that are not directly a
part of the output compare unit are shaded gray.
Figure 14-4. Output Compare Unit, Block Diagram
(“Modes of Operation” on page
OCRnxH Buf. (8-bit)
shows a block diagram of the output compare unit. The small "n" in
OCRnxH (8-bit)
BOTTOM
OCRnx Buffer (16-bit Register)
TEMP (8-bit)
TOP
OCRnx (16-bit Register)
OCRnxL Buf. (8-bit)
OCRnxL (8-bit)
DATA BUS
Waveform Generator
WGMn3:0
=
(16-bit Comparator )
103).
(8-bit)
COMnx1:0
TCNTnH (8-bit)
OCFnx (Int.Req.)
TCNTn (16-bit Counter)
TCNTnL (8-bit)
7701E–AVR–02/11
OCnx
Related parts for ATmega48PA Automotive
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ATmega48PA](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATMEGA48PA-15MZ](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
ATMEL Corporation
Datasheet:
![ATMEGA48P-20MU](/photos/12/13/121314/atmega48p-20mu_tmb.jpg)
Part Number:
Description:
MCU AVR 4K ISP FLASH 20MHZ 32QFN
Manufacturer:
Atmel
Datasheet:
![ATmega48P](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATMEGA48P-20AU](/photos/6/91/69154/313-32-tqfp_tmb.jpg)
Part Number:
Description:
MCU AVR 4K ISP FLSH 20MHZ 32TQFP
Manufacturer:
Atmel
Datasheet:
![ATMEGA48P-20PU](/photos/7/21/72189/453-28-dip_tmb.jpg)
Part Number:
Description:
MCU AVR 4K ISP FLASH 20MHZ 28DIP
Manufacturer:
Atmel
Datasheet:
![ATMEGA48P-20AUR](/photos/6/91/69154/313-32-tqfp_tmb.jpg)
Part Number:
Description:
MCU AVR 4K FLASH 20MHZ 32TQFP
Manufacturer:
Atmel
Datasheet:
![ATMEGA48P-20MUR](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
MCU AVR 4K FLASH 20MHZ 32QFN
Manufacturer:
Atmel
Datasheet:
![ATMEGA48P-20MMU](/photos/12/32/123209/28m1-vqfn_tmb.jpg)
Part Number:
Description:
MCU AVR 4K FLASH 20MHZ 28-QFN
Manufacturer:
Atmel
Datasheet:
![ATMEGA48P-20MMUR](/photos/12/32/123209/28m1-vqfn_tmb.jpg)
Part Number:
Description:
MCU AVR 4K FLASH 20MHZ 28QFN
Manufacturer:
Atmel
Datasheet:
![U641B](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
INTERVAL AND WIPE/WASH WIPER CONTROL IC WITH DELAY
Manufacturer:
ATMEL Corporation
Datasheet:
![U4082B](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Low-Voltage Voice-Switched IC for Hands-Free Operation
Manufacturer:
ATMEL Corporation
Datasheet: