
72
The Sample code source you can download from
How to use this Demo Application
How to use this Demo Application
How to use this Demo Application
How to use this Demo Application
Introduction
Source fi le: F75111_Dos_Src.rar
Binary fi le: F75111_Dos_Bin.rar
USERNAME & PASSWORD: sf
1.Boot Ms-Dos Operating System
2.execute "75WDT.EXE" binary fi le
3.Input 1 to Enable WDT timer or input 0 to Disable it.
4.input numbers of second for chip countdown and Reset Computer
WriteI2CByte(I2CADDR, CONFIG, 0x03);//Set Watch Dog Timer function
WriteI2CByte(I2CADDR, WDT_TIMER, timer);//Set Watch Dog Timer range from 0-255.
WriteI2CByte(I2CADDR, WDT_TIMER_CTL, 0x73);//Enable Watch Dog Timer in second and pulse mode
void pause(int time)
{
asm mov ah,0h;
//Ah = 00 Read System Time Counter
asm int 1ah;
//read time from Time Counter and store it in DX register
asm add dx,time;
asm mov bx,dx;
label:
asm int 1ah;
asm cmp bx,dx;
asm jne label;
}
WriteI2CByte(I2CADDR, WDT_TIMER_CTL, 0x00);
http://tprd.info/lexwiki/index.php/IO_Device:F75111_under_DOS
1-1 IO Device:F75111 under DOS
Appendix C: F75111N I C DIO device
2