Program Examples Of Watchdog Timer - Fujitsu F2MCTM-16LX Hardware Manual

16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 12 WATCHDOG TIMER
12.6

Program Examples of Watchdog Timer

Program example of watchdog timer is given below:
Program Examples of Watchdog Timer
Processing specification
• The watchdog timer is cleared each time in the loop of the main program.
• The main program must be executed once within the minimum interval time of the watchdog timer.
Coding example
WDTC
WTE
;
;---------Main program-------------------------------------
CODE
START:
LOOP:
;---------Vector setting------------------------------------------
VECT
VECT
208
EQU
0000A8H
EQU
WDTC:2
CSEG
MOV
I:WDTC,#00000011B
CLRB
I:WTE
ÅE
User processing
ÅE
BRA
LOOP
CSEG
ABS=0FFH
ORG
00FFDCH
DSL
START
DB
00H
ENDS
END
START
;Watchdog timer control
register
;Watchdog control bit
;Stack pointer (SP), already
;initialized
;Start up of watchdog timer
;Select interval time 2
;cycle
;Clear watchdog timer
;Reset vector setting
;Setting to single chip mode
21
18
+2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the F2MCTM-16LX and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Mb90360 series

Table of Contents

Save PDF