Zippy Tech. HG2 Manual do Utilizador Página 62

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 98
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 61
50 Watchdog Timer
outportb(wdt_io_base+0x18,2);//watchdog
timer enable!!
printf("\nPlease waiting for Watch-Dog Timer
time-out!!");
}
/************************************/
unsigned int read_wdt_io_base()
{
unsigned char_wdt_io_base[2];
int *p_wdt_io_base;
p_wdt_io_base=&_wdt_io_base;
enter_config_mode();
write_config_data_byte(0x07,6);//select
logic 6 - WDT
_wdt_io_base[1]=read_config_data_byte(0x60)
;
_wdt_io_base[0]=read_config_data_byte(0x61)
;
exit_config_mode();
return (*p_wdt_io_base);
}
/************************************/
void enter_config_mode()
{
outportb(config_port_index,0x80);
outportb(0xeb,00); //io delay
outportb(config_port_index,0x86);
}
/************************************/
void exit_config_mode()
{
outportb(config_port_index,0x68);
Vista de página 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 97 98

Comentários a estes Manuais

Sem comentários