Programming The Watchdog Timer - Advantech ASMB-927 Series User Manual

Hide thumbs Also See for ASMB-927 Series:
Table of Contents

Advertisement

A.2

Programming the Watchdog Timer

The I/O port address of the watchdog timer is as below:
Table A.1: Adsresses
Address
0x57
0x5E
0x5F
Here is an example to step by step program the Watchdog Timer.
Table A.2: Steps
Steps
00
01
02
03
04
05
06
07
08
09
10
11
12
Description
Event - Warm Reset: 0x04
Warm Reset Timer (High BYTE)
Warm Reset Timer (Low BYTE)
Action
Read 0x299 port
Wait IBF clear
Write 0x89 to 0x29A
Wait IBF clear
Write 0x5E to 0x299 port
Wait IBF clear
Write 0x00 to 0x299 port
Wait IBF clear
Write 0x89 to 0x29A
Wait IBF clear
Write 0x5F to 0x299 port
Wait IBF clear
Write 0x64 to 0x299 port
Wait IBF clear
Write 0x89 to 0x29A
Wait IBF clear
Write 0x57 to 0x299 port
Wait IBF clear
Write 0x04 to 0x299 port
Wait IBF clear
Write 0x28 to 0x29A
Wait
1 ~ 9
Wait IBF clear
Write 0x29 to 0x29A
Wait IBF clear
Go to Step 07
91
Based 100ms
Description
Clear I/O port
0x29A, BIT1, = 0
0x29A, BIT1, = 0
0x29A, BIT1, = 0
Set 10 sec (high byte)
0x29A, BIT1, = 0
0x29A, BIT1, = 0
0x29A, BIT1, = 0
Set 10 sec (low byte)
0x29A, BIT1, = 0
0x29A, BIT1, = 0
Watchdog Event
0x29A, BIT1, = 0
(Warm) Reset event
0x29A, BIT1, = 0
Start watchdog
sec
0x29A, BIT1, = 0
Stop watchdog
0x29A, BIT1, = 0
ASMB-927 User Manual

Advertisement

Table of Contents
loading

Table of Contents