![background image](http://html.mh-extra.com/html/ibase-technology/mi950/mi950_user-manual_605038071.webp)
APPENDIX
MI950 User’s Manual
67
File of the Main.cpp
//=====================================================================
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//=====================================================================
#include <dos.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include "W627HF.H"
//=====================================================================
void ClrKbBuf(void);
int main (int argc, char *argv[]);
//=====================================================================
int main (int argc, char *argv[])
{
unsigned char ucDO = 0;
//data for digital output
unsigned char ucDI;
//data for digital input
unsigned char ucBuf;
Set_W627HF_LD( 0x07);
//switch to logic device 7
Set_W627HF_Reg(0xF1, 0x00);
//clear
ucDI = Get_W627HF_Reg(0xF1) & 0x0F;
ClrKbBuf();
while(1)
{
ucDO++;
Set_W627HF_Reg(0xF1, ((ucDO & 0x0F) << 4));
ucBuf = Get_W627HF_Reg(0xF1) & 0x0F;
if (ucBuf != ucDI)
{
ucDI = ucBuf;
printf("Digital I/O Input Changed. Current Data is 0x%X\n",ucDI);
}
if (kbhit())
{
getch();
break;
}
delay(500);
}
return 0;
}
//=====================================================================
void ClrKbBuf(void)
{
while(kbhit())
{
getch();
}
}
//
Summary of Contents for MI950
Page 1: ...MI950 LGA775 CoreÔ 2 Duo Intel Q45 Chipset Mini ITX Motherboard USER S MANUAL Version 1 0 ...
Page 4: ...iv MI950 User s Manual This page is intentionally left blank ...
Page 8: ...INSTALLATIONS 4 MI950 User s Manual Board Dimensions ...
Page 18: ...INSTALLATIONS 14 MI950 User s Manual 3 Rotation detection ...
Page 23: ...INSTALLATIONS MI950 User s Manual 19 This page is intentionally left blank ...
Page 31: ...BIOS SETUP MI950 User s Manual 27 ...
Page 46: ...BIOS SETUP 42 MI950 User s Manual This page is intentionally left blank ...
Page 54: ...DRIVERS INSTALLATION 50 MI950 User s Manual ...
Page 63: ...DRIVERS INSTALLATION MI950 User s Manual 59 8 After the Setup is complete click Exit ...