Program Examples Of Watchdog Timer - Fujitsu MB90335 Series Hardware Manual

16-bit microcontroller
Table of Contents

Advertisement

MB90335 Series
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
CM44-10137-6E
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
FUJITSU MICROELECTRONICS LIMITED
CHAPTER 10 WATCHDOG TIMER
10.6 Program Examples of 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
191

Advertisement

Table of Contents
loading

This manual is also suitable for:

F2mc-16lxMb90v330aMb90f337Mb90337

Table of Contents