Aaeon HSB-440I Manual page 49

Half-size cpu card
Table of Contents

Advertisement

H a l f - s i z e C P U C a r d
H S B - 4 4 0 I
//caution:skip this step will be a mistake!!
if (watch_dog_output_GP==12)
{
//Set Register E2 to define GP12
WriteAData(0xE2, 0x0A);
}
else if(watch_dog_output_GP==13)
{
//Set Register E3 to define GP13
WriteAData(0xE3, 0x0A);
}
else if(watch_dog_output_GP==16)
{
//Set Register E6 to define GP16
WriteAData(0xE6, 0x0A);
}
//Set Device Active
WriteAData(0x30, 0x01);
//Select Device 8
// SelectDevice(8);
//caution:skip this step will be a mistake!!
if (watch_dog_output_GP==12)
{
//Set Register 2A (PIN 57) Bit 7 = 0/1
(KBLOCK/GP12)
//set to GP12 for WD Rst
WriteAData(0x2A,ReadAData(0x2A)|0x80);
}
else if(watch_dog_output_GP==13)
{
//Set Register 2B (PIN 58) Bit 0 = 0/1
(KBLOCK/GP13)
//set to GP13 for WD Rst
WriteAData(0x2B,ReadAData(0x2B)|0x01);
}
else if(watch_dog_output_GP==16)
{
A-4
Appendix A Programming the Watchdog Timer

Advertisement

Table of Contents
loading

Table of Contents