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

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
7766A–AVR–03/08
that the Data Direction Register (DDR) bit corresponding to the OC4B pin must be set in order to
enable the output driver.
The function of the COM4B1:0 bits depends on the PWM4B and WGM40 bit settings.
11
PWM).
Table 16-11. Compare Output Mode, Normal Mode (non-PWM)
Table 16-12
Fast PWM Mode.
Table 16-12. Compare Output Mode, Fast PWM Mode
Table 16-13
Phase and Frequency Correct PWM Mode.
Table 16-13. Compare Output Mode, Phase and Frequency Correct PWM Mode
• Bit 3 - FOC4A: Force Output Compare Match 4A
The FOC4A bit is only active when the PWM4A bit specify a non-PWM mode.
Writing a logical one to this bit forces a change in the Waveform Output (OCW4A) and the Out-
put Compare pin (OC4A) according to the values already set in COM4A1 and COM4A0. If
COM4A1 and COM4A0 written in the same cycle as FOC4A, the new settings will be used. The
Force Output Compare bit can be used to change the output pin value regardless of the timer
COM4B1..0
COM4B1..0
COM4B1..0
shows the COM4B1:0 bit functionality when the PWM4B bit is set to Normal Mode (non-
00
01
10
11
00
01
10
11
00
01
10
11
shows the COM4B1:0 bit functionality when the PWM4B and WGM40 bits are set to
shows the COM4B1:0 bit functionality when the PWM4B and WGM40 bits are set to
OCW4B Behavior
Normal port operation.
Toggle on Compare Match.
Clear on Compare Match.
Set on Compare Match.
OCW4B 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.
OCW4B 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
Connected
Connected
Connected
Connected
Connected
Connected
OC4B Pin
OC4B Pin
OC4B Pin
ATmega32U4
Disconnected
Disconnected
Disconnected
Disconnected
Disconnected
Disconnected
Disconnected
Disconnected
Disconnected
Disconnected
Connected
Connected
OC4B Pin
OC4B Pin
OC4B Pin
Table 16-
183

Related parts for atmega32u4-16mu