TIMERS and TIMER/COUNTERS KS57C2308/P2308/C2316/P2316
11-8
+ + PROGRAMMING TIP — Using the Watchdog Timer
RESET DI
BITS EMB
SMB 15
LD EA,#00H
LD SP,EA
•
•
•
LD A,#0DH ; WDCNT input clock is 7.82 ms
LD BMOD,A
•
•
•
MAIN BITS WDTCF ; Main routine operation period must be shorter than
; watchdog
• ; timer’s period
•
•
JP MAIN