![FUSHENGTEK Technology WG-7302-E38/J19 User Manual Download Page 59](http://html.mh-extra.com/html/fushengtek-technology/wg-7302-e38-j19/wg-7302-e38-j19_user-manual_2350760059.webp)
WG-7302
Page
59
Document Details
WG-7302 User’s Guide
Appendix C:WatchDog Sample Code
The WG-7302 provides a Watchdog Timer . The Watchdog Time consists of an 8-bit programable time-out counter
and a control and status register.The units of Watchdog Timer counter can be suppport second/minute.When
Watchdog Timer time-outevent is occcurring,The system will be perform Reset.The Watchdog Timer's register be
accessed though IO access mode.
Watchdog Timer Mode Register
Base Address: 0x298
Offset: 0x05
Attribute: R/W
Size: 8 bits
Default: 0x00
Watchdog Timer Counter Register
Base Address: 0x298
Offset: 0x06
Attribute: R/W
Size: 8 bits
Default: N/A
Sample Code
MOV DX, 29EH
MOV AL, 05H
OUT DX, AL
:5's Reset
MOV DX, 29EH
MOV AL, 00H
OUT DX, AL
:Disable Watchdog
BIT
Description
7 ~ 4
Reserve
3
Select Watchdog Timer count mode
0: Second Mode
1: Minute Mode
2 ~ 0
Reserve
BIT
Description
7 ~ 0
Watch Dog Timer time-out value. Write a non-zero value to
this register causes the counter to load the value into the
Watch Dog Counter and start counter down. Reading this
register returns the current value in the Watch Dog Counter.
00h: Time-out Disable
01h: ≈ 1.0s.(second mode)