21
Chapter B
B.3 Example Programs
1. Enable watchdog timer and set 10 sec. as timeout interval
;-----------------------------------------------------------
Mov dx,2eh ; Unlock W83627HF
Mov al,87h
Out dx,al
Out dx,al
;-----------------------------------------------------------
Mov al,07h ; Select registers of watchdog timer
Out dx,al
Inc dx
Mov al,08h
Out dx,al
;-----------------------------------------------------------
Dec dx ; Enable the function of watchdog timer
Mov al,30h
Out dx,al
Inc dx
Mov al,01h
Out dx,al
;-----------------------------------------------------------
Dec dx ; Set second as counting unit
Mov al,0f5h
Out dx,al
Inc dx
In al,dx
And al,not 08h
Out dx,al
;-----------------------------------------------------------
Dec dx ; Set timeout interval as 10 seconds and start counting
Mov al,0f6h
Summary of Contents for TPC-650H
Page 1: ...TPC 650H 5 7 VGA TFT LCD Intel Atom Touch Panel Computer User Manual...
Page 8: ...TPC 650H User Manual viii C 2 6 IOCTL_WDT_REBOOT 31 C 3 Examples 32...
Page 15: ...2 CHAPTER 2 System Setup This chapter provides a brief explana tion for operating TPC 650H...
Page 19: ...2 CHAPTER 3 Features in Windows XP Embedded Sections include EWF HORM Advantech Utilities...
Page 22: ...TPC 650H User Manual 14...
Page 23: ...2 APPENDIX A Serial Port Settings...
Page 25: ...2 APPENDIX B Watchdog Timer Programming...
Page 35: ...2 APPENDIX C Watchdog Timer Programming on WinCE...
Page 42: ...TPC 650H User Manual 34...