atmega32u4-16mu ATMEL Corporation, atmega32u4-16mu Datasheet - Page 155

no-image

atmega32u4-16mu

Manufacturer Part Number
atmega32u4-16mu
Description
Atmega32u4 8-bit Avr Microcontroller With 32k Bytes Of Isp Flash And Usb Controller
Manufacturer
ATMEL Corporation
Datasheet
15.9
15.9.1
7766A–AVR–03/08
Timer/Counter Prescaler
General Timer/Counter Control Register – GTCCR
Figure 15-12. Prescaler for Timer/Counter2
The clock source for Timer/Counter2 is named clk
clk
For Timer/Counter2, the possible prescaled selections are: clk
clk
Setting the PSRASY bit in GTCCR resets the prescaler. This allows the user to operate with a
predictable prescaler.
• Bit 1 – PSRASY: Prescaler Reset Timer/Counter2
When this bit is one, the Timer/Counter2 prescaler will be reset. This bit is normally cleared
immediately by hardware. The bit will not be cleared by hardware if the TSM bit is set. Refer to
the description of the
description of the Timer/Counter Synchronization mode.
Bit
Read/Write
Initial Value
I O
T2S
.
/128, clk
PSRASY
clk
CS20
CS21
CS22
7
TSM
R/W
0
I/O
T2S
/256, and clk
R
6
0
“General Timer/Counter Control Register – GTCCR” on page 88
clk
5
R
0
T2S
T2S
/1024. Additionally, clk
4
R
0
Clear
TIMER/COUNTER2 CLOCK SOURCE
3
R
0
0
T2S
, connected to the main system I/O clock
10-BIT T/C PRESCALER
T2S
2
R
0
clk
as well as 0 (stop) may be selected.
T2
1
PSRA-
SY
R/W
0
T2S
ATmega32U4
/8, clk
0
PSRSY
NC
R/W
0
T2S
/32, clk
GTCCR
T2S
for a
/64,
155

Related parts for atmega32u4-16mu