Download RUBY-M710VG2AR User`s Manual

Transcript
System Installation
accessing to the content of desired Control Register, the sequence of following
program codes should be step-by-step run again when each register is accessed.
Additionally, there are maximum 2 seconds of counting tolerance that should be
considered into user’ application program. For more information about WDT, please
refer to ITE8721 data sheet.
There are two PNP I/O port addresses that can be used to configure WDT,
1) 0x2E:Test 1 Register
2) 0x2F:Test 2 Register
Below are some example codes, which demonstrate the use of WDT
.model small
.386p
.stack
.data
ADDRESS dw
.code
pgm:
mov
ADDRESS,002eh
mov
dx, ADDRESS
mov al, 87h
out
dx, al
mov al, 01h
out dx, al
mov al, 55h
out dx, al
mov al, 55h
out dx, al
0FFFFh
; I suppose 2Eh that is the address of SIO
; enter MB PnP mode in 2Eh
mov al, 20h
; read the Chip ID to check the address of SIO
out dx, al
inc dx
in al, dx
; default =87h
mov bl, al
mov al, 21h
mov dx, ADDRESS
out dx, al
inc dx
in al, dx
; default =21h
mov bh, al
cmp bx,
je
2187h
;cmp CHIP ID
L1
RUBY-M710VG2AR User’s Manual
3-4