at90pwm81-16se ATMEL Corporation, at90pwm81-16se Datasheet - Page 90

no-image

at90pwm81-16se

Manufacturer Part Number
at90pwm81-16se
Description
8-bit Avr Microcontroller With 8k Bytes In- System Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
12.3.1
12.4
90
Counter Unit
AT90PWM81
External Clock Source
An external clock source applied to the T1/T0 pin can be used as Timer/Counter clock (clk
T1/T0 pin is sampled once every system clock cycle by the pin synchronization logic. The synchronized
(sampled) signal is then passed through the edge detector.
block diagram of the T1/T0 synchronization and edge detector logic. The registers are clocked at the pos-
itive edge of the internal system clock (
system clock.
The edge detector generates one clk
edge it detects.
Figure 12-2.
The synchronization and edge detector logic introduces a delay of 2.5 to 3.5 system clock cycles from an
edge has been applied to the T1/T0 pin to the counter is updated.
Enabling and disabling of the clock input must be done when T1/T0 has been stable for at least one system
clock cycle, otherwise it is a risk that a false Timer/Counter clock pulse is generated.
Each half period of the external clock applied must be longer than one system clock cycle to ensure cor-
rect sampling. The external clock must be guaranteed to have less than half the system clock frequency
(f
quency of an external clock it can detect is half the sampling frequency (Nyquist sampling theorem).
However, due to variation of the system clock frequency and duty cycle caused by Oscillator source (crys-
tal, resonator, and capacitors) tolerances, it is recommended that maximum frequency of an external clock
source is less than f
An external clock source can not be prescaled.
The main part of the 16-bit Timer/Counter is the programmable 16-bit bi-directional counter unit.
12-3
Figure 12-3.
ExtClk
shows a block diagram of the counter and its surroundings.
< f
Tn
clk
clk_I/O
I/O
TCNTnH (8-bit)
TEMP (8-bit)
/2) given a 50/50% duty cycle. Since the edge detector uses sampling, the maximum fre-
T1/T0 Pin Sampling
Counter Unit Block Diagram
TCNTn (16-bit Counter)
DATA BUS
clk_I/O
D
LE
Q
/2.5.
TCNTnL (8-bit)
(8-bit)
Synchronization
D
T1
Q
/clk
clk
T
0
Count
Clear
I/O
pulse for each positive (CSn2:0 = 7) or negative (CSn2:0 = 6)
). The latch is transparent in the high period of the internal
Control Logic
TOP
BOTTOM
TOVn
(Int.Req.)
clk
Figure 12-2
Tn
D
Clock Select
Q
( Ckio )
Detector
Edge
shows a functional equivalent
Edge Detector
Tn
7734M–AVR–03/10
T1
Tn_sync
(To Clock
Select Logic)
/clk
T0
Figure
). The

Related parts for at90pwm81-16se