AT90CAN128-16AE ATMEL Corporation, AT90CAN128-16AE Datasheet - Page 132

no-image

AT90CAN128-16AE

Manufacturer Part Number
AT90CAN128-16AE
Description
8-bit Avr Microcontroller With 128K Bytes of Isp Flash And CAN Controller.flash (Kbytes) 128 Vcc (V) 2.7-5.5 EEPROM (Kbytes) 4 SRAM (bytes) 4K CAN (mess. Obj.) 15
Manufacturer
ATMEL Corporation
Datasheet
16-bit Timer/Counter
Register Description
Timer/Counter1 Control
Register A – TCCR1A
Timer/Counter3 Control
Register A – TCCR3A
132
AT90CAN128
• 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 written
to one, the OCnA output overrides the normal port functionality of the I/O pin it is con-
nected to. If one or both of the COMnB1:0 bit 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 bit 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 60 shows the COMnx1:0 bit func-
tionality when the WGMn3:0 bits are set to a Normal or a CTC mode (non-PWM).
Table 60. Compare Output Mode, non-PWM
Bit
Read/Write
Initial Value
Bit
Read/Write
Initial Value
COMnA1/COMnB1/
COMnC1
0
0
1
1
COM1A1
COM3A1
R/W
R/W
7
0
7
0
COM1A0
COM3A0
COMnA0/COMnB0/
R/W
R/W
6
0
6
0
COMnC0
COM1B1
COM3B1
0
1
0
1
R/W
R/W
5
0
5
0
COM1B0
COM3B0
R/W
R/W
Description
Normal port operation, OCnA/OCnB/OCnC
disconnected.
Toggle OCnA/OCnB/OCnC on Compare Match.
Clear OCnA/OCnB/OCnC on Compare Match (Set
output to low level).
Set OCnA/OCnB/OCnC on Compare Match (Set
output to high level).
4
0
4
0
COM1C1 COM1C0
COM3C1 COM3C0
R/W
R/W
3
0
3
0
R/W
R/W
2
0
2
0
WGM11
WGM31
R/W
R/W
1
0
1
0
WGM10
WGM30
R/W
R/W
4250C–CAN–03/04
0
0
0
0
TCCR1A
TCCR3A

Related parts for AT90CAN128-16AE