Program Examples - Advantech ITA-3650G Series User Manual

Compact fanless embedded high-performance industrial computer
Hide thumbs Also See for ITA-3650G Series:
Table of Contents

Advertisement

Available languages

Available languages

A.3

Program Examples

1.
Enable watchdog timer and set 10 sec. as the 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 the 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 timeout 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 timeout signal
Out dx,al
;-----------------------------------------------------------
51
ITA-3650G_Series User Manual

Advertisement

Chapters

Table of Contents
loading

Table of Contents