User`s manual

User’s Manual 17
2-7. Digital I/O
1) Pin out of digital I/O header (JP11):
Pin No. Function Pin No. Function
1
DIO-O0
2
DIO-I0
3
DIO-O1
4
DIO-I1
5
+12V
6
+12V
7
KEY
8
+5V
9
GND
10
GND
11
DIO-O2
12
DIO-I2
13
DIO-O3
14
DIO-I3
2) Digital I/O port address:
This function is support by onboard super I/O chip; it can be control easily by
change the register of super I/O chip via I/O port “2Eh” and “2Fh”. Please see
the sample code of below for implement.
Voltage tolerance: +/- 5% with 0V to +5V.
Register configuration:
Bit No 7 6 5 4 3 2 1 0
Map
OUT3 OUT2 OUT1 OUT0 IN3 IN2 IN1 IN0
Sample code for input (using Turbo C/C++ 3.0):
#define input_port 0x2f
outportb(0x2e,0x87); //Unlock register
outportb(0x2e,0x87); //Unlock register
outportb(0x2e,0x07); //Set Logic Device number pointer
outportb(0x2f,0x07); //Set Logic Device number
outportb(0x2e,0xF1); //Set active register is CRF1
read_data=inportb(input_port); // Read digital input data
printf("DIO-Input=%02X\n",read_data); //Show digital input data on screen
Sample code for Output (using Turbo C/C++ 3.0):
outportb(0x2e,0x87); //Unlock register
outportb(0x2e,0x87); //Unlock register
outportb(0x2e,0x07); //Set Logic Device number pointer
outportb(0x2f,0x07); //Set Logic Device number
outportb(0x2e,0xF1); //Set active register is CRF1
outportb(0x2f,0x0F); //Write data to digital output
18 The ENDAT-3400M System Board
Chapter 3. AWARD BIOS SETUP
Phoenix – Award BIOS CMOS Setup Utility
> Standard CMOS Features
> Advanced BIOS Features
> Advanced Chipset Features
> Integrated Peripherals
> Power Management Setup
> PnP/PCI Configurations
> PC Health Status
> Frequency/Voltage Control
Load Optimized Defaults
Set Supervisor Password
Set User Password
Save & Exit Setup
Exit Without Saving
Use the CMOS setup program to modify the system parameters to reflect the
environment installed in your system and to customize the system as desired.
Press the <DEL> key to enter into the CMOS setup program when you turn on the
power. Settings can be accessed via arrow keys. Press <Enter> to choose an
option to configure the system properly.
In the main menu, press F10 or “SAVE & EXIT SETUP” to save your changes and
reboot the system. Choose “EXIT WITHOUT SAVING” to ignore the changes and
exit the setup procedure. Pressing <ESC> at anywhere during the setup will return
to the main menu.
“Advanced BIOS Features”, “Advanced Chipset Features” and “PnP/PCI
Configurations” requires board knowledge on PC/AT system architecture and Intel
chipset specification. Incorrect setup could cause system malfunctions.