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

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
182
ATmega32U4
Table 16-8
are set to Phase and Frequency Correct PWM Mode.
Table 16-8.
Table 16-9
are set to single-slope PWM6 Mode. In the PWM6 Mode the same Waveform Output (OCW4A)
is used for generating all waveforms and the Output Compare values OC4A and OC4A are con-
nected on OC4x and OC4x pins as described below.
Table 16-9.
Table 16-10
are set to dual-slope PWM6 Mode.I
Table 16-10. Compare Output Mode, Dual-Slope PWM6 Mode
• Bits 5,4 - COM4B1, COM4B0: Comparator B Output Mode, Bits 1 and 0
These bits control the behavior of the Waveform Output (OCW4B) and the connection of the
Output Compare pin (OC4B). If one or both of the COM4B1:0 bits are set, the OC4B output
overrides the normal port functionality of the I/O pin it is connected to. The complementary
OC4B output is connected only in PWM modes when the COM4B1:0 bits are set to “01”. Note
COM1A1..0
COM4A1..0
COM4A1..0
00
01
10
00
01
10
00
01
10
11
11
11
shows the COM4A1:0 bit functionality when the PWM4A, WGM40 and WGM41 bits
shows the COM4A1:0 bit functionality when the PWM4A, WGM40 and WGM41 bits
shows the COM4A1:0 bit functionality when the PWM4A, WGM40 and WGM41 bits
Compare Output Mode, Phase and Frequency Correct PWM Mode
Compare Output Mode, Single-Slope PWM6 Mode
OCW1A Behavior
Normal port operation.
Cleared on Compare Match when up-counting.
Set on Compare Match when down-counting.
Cleared on Compare Match when up-counting.
Set on Compare Match when down-counting.
Set on Compare Match when up-counting.
Cleared on Compare Match when down-counting.
OCW4A Behavior
Normal port operation.
Cleared on Compare Match.
Set when TCNT4 = 0x000.
Cleared on Compare Match.
Set when TCNT4 = 0x000.
Set on Compare Match.
Cleared when TCNT4 = 0x000.
OCW4A Behavior
Normal port operation.
Cleared on Compare Match when up-counting.
Set on Compare Match when down-counting.
Cleared on Compare Match when up-counting.
Set on Compare Match when down-counting.
Set on Compare Match when up-counting.
Cleared on Compare Match when down-counting.
Disconnected
Disconnected
Disconnected
Connected
Connected
Connected
OC4A Pin
OC4x Pin
OC4x Pin
OC4A
OC4A
OC4A
OC4A
OC4A
OC4A
Disconnected
Disconnected
Disconnected
Disconnected
Disconnected
7766A–AVR–03/08
Connected
OC4A Pin
OC4x Pin
OC4x Pin
OC4A
OC4A
OC4A
OC4A
OC4A
OC4A

Related parts for atmega32u4-16mu