User manual

Copyright © 2006 NEXCOM International Co., LTD. All rights reserved
18
Chapter 2 ICES 101 ETX Module Reference
NICE 3200, NICE 3220, ICES 101, ICES 120, ICEB 3200 User Manual
2.3 Watchdog Timer Programming
Setup WDT
#Setup Watchdog Timer Environment
InitWDT
#Initial Watchdog Timer.
Users can select second or minute timer
at this procedure line 8.
SetWDTTime
#Set Watchdog Timer Time-out Value.
Users can set time-out value at this
procedure line 3.
ExitSetup
#Exit Setup Environment
Start
End
P.S:Common library
==========================================================
===
0 SetupWDT PROC
1 mov al,87h
2 out 2eh,al
3 mov al,01h
4 out 2eh,al
5 mov al,55h
6 out 2eh,al
7 out 2eh,al
8
9 mov al,07h
10 out 2eh,al
11 mov al,07h
12 out 2fh,al
13 ret
14 SetupWDT ENDP
==========================================================
===
0 InitWDT PROC
1 mov al,71h
2 out 2eh,al
3 mov al,30h
4 out 2fh,al
5
6 mov al,72h
7 out 2eh,al
8 mov al,0c0h -Here!! set 0c0h for second, set 40h for minute
9 out 2fh,al
10 ret