ATMEGA128A-MNR Atmel, ATMEGA128A-MNR Datasheet - Page 106

IC MCU AVR 128K FLASH 64VQFN

ATMEGA128A-MNR

Manufacturer Part Number
ATMEGA128A-MNR
Description
IC MCU AVR 128K FLASH 64VQFN
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA128A-MNR

Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
EBI/EMI, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
53
Program Memory Size
128KB (64K x 16)
Program Memory Type
FLASH
Eeprom Size
4K x 8
Ram Size
4K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-TQFP
Core
AVR8
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
14.10 Timer/Counter Prescaler
14.11 Register Description
14.11.1
8151H–AVR–02/11
TCCR0 - Timer/Counter Control Register
Figure 14-12. Prescaler for Timer/Counter0
The clock source for Timer/Counter0 is named clk
system clock clk
from the TOSC1 pin. This enables use of Timer/Counter0 as a Real Time Counter (RTC). When
AS0 is set, pins TOSC1 and TOSC2 are disconnected from Port C. A crystal can then be con-
nected between the TOSC1 and TOSC2 pins to serve as an independent clock source for
Timer/Counter0. The Oscillator is optimized for use with a 32.768kHz crystal. Applying an exter-
nal clock source to TOSC1 is not recommended.
For Timer/Counter0, the possible prescaled selections are: clk
clk
Setting the PSR0 bit in SFIOR resets the prescaler. This allows the user to operate with a pre-
dictable prescaler.
• Bit 7 – FOC0: Force Output Compare
The FOC0 bit is only active when the WGM bits specify a non-PWM mode. However, for ensur-
ing compatibility with future devices, this bit must be set to zero when TCCR0 is written when
operating in PWM mode. When writing a logical one to the FOC0 bit, an immediate compare
match is forced on the waveform generation unit. The OC0 output is changed according to its
Bit
Read/Write
Initial Value
T0S
TOSC1
/128, clk
clk
PSR0
CS00
CS01
CS02
AS0
I/O
T0S
FOC0
I/O
/256, and clk
W
7
0
. By setting the AS0 bit in ASSR, Timer/Counter0 is asynchronously clocked
WGM00
R/W
6
0
clk
T0S
T0S
/1024. Additionally, clk
COM01
R/W
5
0
Clear
COM00
R/W
TIMER/COUNTER0 CLOCK SOURCE
4
0
0
T0
WGM01
R/W
. clk
3
0
10-BIT T/C PRESCALER
T0S
T0
clk
as well as 0 (stop) may be selected.
T0
is by default connected to the main
CS02
R/W
2
0
T0S
CS01
ATmega128A
R/W
/8, clk
1
0
T0S
CS00
R/W
/32, clk
0
0
TCCR0
T0S
/64,
106

Related parts for ATMEGA128A-MNR