
41
Appendix A
A.1.2 GPIO Example program-1
------------------------------------------------
/* Winbond 83627*/
#include <dos.h>
#include <conio.h>
#include <stdio.h>
#define SuperIO_A0 0x2E
#define SuperIO_A1 0x2F
#define DIO_A0 0x300
void main()
{
unsigned Temp;
unsigned ErrFlag;
ErrFlag=0;
clrscr();
/*---Winbond W83627--*/
outportb(SuperIO_A0, 0x87); /* External Function (Two Successive
writes of 0x87)*/
outportb(SuperIO_A0, 0x87); /* External Function (Two Successive
writes of 0x87)*/
/*--Global CR20--*/
outportb(SuperIO_A0, 0x20);
Temp-inportb(SuperIO_a1); /*Temp must be 0x52*/
/*--Global CR2A--*/
outportb(SuperIO_A0,0x2A);
Temp=inportb(SuperIO_A1);
Temp=Temp | 0xFC; /*set pin 121-128*/
outportb(SuperIO_A1, Temp);
/*--Configure Logical Device 7 GPIO Port1--*/
outportb(SuperIO_A0, 0x07);
outportb(SuperIO_A1,0x07);/*GP15 GP16 gp17*/
/*--CR30--*/
Содержание AIMB-341
Страница 1: ...AIMB 341 Socket 775 Embedded ATX Micro ATX for Multimedia Appli cations User Manual...
Страница 6: ......
Страница 11: ...1 Chapter1 1 General Information CHAPTER...
Страница 17: ...7 Chapter2 2 Installation CHAPTER...
Страница 21: ...11 Chapter2 2 4 Locating Connectors solder side Figure 2 2 Connectors component side CN34 CN35...
Страница 32: ......
Страница 33: ...23 Chapter 3 Ducks that Need Love 3 Award BIOS Setup CHAPTER...
Страница 48: ......
Страница 49: ...Appendix A Programming GPIO Watchdog Timer...
Страница 54: ......
Страница 55: ...45 Appx B B Pin Assignments Appendix...
Страница 80: ...AIMB 341 User Manual 70...
Страница 81: ...71 Appx C C System Assignments Appendix...