Aaeon PCM-5335 Manual page 57

All in one ns geode gx1 with svga/ lcd/ ethernet interface pc/ 104 cpu module
Hide thumbs Also See for PCM-5335:
Table of Contents

Advertisement

P C / 1 0 4 M o d u l e
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
//Set Watch -Dog Timer 1~ 256
WriteAData(0xF2, time_val);
Appendix A Programming the Watchdog Timer
P C M - 5 3 3 5
A-3

Advertisement

Table of Contents
loading

Table of Contents