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

16-bit microcontroller mb90330 series
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

10.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 loop of the main program.
• The processing of the main loop must go round within the minimum interval time.
Coding example
WDTC
WTE
;----------Main program---------------------------------------------------
CODE
START:
;
WDG_START:
;----------Main loop-------------------------------------------------------
MAIN:
;
;
;
CODE
;----------Vector Settings---------------------------------------------------------
VECT
VECT
EQU
0000A8H
EQU
WDTC:2
CSEG
:
MOV
WDTC, #00000011B
CLRB
I:WTE
:
User processing
:
JMP
MAIN
ENDS
CSEG
ABS=0FFH
ORG
0FFDCH
DSL
START
DB
00H
ENDS
END
START
CHAPTER 10 WATCHDOG TIMER
; Watchdog timer control register
; Watchdog timer control bit
; Initialize such as a stack pointer (SP).
; Activating watchdog timer
21
± 2
18
; 2
cycles in time of the interval are selected.
; Clearing watchdog timer
It is regularly clearness of two bits.
; Interval Time of Watchdog Timer
; Loop in the shortest possible time
; Reset vector setting
; Single-chip mode setting
229

Advertisement

Table of Contents
loading

Table of Contents