Watchdog Timer Enabled; Watchdog Timer Trigger; Watchdog Timer Disabled - Sony 486DX User Manual

Industrial grade 486dx/dx2/dx4 cpu card
Table of Contents

Advertisement

If you want to generate IRQ15 signal to warn your program when watchdog times out, the following table listed the
relation of timer factors between time-out period.
Table 4-2 Time-Out Setting
NOTE: 1. If you program the watchdog to generate IRQ15 signal when it times out, you should initial IRQ15
interrupt vector and enable the second interrupt controller (8259 PIC) in order to enable CPU to process
this interrupt. An interrupt service routine is required too.
2. Before you initial the interrupt vector of IRQ15 and enable the PIC, please enable the watchdog timer
previously, otherwise the watchdog timer will generate an interrupt at the time watchdog timer is
enabled.

4.4.2 Watchdog Timer Enabled

To enable the watchdog timer, you have to output a byte of timer factor to the watchdog register whose address is
Base Port+4. The following is a BASICA program which demonstrates how to enable the watchdog timer and set
the time-out period at 24 seconds.
1000
REM Points to command register
1010
1020
REM Timer factor = 84H (or 0C4H)
1030
1040
REM Output factor to watchdog register
1050
.,etc.

4.4.3 Watchdog Timer Trigger

After you enable the watchdog timer, your program must write the same factor as enabling to the watchdog register
at least once every time-out period to its previous setting. You can change the time-out period by writing another
timer factor to the watchdog register at any time, and you must trigger the watchdog before the new time-out period
in next trigger. Below is a BASICA program which demonstrates how to trigger the watchdog timer:
2000
REM Points to command register
2010
2020
REM Timer factor = 84H (or 0C4H)
2030
2040
REM Output factor to watchdog register
2050
.,etc.

4.4.4 Watchdog Timer Disabled

To disable the watchdog timer, simply write a 00H to the watchdog register.
3000
REM Points to command register
3010
3020
REM Timer factor = 0
3030
3040
REM Output factor to watchdog register
3050
., etc.
Time Factor
0C0H
0C1H
0C2H
0C3H
0C4H
0C5H
0C6H
0C7H
WD_REG% = BASE_PORT% + 4
TIMER_FACTOR% = %H84
OUT WD_REG%, TIMER_FACTOR%
WD_REG% = BASE_PORT% + 4
TIMER_FACTOR% = &H84
OUT WD_REG%, TIMER_FACTOR%
WD_REG% = BASE_PORT% + 4
TIMER_FACTOR% = 0
OUT WD_REG%, TIMER_FACTOR%
Time-Out Period (Seconds)
3
6
12
18
24
30
36
42
AR-B1474 User¡ ¦ s Guide
4-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ar-b1474Dx4

Table of Contents