DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

ATMEGA64L-8MI View Datasheet(PDF) - Atmel Corporation

Part Name
Description
Manufacturer
ATMEGA64L-8MI Datasheet PDF : 363 Pages
First Prev 131 132 133 134 135 136 137 138 139 140 Next Last
ATmega64(L)
16-bit Timer/Counter
Register Description
Timer/Counter1 Control
Register A – TCCR1A
Timer/Counter3 Control
Register A – TCCR3A
Figure 58. Timer/Counter Timing Diagram, with Prescaler (fclk_I/O/8)
clkI/O
clkTn
(clkI/O/8)
TCNTn
(CTC and FPWM)
TCNTn
(PC and PFC PWM)
TOVn (FPWM)
and ICFn (if used
as TOP)
OCRnx
(Update at TOP)
TOP - 1
TOP - 1
TOP
TOP
Old OCRnx Value
BOTTOM
TOP - 1
BOTTOM + 1
TOP - 2
New OCRnx Value
Bit
Read/Write
Initial Value
7
COM1A1
R/W
0
6
COM1A0
R/W
0
5
COM1B1
R/W
0
4
COM1B0
R/W
0
3
COM1C1
R/W
0
2
COM1C0
R/W
0
1
WGM11
R/W
0
0
WGM10
R/W
0
TCCR1A
Bit
Read/Write
Initial Value
7
COM3A1
R/W
0
6
COM3A0
R/W
0
5
COM3B1
R/W
0
4
COM3B0
R/W
0
3
COM3C1
R/W
0
2
COM3C0
R/W
0
1
WGM31
R/W
0
0
WGM30
R/W
0
TCCR3A
• Bit 7:6 – COMnA1:0: Compare Output Mode for Channel A
• Bit 5:4 – COMnB1:0: Compare Output Mode for Channel B
• Bit 3:2 – COMnC1:0: Compare Output Mode for Channel C
The COMnA1:0, COMnB1:0, and COMnC1:0 control the Output Compare pins (OCnA,
OCnB, and OCnC respectively) behavior. If one or both of the COMnA1:0 bits are writ-
ten to one, the OCnA output overrides the normal port functionality of the I/O pin it is
connected to. If one or both of the COMnB1:0 bits are written to one, the OCnB output
overrides the normal port functionality of the I/O pin it is connected to. If one or both of
the COMnC1:0 bits are written to one, the OCnC output overrides the normal port func-
tionality of the I/O pin it is connected to. However, note that the Data Direction Register
(DDR) bit corresponding to the OCnA, OCnB or OCnC pin must be set in order to
enable the output driver.
When the OCnA, OCnB or OCnC is connected to the pin, the function of the COMnx1:0
bits is dependent of the WGMn3:0 bits setting. Table 58 shows the COMnx1:0 bit func-
tionality when the WGMn3:0 bits are set to a Normal or a CTC mode (non-PWM).
2490G–AVR–03/04
131

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]