Aaeon PFM-535S Manuel d'utilisateur Page 43

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 53
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 52 53

Commentaires sur ces manuels

Pas de commentaire