ATMEGA162-16AC Atmel, ATMEGA162-16AC Datasheet - Page 126

IC MCU AVR 16K 5V 16MHZ 44-TQFP

ATMEGA162-16AC

Manufacturer Part Number
ATMEGA162-16AC
Description
IC MCU AVR 16K 5V 16MHZ 44-TQFP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA162-16AC

Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
EBI/EMI, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
35
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
44-TQFP, 44-VQFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Data Converters
-
16-bit Timer/Counter
Register Description
Timer/Counter1 Control
Register A – TCCR1A
Timer/Counter3 Control
Register A – TCCR3A
126
ATmega162(V/U/L)
• Bit 7:6 – COMnA1:0: Compare Output Mode for channel A
• Bit 5:4 – COMnB1:0: Compare Output Mode for channel B
The COMnA1:0 and COMnB1:0 control the Output Compare pins (OCnA and OCnB
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 connected 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. However, note that the Data Direction Reg-
ister (DDR) bit corresponding to the OCnA or OCnB pin must be set in order to enable
the output driver.
When the OCnA or OCnB is connected to the pin, the function of the COMnx1:0 bits is
dependent of the WGMn3:0 bits setting. Table 53 shows the COMnx1:0 bit functionality
when the WGMn3:0 bits are set to a normal or a CTC mode (non-PWM).
Table 53. Compare Output Mode, non-PWM
Bit
Read/Write
Initial Value
Bit
Read/Write
Initial Value
COMnA1/
COMnB1
0
0
1
1
COM1A1
COM3A1
R/W
R/W
7
0
7
0
COMnA0/
COMnB0
0
1
0
1
COM1A0
COM3A0
R/W
R/W
6
0
6
0
Description
Normal port operation, OCnA/OCnB disconnected.
Toggle OCnA/OCnB on compare match.
Clear OCnA/OCnB on compare match (Set output to low level).
Set OCnA/OCnB on compare match (Set output to high level).
COM1B1
COM3B1
R/W
R/W
5
0
5
0
COM1B0
COM3B0
R/W
R/W
4
0
4
0
FOC1A
FOC3A
W
W
3
0
3
0
FOC1B
FOC3B
W
W
2
0
2
0
WGM11
WGM31
R/W
R/W
1
0
1
0
WGM10
WGM30
R/W
R/W
2513C–AVR–09/02
0
0
0
0
TCCR1A
TCCR3A

Related parts for ATMEGA162-16AC