ata6616 ATMEL Corporation, ata6616 Datasheet - Page 157

no-image

ata6616

Manufacturer Part Number
ata6616
Description
Microcontroller With Lin Transceiver, 5v Regulator And Watchdog
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ata6616-P3QW
Manufacturer:
ATMEL
Quantity:
950
Part Number:
ata6616-P3QW
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ata6616C
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ata6616C-P3QW
Manufacturer:
ATMEL
Quantity:
887
4.13.11
4.13.11.1
9132A–AUTO–10/08
DRAFT
16-bit Timer/Counter Register Description
Timer/Counter1 Control Register A – TCCR1A
Figure 4-57
Figure 4-57. Timer/Counter Timing Diagram, with Prescaler (f
• Bit 7:6 – COM1A1:0: Compare Output Mode for Channel A
• Bit 5:4 – COM1B1:0: Compare Output Mode for Channel B
The COM1A1:0 and COM1B1:0 control the Output Compare pins (OC1Ai and OC1Bi respec-
tively) behavior. If one or both of the COM1A1:0 bits are written to one, the OC1Ai output
overrides the normal port functionality of the I/O pin it is connected to. If one or both of the
COM1B1:0 bit are written to one, the OC1Bi output overrides the normal port functionality of the
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 4-34.
Bit
Read/Write
Initial Value
OC1Ai
OC1Bi
0
1
and ICF n
(PC and PFC PWM)
COM1A1
COM1B1
TOVn
(CTC and FPWM)
shows the same timing data, but with the prescaler enabled.
(Update at TOP)
COM1A1
TCNTn
TCNTn
(clk
as TOP)
Compare Output Mode, non-PWM
R/W
clk
OCRnx
clk
x
0
0
1
1
I/O
7
0
(FPWM)
I/O
Tn
/8)
(if used
COM1A0
R/W
COM1A0
COM1B0
6
0
x
0
1
0
1
TOP - 1
TOP - 1
COM1B1
Old OCRnx Value
R/W
ATA6616/ATA6617 [Preliminary]
5
0
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).
COM1B0
Table 4-34
R/W
4
0
TOP
TOP
R
3
0
shows the COM1A/B1:0 bit functionality
BOTTOM
TOP - 1
clk_I/O
R
2
0
New OCRnx Value
/8)
WGM11
R/W
1
0
BOTTOM + 1
TOP - 2
WGM10 TCCR1A
R/W
0
0
157

Related parts for ata6616