
63
ITA-1710 User Manual
Appendix A
P
rogramming
the
W
atchdog
Timer
A.1.3
Example Program
1.
Enable watchdog timer and set 10 sec. as timeout interval
Mov dx,A65h ; Select register 65h, watchdog timer I/O port address A00h+ register
shifts 65h
Mov al,80h ; Set second as counting unit
Out dx,al
Mov dx,A66h ; Select register 66h, watchdog timer I/O port address A00h+ register
shift 66h
Mov al,10 ; Set timeout interval as 10 seconds and start counting
Out dx,al
;-----------------------------------------------------------
2.
Enable watchdog timer and set 5 min. as timeout interval
;-----------------------------------------------------------
Mov dx,A65h ; Select register 65h, watchdog timer I/O port address A00h+ register
shifts 65h
Mov al,00h ; Set minute as counting unit
Out dx,al
Mov dx,A66h ; Select register 66h, watchdog timer I/O port address A00h+ register
shifts 66h
Mov al,5 ;Set timeout interval as 5 minutes and start counting
Out dx,al
;-----------------------------------------------------------
3.
Enable watchdog timer to be reset by mouse
;-----------------------------------------------------------
Mov dx,A67h ; Select register 67h, watchdog timer I/O port address A00h+ register
shifts 67h
In al,dx
Or al,4h ; Enable watchdog timer to be reset by mouse
Out dx,al
;-----------------------------------------------------------
4.
Enable watchdog timer to be reset by keyboard
;-----------------------------------------------------------
Mov dx,A67h ; Select register 67h, watchdog timer I/O port address A00h+ register
shifts 67h
In al,dx
Or al,2h ; Enable watchdog timer to be reset by keyboard
Out dx,al
;-----------------------------------------------------------
5.
Generate a time-out signal without timer counting
;-----------------------------------------------------------
Mov dx,A68h ; Select register 68h, watchdog timer I/O port address A00h+ register
shifts 68h
In al,dx
Or al,4h ; Generate a time-out signal
Out dx,al
;-----------------------------------------------------------
Содержание ITA-1710
Страница 1: ...User Manual ITA 1710 Fanless Embedded Atom Dual Core Compact Industrial Computer...
Страница 10: ...ITA 1710 User Manual x...
Страница 11: ...Chapter 1 1 Overview This chapter provider general Information about the ITA 1710...
Страница 15: ...Chapter 2 2 H W Installation This chapter provides H W Instal lation about the ITA 1710...
Страница 26: ...ITA 1710 User Manual 16...
Страница 27: ...Chapter 3 3 System Setup This chapter introduces the instal lation process of ITA 1710...
Страница 34: ...ITA 1710 User Manual 24...
Страница 35: ...Chapter 4 4 AMI BIOS This chapter introduces how to configure AMI BIOS...
Страница 62: ...ITA 1710 User Manual 52...
Страница 63: ...Chapter 5 5 Driver Installation This chapter describes how to Install drivers...
Страница 67: ...Chapter 6 6 GPIO Programming Guide This chapter introduces GPIO pro gramming Guide...
Страница 70: ...ITA 1710 User Manual 60...
Страница 71: ...Appendix A A Programming the Watchdog Timer...