ROHS ITX-i2705 User Manual page 80

Mini-itx industrial motherboard
Table of Contents

Advertisement

Appendix
C language Code
/*-----
Include Header Area -----*/
#include "math.h"
#include "stdio.h"
#include "dos.h"
/*-----
routing, sub-routing -----*/
void main()
{
outportb(0x2e, 0x87);
outportb(0x2e, 0x87);
outportb(0x2e, 0x2B);
outportb(0x2e+1, 0x00);
outportb(0x2e, 0x07);
outportb(0x2e+1, 0x08);
outportb(0x2e, 0x30);
outportb(0x2e+1, 0x01);
outportb(0x2e, 0xf0);
outportb(0x2e+1, 0x00);
outportb(0x2e, 0xf5);
outportb(0x2e+1, 0x00);
outportb(0x2e, 0xF6);
outportb(0x2e+1, 0x05);
outportb(0x2e, 0xAA);
}
/* initial IO port twice */
/* select CR2B */
/* update CR2B bit4 to 00h */
/* Set PIN89 as WDTO */
/* point to logical device selector */
/* select logical device 8 */
/* select CR30 */
/* update CR30 to 01h */
/* select CRF0 */
/* update CRF0 to 00h */
/* select CRF5 to set timer unit */
/* update CRF5 bit2, 0:sec; 1:Min. */
/* select CRF6 */
/* update CRF6 to 05h (5 sec) */
/* stop program W83627HF, Exit */
- 73 -
- 73 -

Advertisement

Table of Contents
loading

This manual is also suitable for:

Itx-i2705d

Table of Contents