Aaeon PFM-535S Manuale Utente Pagina 43

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 53
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 42
PC/104 CPU Module PFM-535S
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
Vedere la pagina 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 52 53

Commenti su questo manuale

Nessun commento