Datasheet

On-chip peripherals ST7LITE20F2 ST7LITE25F2 ST7LITE29F2
86/170 DocID8349 Rev 7
11.3 Lite timer 2 (LT2)
11.3.1 Introduction
The Lite timer can be used for general-purpose timing functions. It is based on two free-
running 8-bit upcounters, an 8-bit input capture register.
11.3.2 Main features
Real-time clock
One 8-bit upcounter 1 ms or 2 ms timebase period (@ 8 MHz f
OSC
)
One 8-bit upcounter with autoreload and programmable timebase period from 4µs
to 1.024 ms in 4 µs increments (@ 8 MHz f
OSC
)
2 Maskable timebase interrupts.
Input capture
8-bit input capture register (LTICR)
Maskable interrupt with wakeup from HALT mode capability.
Figure 40. Lite timer 2 block diagram
LTCSR1
8-bit timebase
/2
8-bit
f
LTIMER
8
LTIC
f
OSC
/32
TB1F TB1IETBICFICIE
LTTB1 interrupt request
LTIC interrupt request
LTICR
Input capture
register
1
0
1 or 2 ms
Timebase
(@ 8MHz
f
OSC
)
To 12-bit AT TImer
f
LTIMER
LTCSR2
TB2F
0
TB2IE
0
LTTB2
8-bit timebase
00
8-bit autoreload
register
8
LTCNTR
LTARR
counter 2
counter 1
00
Interrupt request