DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

MC9S08SH8CSC 查看數據表(PDF) - Freescale Semiconductor

零件编号
产品描述 (功能)
生产厂家
MC9S08SH8CSC
Freescale
Freescale Semiconductor 
MC9S08SH8CSC Datasheet PDF : 341 Pages
First Prev 191 192 193 194 195 196 197 198 199 200 Next Last
Chapter 12 Modulo Timer (S08MTIMV1)
12.4.1 MTIM Operation Example
This section shows an example of the MTIM operation as the counter reaches a matching value from the
modulo register.
selected
clock source
MTIM clock
(PS=%0010)
MTIMCNT
$A7
$A8
$A9
$AA
$00
$01
TOF
MTIMMOD:
$AA
Figure 12-8. MTIM counter overfl w example
In the example of Figure 12-8, the selected clock source could be any of the five possible choices. The
prescaler is set to PS = %0010 or divide-by-4. The modulo value in the MTIMMOD register is set to $AA.
When the counter, MTIMCNT, reaches the modulo value of $AA, the counter overflows to $00 and
continues counting. The timer overflow flag, TOF, sets when the counter value changes from $AA to $00.
An MTIM overflow interrupt is generated when TOF is set, if TOIE = 1.
MC9S08SH8 MCU Series Data Sheet, Rev. 3
192
Freescale Semiconductor

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]