atmega161-4pi ATMEL Corporation, atmega161-4pi Datasheet - Page 40

no-image

atmega161-4pi

Manufacturer Part Number
atmega161-4pi
Description
8-bit Microcontroller With 16k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
8-bit Timer/Counters
T/C0 and T/C2
40
ATmega161(L)
• Bit 0
When this bit is set (one), the Timer/Counter1 and Timer/Counter0 prescaler will be
reset. The bit will be cleared by hardware after the operation is performed. Writing a
zero to this bit will have no effect. Note that Timer/Counter1 and Timer/Counter0 share
the same prescaler and a reset of this prescaler will affect both timers. This bit will
always be read as zero.
Figure 31 shows the block diagram for Timer/Counter0. Figure 32 shows the block dia-
gram for Timer/Counter2.
Figure 31. Timer/Counter0 Block Diagram
PSR10: Prescaler Reset Timer/Counter1 and Timer/Counter0
7
7
7
TIMER/COUNTER0
8-BIT COMPARATOR
OUTPUT COMPARE
REGISTER0 (OCR0)
REGISTER (TIMSK)
TIMER INT. MASK
(TCNT0)
0
0
0
T/C0 OVER-
FLOW IRQ
T/C CLEAR
T/C CLK SOURCE
UP/DOWN
REGISTER (TIFR)
TIMER INT. FLAG
T/C0 COMPARE
MATCH IRQ
REGISTER (TCCR0)
T/C0 CONTROL
CONTROL
LOGIC
SPECIAL FUNCTIONS
IO REGISTER (SFIOR)
1228D–AVR–02/07
CK
T0

Related parts for atmega161-4pi