ATMEGA162-16PU Atmel, ATMEGA162-16PU Datasheet - Page 41

IC AVR MCU 16K 16MHZ 5V 40DIP

ATMEGA162-16PU

Manufacturer Part Number
ATMEGA162-16PU
Description
IC AVR MCU 16K 16MHZ 5V 40DIP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA162-16PU

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)
2.7 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
40-DIP (0.600", 15.24mm)
Processor Series
ATMEGA16x
Core
AVR8
Data Bus Width
8 bit
Data Ram Size
1 KB
Interface Type
JTAG/SPI/USART
Maximum Clock Frequency
16 MHz
Number Of Programmable I/os
35
Number Of Timers
4
Operating Supply Voltage
2.7 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
3rd Party Development Tools
EWAVR, EWAVR-BL
Development Tools By Supplier
ATAVRDRAGON, ATSTK500, ATSTK600, ATAVRISP2, ATAVRONEKIT
Minimum Operating Temperature
- 40 C
Cpu Speed
16 MIPS
Eeprom Memory
512 Bytes
Input Output
35
Interface
JTAG/SPI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
44-pin PDIP
Programmable Memory
16K Bytes
Timers
2-8-bit, 2-16-bit
Voltage, Range
2.7-5.5 V
Package
40PDIP
Device Core
AVR
Family Name
ATmega
Maximum Speed
16 MHz
For Use With
ATSTK600-TQFP44 - STK600 SOCKET/ADAPTER 44-TQFPATSTK600 - DEV KIT FOR AVR/AVR32770-1007 - ISP 4PORT ATMEL AVR MCU SPI/JTAGATAVRISP2 - PROGRAMMER AVR IN SYSTEMATJTAGICE2 - AVR ON-CHIP D-BUG SYSTEMATSTK500 - PROGRAMMER AVR STARTER KIT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Timer/Counter
Oscillator
System Clock
Prescaler
Clock Prescale
Register – CLKPR
2513K–AVR–07/09
grammed. Any clock sources, including Internal RC Oscillator, can be selected when PortB 0
serves as clock output.
If the system clock prescaler is used, it is the divided system clock that is output when the
CKOUT Fuse is programmed.
system clock prescaler.
For AVR microcontrollers with Timer/Counter Oscillator pins (TOSC1 and TOSC2), the crystal is
connected directly between the pins. The Oscillator provides internal capacitors on TOSC1 and
TOSC2, thereby removing the need for external capacitors. The internal capacitors have a nom-
inal value of 10 pF. The Oscillator is optimized for use with a 32.768 kHz watch crystal. Applying
an external clock source to TOSC1 is not recommended.
The ATmega162 system clock can be divided by setting the Clock Prescale Register – CLKPR.
This feature can be used to decrease the system clock frequency and power consumption when
the requirement for processing power is low. This can be used with all clock source options, and
it will affect the clock frequency of the CPU and all synchronous peripherals. clk
clk
(asynchronously Timer/Counter) only will be scaled if the Timer/Counter is clocked
synchronously.
When switching between prescaler settings, the System Clock Prescaler ensures that no
glitches occur in the clock system and that no intermediate frequency is higher than neither the
clock frequency corresponding to the previous setting, nor the clock frequency corresponding to
the new setting.
The ripple counter that implements the prescaler runs at the frequency of the undivided clock,
which may be faster than the CPU’s clock frequency. Hence, it is not possible to determine the
state of the prescaler – even if it were readable, and the exact time it takes to switch from one
clock division to another cannot be exactly predicted.
From the time the CLKPS values are written, it takes between T1 + T2 and T1 + 2*T2 before the
new clock frequency is active. In this interval, 2 active clock edges are produced. Here, T1 is the
previous clock period, and T2 is the period corresponding to the new prescaler setting.
To avoid unintentional changes of clock frequency, a special write procedure must be followed
to change the CLKPS bits:
1. Write the Clock Prescaler Change Enable (CLKPCE) bit to one and all other bits in
2. Within four cycles, write the desired value to CLKPS while writing a zero to CLKPCE.
Caution: An interrupt between step 1 and step 2 will make the timed sequence fail. It is recom-
mended to have the Global Interrupt Flag cleared during these steps to avoid this problem.
• Bit 7 – CLKPCE: Clock Prescaler Change Enable
The CLKPCE bit must be written to logic one to enable change of the CLKPS bits. CLKPCE is
cleared by hardware four cycles after it is written or when CLKPS is written. Setting the CLKPCE
bit will disable interrupts, as explained in the CLKPS description below.
Bit
Read/Write
Initial Value
FLASH
CLKPR to zero.
are divided by a factor as shown in
CLKPCE
R/W
7
0
R
6
0
See “System Clock Prescaler” on page 41.
R
5
0
R
4
0
Table
CLKPS3
R/W
3
15. Note that the clock frequency of clk
CLKPS2
See Bit Description
R/W
2
CLKPS1
R/W
1
ATmega162/V
CLKPS0
R/W
for a description of the
0
I/O
CLKPR
, clk
CPU
, and
ASY
41

Related parts for ATMEGA162-16PU