ATmega88PA Automotive Atmel Corporation, ATmega88PA Automotive Datasheet - Page 106

no-image

ATmega88PA Automotive

Manufacturer Part Number
ATmega88PA Automotive
Description
Manufacturer
Atmel Corporation
106
Atmel ATmega48PA/88PA/168PA [Preliminary]
Table 15-7
correct PWM mode.
Table 15-7.
• Bits 3, 2 – Reserved
These bits are reserved bits in the Atmel
zero.
• Bits 1:0 – WGM01:0: Waveform Generation Mode
Combined with the WGM02 bit found in the TCCR0B Register, these bits control the counting
sequence of the counter, the source for maximum (TOP) counter value, and what type of
waveform generation to be used, see
Timer/Counter unit are: Normal mode (counter), Clear Timer on Compare Match (CTC) mode,
and two types of Pulse Width Modulation (PWM) modes (see
98).
Table 15-8.
Note:
Notes:
Mode
COM0B1
0
1
2
3
4
5
6
7
0
0
1
1
1. A special case occurs when OCR0B equals TOP and COM0B1 is set. In this case, the
1. MAX = 0xFF
2. BOTTOM = 0x00
WGM02
shows the COM0B1:0 bit functionality when the WGM02:0 bits are set to phase
Compare Match is ignored, but the set or clear is done at TOP. See
Mode” on page 101
0
0
0
0
1
1
1
1
Compare Output Mode, Phase Correct PWM Mode
Waveform Generation Mode Bit Description
COM0B0
0
1
0
1
WGM01
0
0
1
1
0
0
1
1
Description
Normal port operation, OC0B disconnected.
Reserved
Clear OC0B on Compare Match when up-counting. Set OC0B on
Compare Match when down-counting.
Set OC0B on Compare Match when up-counting. Clear OC0B on
Compare Match when down-counting.
for more details.
WGM00
0
1
0
1
0
1
0
1
®
Table
Timer/Counter
Mode of
Operation
Normal
PWM, Phase
Correct
CTC
Fast PWM
Reserved
PWM, Phase
Correct
Reserved
Fast PWM
ATmega48PA/88PA/168PA and will always read as
15-8. Modes of operation supported by the
OCRA
OCRA
OCRA
0xFF
0xFF
0xFF
TOP
“Modes of Operation” on page
(1)
Update of
Immediate
Immediate
BOTTOM
BOTTOM
OCRx at
TOP
TOP
“Phase Correct PWM
9223B–AVR–09/11
Set on
TOV Flag
BOTTOM
BOTTOM
MAX
MAX
MAX
TOP
(1)(2)

Related parts for ATmega88PA Automotive