Aaeon PFM-530I Manual page 43

Embedded stpc, atlas 133mhz processor, with svga/lcd interface, pc/104 cpu module
Table of Contents

Advertisement

P C / 1 0 4 M o d u l e
{
//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)
{
//Set Register 2C (PIN 119) Bit 5-4 = 01 (GP16)
//set to GP16 for WD Rst
WriteAData(0x2C,ReadAData(0x2C)|0x10);
}
P F M - 5 3 0 I
Appendix A Programming the Watchdog Timer
A-5

Advertisement

Table of Contents
loading

Table of Contents