Aaeon PFM-530I Manual page 41

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
{
outportb(IO_INDEX_PORT, UNLOCK_DATA);
outportb(IO_INDEX_PORT, UNLOCK_DATA);
}
void ExitConfigMode()
{
outportb(IO_INDEX_PORT, LOCK_DATA);
}
void SelectDevice(unsigned char device)
{
outportb(IO_INDEX_PORT, DEVICE_REGISTER);
outportb(IO_DATA_PORT, device);
}
unsigned char ReadAData(short int reg)
{
outportb(IO_INDEX_PORT, reg);
return (inportb(IO_DATA_PORT));
}
void WriteAData(unsigned char reg, unsigned char data)
{
outportb(IO_INDEX_PORT, reg);
outportb(IO_DATA_PORT, data);
}
void SetWatchDogTime(unsigned char time_val)
{
EnterConfigMode();
SelectDevice(8);
//Set Register F2
P F M - 5 3 0 I
Appendix A Programming the Watchdog Timer
A-3

Advertisement

Table of Contents
loading

Table of Contents