Wdt1 windows ce example – AAEON PFM-535S User Manual
Page 43
Advertising
P C / 1 0 4 C P U M o d u l e
P F M - 5 3 5 S
Appendix A Programming the Watchdog Timer A-10
outp(0x23,c);
outp(0x22,0x13); // Lock register
outp(0x23,0x00); // Lock config. register
printf("Press any key to stop trigger timer.\n");
while(!kbhit())
{
outp(0x22,0x13); // Unlock register
outp(0x23,0xc5);
outp(0x22,0x3c);
unsigned char c = inp(0x23);
outp(0x22,0x3c);
outp(0x23,c|0x40);
outp(0x22,0x13); // Lock register
outp(0x23,0x00);
}
printf("System will reboot after 500 milli-seconds.\n");
}
WDT1 Windows CE Example
#include "stdafx.h"
unsigned char inportb(int addr)
{
__asm
{
push edx
Advertising