|
RV-3029 Datasheet, PDF (30/67 Pages) MICORO CRYSTAL SWITZERLAND – DTCXO Temperature Compensated Real Time Clock | |||
|
◁ |
Micro Crystal
DTCXO Temperature Compensated Real Time Clock / Calendar Module
RV-3029
Example Countdown Timer function with Timer in Auto Reload mode
In this example, the Countdown Timer is set to Automatic Reload Mode, the Countdown Timer value is set = â3â.
Automatic reload of the countdown value ,nâ requires 1 additional Timer Source Clock. This additional timer
source clock has no effect on the first Timer period but it has to be taken into account since it results in a Timer
duration of ,n+1â for subsequent timer periods. The Interrupt signal ( INT ) is cleared by clearing the Timer Flag
âTFâ = â0â.
1
TE
TAR
Timer Source
Clock Frequency
TD0 / TD1
Countdown Timer
Value
XX
03
02
01
Auto
Reload
03
02
01
Auto
Reload
03
02
TF
INT
TSC
n
TSC
n
n +1
2
3
4
53
4
1 Timer Source Clock Frequency TD0 / TD1 can only be modified when Timer is disabled âTEâ = â0â
Countdown Timer value ,nâ in âTimer Lowâ and âTimer Highâ only can be modified when Timer âTEâ = â0â
and Timer Auto Reload âTARâ = â0â are both disabled.
2
Duration
of
first
Timer
Period
=
Source
n
Clock Frequency
The additional timer source clock for automatic reload of the countdown Timer value ,nâ has no effect on
the first Timer Period.
3 Timer Automatic Reload mode âTARâ requires one Timer Source Clock period for automatic reload of the
Countdown Timer value ,nâ.
4 To reset Interrupt signal ( INT ), Timer Flag âTFâ has to be cleared by writing = â0â.
5 When Countdown Timer is in automatic reload mode, one additional timer source clock has to be taken
into account since it results in a Timer duration of ,n+1â for subsequent timer periods.
30/67
|
▷ |