ROHS ITX-i2705 User Manual page 83

Mini-itx industrial motherboard
Table of Contents

Advertisement

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, 0x2a);
outportb(0x2e+1, 0xfc);
outportb(0x2e, 0x07);
outportb(0x2e+1, 0x07);
outportb(0x2e, 0x30);
outportb(0x2e+1, 0x01);
outportb(0x2e, 0xf0);
outportb(0x2e+1, 0x00);
outportb(0x2e, 0xf1);
outportb(0x2e+1, 0xff);
outportb(0x2e, 0xf1);
outportb(0x2e+1, 0x00);
outportb(0x2e, 0xAA);
}
/* initial IO port twice */
/* Select CR2A */
/* set CR2A bit7=1 as GPIO port 1*/
/* point to logical device */
/* select logical device 7 */
/* select CR30 */
/* set bit0=1, GPIO port 1 active */
/* select CRF0, GP I/O select */
/* bit7~bit0 0:output 1:input */
/* select CRF1, Data Register */
/* set all GPIO pin output 1 */
/* select CRF1, Data Register */
/* set all GPIO pin output 0 */
/* stop program W83627HF, Exit */
- 76 -
- 76 -
Appendix

Advertisement

Table of Contents
loading

This manual is also suitable for:

Itx-i2705d

Table of Contents