attiny167-esxz ATMEL Corporation, attiny167-esxz Datasheet - Page 127

no-image

attiny167-esxz

Manufacturer Part Number
attiny167-esxz
Description
8-bit Avr 8-bit Microcontroller Microcontroller With 16k Bytes In-system Programmable Flash And Lin Controller
Manufacturer
ATMEL Corporation
Datasheet
Table 12-4.
7728A–AUTO–07/08
Mode
10
12
11
0
1
2
3
4
5
6
7
8
9
WGM13
0
0
0
0
0
0
0
0
1
1
1
1
1
Waveform Generation Mode Bit Description
WGM12
(CTC1)
0
0
0
0
1
1
1
1
0
0
0
0
1
Table 12-3.
Note:
• Bit 3:2 – Reserved Bits
These bits are reserved for future use.
• Bit 1:0 – WGM11:0: Waveform Generation Mode
Combined with the WGM13:2 bits found in the TCCR1B Register, these bits control the counting
sequence of the counter, the source for maximum (TOP) counter value, and what type of wave-
form generation to be used, see
unit are: Normal mode (counter), Clear Timer on Compare match (CTC) mode, and three types
of Pulse Width Modulation (PWM) modes.
OC1Ai
OC1Bi
1
1
1
(PWM11)
WGM11
1. A special case occurs when OC1A/OC1B equals TOP and COM1A1/COM1B1 is set.
0
0
1
1
0
0
1
1
0
0
1
1
0
Section “12.9.4” on page 120.
COM1A1
COM1B1
Compare Output Mode, Phase Correct and Phase and Frequency Correct
PWM
0
1
1
(PWM10)
WGM10
(1)
0
1
0
1
0
1
0
1
0
1
0
1
0
COM1A0
COM1B0
Timer/Counter
Mode of Operation
Normal
PWM, Phase Correct, 8-bit
PWM, Phase Correct, 9-bit
PWM, Phase Correct, 10-
bit
CTC
Fast PWM, 8-bit
Fast PWM, 9-bit
Fast PWM, 10-bit
PWM, Phase and
Frequency Correct
PWM, Phase and
Frequency Correct
PWM, Phase Correct
PWM, Phase Correct
CTC
1
0
1
Table
(1)
Description
WGM13=0: Normal port operation, OC1A/OC1B disconnected.
WGM13=1: Toggle OC1A on Compare Match, OC1B reserved.
Clear OC1A/OC1B on Compare Match when up-counting.
Set OC1A/OC1B on Compare Match when downcounting.
Set OC1A/OC1B on Compare Match when up-counting.
Clear OC1A/OC1B on Compare Match when downcounting.
12-4. Modes of operation supported by the Timer/Counter
for more details.
(See Section “12.9” on page
TOP
0xFFFF
0x00FF
0x01FF
0x03FF
OCR1A
0x00FF
0x01FF
0x03FF
ICR1
OCR1A
ICR1
OCR1A
ICR1
Update of
OCR1A/B at
Immediate
TOP
TOP
TOP
Immediate
TOP
TOP
TOP
BOTTOM
BOTTOM
TOP
TOP
Immediate
116.).
ATtiny167
TOV1 Flag
Set on
MAX
BOTTOM
BOTTOM
BOTTOM
MAX
TOP
TOP
TOP
BOTTOM
BOTTOM
BOTTOM
BOTTOM
MAX
See
127

Related parts for attiny167-esxz