AR-B1380/AR-1380A User’ s Guide
Page 46
(4) INDEX 3Ch: Timeout Status & Reset Watchdog
0: Timer timeout not happened
Bit 7(read only)
1: Timer timeout happened
Bit 5
Write this bit “ 1” to reset timer
The value on this bit has no meaning.
Bit 6, Bit 4-0
Other function. Please do not modify these
bits.
(5) Basic Operation: Programming Watchdog
If you would like to access the M6117C configuration register, you need to unlock the register at
first and lock it again after finishing the operation.
a) Unlock Configuration Register
Mov
al, 13h
Out
22h, al
Nop
Nop
Mov
al, 0c5h
Out
23h, al
Nop
Nop
b) Lock Configuration Register
Mov
al, 13h
Out
22h, al
Nop
Nop
Mov
al, 00h
Out
23h, al
Nop
Nop
c) Read the Value in the Configuration Register
Example 1: Read data from INDEX 3Ch
Unlock_Cfg_Reg
;Unlock configuration register
Mov
al, 3ch
;Points to index 3ch
Out
22h, al
Nop
Nop
In
al, 23h
;Read out
Nop
Nop
Push
ax
;Save to stack
Lock_Cfg_Reg
;Lock configuration register
Pop
ax
;Restore ax and result in al register
Summary of Contents for AR-B1380
Page 2: ......