Intel 386 Manuale Utente Pagina 508

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 691
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 507
17-13
WATCHDOG TIMER UNIT
See Appendix C for included header files.
#include <dos.h>
#include <conio.h>
#include “80386ex.h”
#include “ev386ex.h”
/*****************************************************************************
ReLoadDownCounter:
Description:
This function initiates a lockout sequence which results in the
setting of the WDTEN bit in the status register. By setting
WDTEN, the software watchdog mode is enabled.
Parameters:
None
Returns:
None
Assumptions:
None
Syntax:
ReloadDownCounter();
Real/Protected Mode:
No changes required
*****************************************************************************/
void ReLoadDownCounter(void)
{
_disable(); /* Disable interrupts */
_SetEXRegWord(WDTCLR,0xf01e);
_SetEXRegWord(WDTCLR,0xfe1);
_enable(); /* Enable interrupts */
}/* ReLoadDownCounter */
/*****************************************************************************
GetWDT_Count:
Description:
Returns current value of watch dog counter.
Vedere la pagina 507
1 2 ... 503 504 505 506 507 508 509 510 511 512 513 ... 690 691

Commenti su questo manuale

Nessun commento