atmega32u4-16mu ATMEL Corporation, atmega32u4-16mu Datasheet - Page 194

no-image

atmega32u4-16mu

Manufacturer Part Number
atmega32u4-16mu
Description
Atmega32u4 8-bit Avr Microcontroller With 32k Bytes Of Isp Flash And Usb Controller
Manufacturer
ATMEL Corporation
Datasheet
17. Output Compare Modulator (OCM1C0A)
17.1
17.2
194
Overview
Description
ATmega32U4
The Output Compare Modulator (OCM) allows generation of waveforms modulated with a carrier
frequency. The modulator uses the outputs from the Output Compare Unit C of the 16-bit
Timer/Counter1 and the Output Compare Unit of the 8-bit Timer/Counter0. For more details
about these Timer/Counters see
calers” on page 87
Figure 17-1. Output Compare Modulator, Block Diagram
When the modulator is enabled, the two output compare channels are modulated together as
shown in the block diagram
The Output Compare unit 1C and Output Compare unit 2 shares the PB7 port pin for output. The
outputs of the Output Compare units (OC1C and OC0A) overrides the normal PORTB7 Register
when one of them is enabled (i.e., when COMnx1:0 is not equal to zero). When both OC1C and
OC0A are enabled at the same time, the modulator is automatically enabled.
The functional equivalent schematic of the modulator is shown on
includes part of the Timer/Counter units and the port B pin 7 output driver circuit.
Figure 17-2. Output Compare Modulator, Schematic
( From Waveform Generator )
( From Waveform Generator )
COMA01
COMA00
COM1C1
COM1C0
Timer/Counter 1
Timer/Counter 0
and
PORTB7
D
OC1C
D
OC0A
D
“8-bit Timer/Counter2 with PWM” on page
Q
Q
Q
(Figure
“Timer/Counter0, Timer/Counter1, and Timer/Counter3 Pres-
DATABUS
17-1).
OC1C
OC0A
Modulator
0
1
DDRB7
D
Q
138.
1
0
Figure
OC0A / PB7
OC1C /
17-2. The schematic
Pin
7766A–AVR–03/08
Vcc
OC0A/ PB7
OC1C /
Pin

Related parts for atmega32u4-16mu