Datasheet
FS98O22
Rev. 1.6 53/146
6.1. Timer Module
The Timer module has the following features:
z 8-bit Timer Counter
z Internal (1 MHZ) or External (32768HZ) clock selection
z Time out Interrupt Signal selection
8 bits Counter
Reset
EN
CK
Out
8 to 1
Mux
Timer Interrupt SignalTMOUT[7:0]
TMRST
TMEN
Frequency
Divider
TMCLK/4
TMCLK
Figure 6-1 FS98O22 timer module function block
Please see Figure 6-1. The input of Timer Module is TMCLK. (Please refer to Section 5.7 for the detailed
setting) FS98O22 embeds a Frequency Divider in the Timer Module to divide the TMCLK by 4, and treats the
divided clock signal as 8-bit counter input clock. When a user sets the Timer Module enable flag, the 8-bit
counter will activate, and the TMOUT[7:0] will increase from 0x00H to 0xFFH. User needs to setup INS (Timer
Module interrupt Signal Selector) to select the time out interrupt signal. When timer out event happens, the
interrupt Flag will set itself and the program counter will jump to 0x04H for ISR (Interrupt Service Routine)
FORTUNE'
Properties
For Reference Only