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

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
126
ATtiny167
I/O pin it is connected to. However, note that the Data Direction Register (DDR) bit and OC1xi bit
(TCCR1D) corresponding to the OC1Ai or OC1Bi pin must be set in order to enable the output
driver.
When the OC1Ai or OC1Bi is connected to the pin, the function of the COM1A/B1:0 bits is
dependent of the WGM13:0 bits setting.
when the WGM13:0 bits are set to a Normal or a CTC mode (non-PWM).
Table 12-1.
Table 12-2
PWM mode.
Table 12-2.
Note:
Table 12-3
correct or the phase and frequency correct, PWM mode.
Table 12-3.
OC1Ai
OC1Bi
OC1Ai
OC1Bi
OC1Ai
OC1Bi
0
1
0
1
1
1
1
0
1
1. A special case occurs when OCR1A/OCR1B equals TOP and COM1A1/COM1B1 is set. In
this case the compare match is ignored, but the set or clear is done at TOP.
“12.9.3” on page 118.
shows the COM1A/B1:0 bit functionality when the WGM13:0 bits are set to the phase
COM1A1
COM1B1
shows the COM1A/B1:0 bit functionality when the WGM13:0 bits are set to the fast
COM1A1
COM1B1
COM1A1
COM1B1
Compare Output Mode, non-PWM
Compare Output Mode, Fast PWM
Compare Output Mode, Phase Correct and Phase and Frequency Correct
PWM
x
0
0
1
1
0
0
1
1
0
x
x
(1)
COM1A0
COM1B0
COM1A0
COM1B0
COM1A0
COM1B0
0
1
0
1
x
x
0
1
0
1
x
0
for more details.
Description
Normal port operation, OC1A/OC1B disconnected.
Toggle OC1A/OC1B on Compare Match.
Clear OC1A/OC1B on Compare Match (Set output to low level).
Set OC1A/OC1B on Compare Match (Set output to high level).
Description
Normal port operation, OC1A/OC1B disconnected.
WGM13=0: Normal port operation, OC1A/OC1B disconnected.
WGM13=1: Toggle OC1A on Compare Match, OC1B reserved.
Clear OC1A/OC1B on Compare Match
Set OC1A/OC1B at TOP
Set OC1A/OC1B on Compare Match
Clear OC1A/OC1B at TOP
Description
Normal port operation, OC1A/OC1B disconnected.
Table 12-1
(1)
shows the COM1A/B1:0 bit functionality
See Section
7728A–AUTO–07/08

Related parts for attiny167-esxz