Contec SPI-8450-LLVA User Manual

Page 81

Advertising
background image

CHAPTER 7 - Chapter 7 Watch-Dog-Timer (WDT) Setting

74

SPI-8450-LLVA

Here is a example for programming Watch dog timeout in "debug" mode.

o 2e 87

: Output data 87h to I/O address 2eh.

i 2f

: Input data from I/O address 2fh.

Start WDT

o 2e 87
o 2e 87
o 2e 2b
o 2f 0d
o 2e 07
o 2f 08
o 2e 30
o 2f 01
o 2e f5
o 2f 00

;00(unit for second)

o 2e f6
o 2f xx ;any value by user select(xx: 01h=1sec. – FFh=255sec.)
o 2e f7
i 2f

;bit4=1:detect time up of WDT, =0:run WDT

Stop WDT

o 2e f6
o 2f 00
o 2e f7
o 2f 00

Note: The timer’s intervals have a tolerance of ± 2 seconds.

Advertising