This document is copyrighted, 2012. All rights are reserved. The
original manufacturer reserves the right to make improvements to
the products described in this manual at any time without notice.
No part of this manual may be reproduced, copied, translated, or
transmitted in any form or by any means without the prior written
permission of the original manufacturer. Information provided in
this manual is intended to be accurate and reliable. However, the
original manufacturer assumes no responsibility for its use, or for
any infringements upon the rights of third parties that may result
from its use.
The material in this document is for product information only and is
subject to change without notice. While reasonable efforts have
been made in the preparation of this document to assure its
accuracy, AAEON assumes no liabilities resulting from errors or
omissions in this document, or from the use of the information
contained herein.
AAEON reserves the right to make changes in the product design
without notice to its users.
i
Embedded Controller TKS-G20-LN05 Rev.B
Acknowledgments
All other products’ name or trademarks are properties of their
respective owners.
AMI is a trademark of American Megatrends Inc.
CompactFlash
Association.
Microsoft Windows
Corp.
®
Intel
, Atom™ are trademarks of Intel Corporation.
PC/AT, PS/2, and VGA are trademarks of International
Business Machines Corporation.
All other product names or trademarks are properties of their
respective owners.
™
is a trademark of the Compact Flash
®
is a registered trademark of Microsoft
ii
Embedded Controller TKS-G20-LN05 Rev.B
Packing List
Before you begin operating your PC, please make sure that the
following materials are enclosed:
1 TKS-G20-LN05 Rev.B Embedded Controller
1 DVD-ROM for manual (in PDF format) and drivers
If any of these items should be missing or damaged, please contact
your distributor or sales representative immediately.
iii
Embedded Controller TKS-G20-LN05 Rev.B
Safety & Warranty
1. Read these safety instructions carefully.
2. Keep this user's manual for later reference.
3. Disconnect this equipment from any AC outlet before cleaning. Do
not use liquid or spray detergents for cleaning. Use a damp cl oth.
4. For pluggable equipment, the power outlet must be installed near
the equipment and must be easily accessible.
5. Keep this equipment away from humidity.
6. Put this equipment on a firm surface during installation. Dropping
it or letting it fall could cause damage.
7. The openings on the enclosure are for air convection. Protect the
equipment from overheating. DO NOT COVER THE OPENINGS.
8. Make sure the voltage of the power source is correct before
connecting the equipment to the power outlet.
9. Position the power cord so that people cannot step on it. Do not
place anything over the power cord.
10. All cautions and warnings on the equipment should be noted.
11. If the equipment is not used for a long time, disconnect it from the
power source to avoid damage by transient over-voltage.
12. Never pour any liquid into an opening. This could cause fire or
electrical shock.
13. Never open the equipment. For safety reasons, only qualified
service personnel should open the equipment.
14. If any of the following situations arises, get the equipment
checked by service personnel:
a. The power cord or plug is damaged.
b. Liquid has penetrated into the equipment.
c. The equipment has been exposed to moisture.
iv
Embedded Controller TKS-G20-LN05 Rev.B
d. The equipment does not work well, or you cannot get it
to work according to the user’s manual.
e. The equipment has been dropped and damaged.
f. The equipment has obvious signs of breakage.
15. DO NOT LEAVE THIS EQUIPMENT IN AN ENVIRONMENT
WHERE THE STORAGE TEMPERATURE IS BELOW -20°C
(-4°F) OR ABOVE 55°C (131°F). IT MAY DAMAGE THE
EQUIPMENT.
FCC
This device complies with Part 15 FCC Rules.
Operation is subject to the following two
conditions: (1) this device may not cause
harmful interference, and (2) this device must
accept any interference received including
interference that may cause undesired
operation.
Cau
tion:
There is a danger of explosion if the battery is incorrectly replaced.
Replace only with the same or equivalent type recommended by the
manufacturer. Dispose of used batteries according to the
manufacturer’s instructions and your local government’s recycling or
disposal directives.
A.2 W83627DHG Watchdog Timer Initial Program ....A-7
Appendix B DIO
B.1 DIO .......................................................................B-2
viii
Embedded Controller TKS-G20-LN05 Rev.B
Chapter
1
General
Information
Chapter 1 General Information 1- 1
Embedded Controller TKS-G20-LN05 Rev.B
1.1 Introduction
The newest Boxer series TKS-G20-LN05 Rev.B has been
introduced by AAEON and it utilizes Intel
®
Atom™ processor. In this
era of information explosion, the advertising of consumer products
will not be confined to the family television, but will also spread to
high-traffic public areas, like department stores, the bus,
transportation station, the supermarket etc. The advertising
marketing industry will resort to every conceivable means to
transmit product information to consumers. System integrators will
need a multifunction device to satisfy commercial needs for such
public advertising.
The TKS-G20-LN05 Rev.B is designed for indoor environments due
to the following reasons; first, the TKS-G20-LN05 Rev.B offers low
power consumption system that while operating in ambient
temperatures ranging from 0° to 45°C.
The TKS-G20-LN05 Rev.B is a standalone high performance
controller designed for long-life operation and with high reliability. It
can replace traditional methods and become the mainstream
controller for the multimedia entertainment market.
Chapter 1 General Information 1- 2
Embedded Controller TKS-G20-LN05 Rev.B
1.2 Features
Intel
Intel
DDR3 667/800 SODIMM x 1, Up To 4 GB
CRT (VGA) Single View
2CH HD Audio
Gigabit Ethernet x 2
2.5” SATA Hard Disk Drive Bay x 1
USB2.0 x 6, COM x 6, Compact Flash™ x 1, 8-Bit Digital I/O
WiFi & Bluetooth
®
AtomTM D525 1.8 GHz Processor
®
ICH8M Chipset
®
combo Module (Optional To Occupy One
PCI-Express Slot)
Fanless & White Color Chassis
Chapter 1 General Information1- 3
Embedded Controller TKS-G20-LN05 Rev.B
1.3 Specifications
®
Atom™ D525, 1.8
CPU
Chipset
System Memory
Onboard Intel
GHz Processor
®
Intel
ICH8M
200-pin DDR3 SODIMM x1, Max.
4GB(DDR3 667/800)
Display
VGA
D-SUB 15 x 1
Interface
Storage
Device
SSD
HDD
LAN
Network
Wireless
Serial Port
Front I/O
DIO
USB Host
LAN
Rear I/O
Serial Port
Audio
KB/MS
Expansion Mini Card
Indicator Rear
Power Requirement
Power Consumption
System Cooling
Type 2 CompactFlash™ Slot x 1
2.5" Hard Disk Drive Bayx1
10/100/1000 Base-TX Ethernet,
RJ-45 x 2
802.11b/g/n WiFi (Optional)
COM x 4
8-bit Programmable x1 (non-isolation)
USB Type A x 6
RJ-45 x 2
COM x 2
Line-out, Mic-in
Through USB port
Mini Card x 1 (Internal)
Power LED x 1, HDD LED x 1
For DC Type: ATX type, +12V Input
®
Intel
Atom™ D525, DDR3 1GB
1.29A@+12V
Fanless
Chapter 1 General Information 1- 4
Embedded Controller TKS-G20-LN05 Rev.B
Mounting
Desktop or Wallmount (optional)
Operating Temperature
Storage Temperature
32°F ~ 113°F (0°C ~ 45°C)
-40°F ~ 176°F (-40°C ~ 80°C)
0.5g rms/ 5 ~ 500Hz/ random
Anti-Vibration
operation (Internal Hard Disk Drive
active Module)
The operating temperature of Mini Card must be higher than 87°C.
10G peak acceleration (11 msec.
duration) (Hard Disk Drive Module)
CE/FCC Class A
10" x 5.75" x 2.48" (254mm x 146mm
x 63mm)
Heavy duty steel (2.42 kg/ 5.33 lb)
Chapter 1 General Information1- 5
Embedded Controller TKS-G20-LN05 Rev.B
Chapter
2
Quick
Inst
Chapter 2 Quick Installation Guide 2 - 1
allation
Guide
Embedded Controller TKS-G20-LN05 Rev.B
2.1 Dimension and I/O of TKS-G20-LN05 Rev.B
LINE
MIC
OUT
COM2
Antenna (optional)
Chapter 2 Quick Installation Guide 2 - 2
USB3USB4USB5USB6
LAN2LAN1USB1/2VGACOM1
HDD
POWER
Antenna (optional)
Embedded Controller TKS-G20-LN05 Rev.B
2.2 Location of Connectors and Jumpers of the Main Board
Component Side
Chapter 2 Quick Installation Guide 2 - 3
Embedded Controller TKS-G20-LN05 Rev.B
Solder Side
Chapter 2 Quick Installation Guide 2 - 4
Embedded Controller TKS-G20-LN05 Rev.B
2.3 List of Jumpers
The board has a number of jumpers that allow you to configure your
system to suit your application.
The table below shows the function of each of the board's jumpers:
LabelFunction
JP2 Auto Power Button Selection
JP3 COM2 RI/+5/+12V Selection
JP4 Clear CMOS
2.4 List of Connectors
The board has a number of connectors that allow you to configure your
system to suit your application.
The table below shows the function of each of the board's connectors:
LabelFunction
CN3 +5VSB Output w/ SMBus
CN4 External +5VSB Input
CN5 SATA Port #2
CN9
CN11 +5V Output for SATA HDD using
CN12 Front Panel
CN13 COM Port #6
CN15 COM Port #5
CN16 USB Port #6
CN17 USB Port #5
CN18 COM Port #4
CN19 USB Port #4
External +12V Input (depends on power input
configuration)
Chapter 2 Quick Installation Guide 2 - 5
Embedded Controller TKS-G20-LN05 Rev.B
CN20 USB Port #3
CN21 COM Port #3
CN22 COM Port #2
CN23 Audio Line-In/Out and MIC Connector
CN24 RJ-45 Ethernet #2
CN25 RJ-45 Ethernet #1
CN26 Digital I/O
CN30 USB Port #1 and #2
CN32 COM Port #1
CN33 Analog CRT Display
CFD1 Compact Flash Disk
PCIE1 Mini-Card Slot #1
DIMM1 DDR3 SODIMM Slot
Chapter 2 Quick Installation Guide 2 - 6
Embedded Controller TKS-G20-LN05 Rev.B
2.5 COM Port #2 RS-232/422/485 Selection (CN22)
COM2 RS-232/422/485 selection for AAEON TKS series is set in BIOS setting
as following:
Entering BIOS Setting Menu: Choose "Integrated Peripherals Super IO
device COM2 select". (Default setting is at "RS-232")
Different devices implement the RS-232/422/485 standard in different ways. If
you have problems with a serial device, check the pin assignments below for
the connector.
Note:
Issue: COM port limitation for the speed test during the communication.
Root Cause:
In serial communication, data bits received at the serial port are bundled
into a byte and transmitted into the serial port hardware buffer. From the
buffer, the byte is sent into the CPU. If a new byte arrives before the byte
in the buffer is moved into the CPU, a Hardware Overrun Error occurs.
Solution:
1. Try hardware handshaking.
2. See if the UART is an older un-buffered version or a new buffered
UART (such as a 16550A or 16750). You should use a buf fered UART
for the reasons discussed above.
3. Change the Receive (Rx Trigger) buffer to 8, 4, or 1 (1 is a last resort).
4. For the product, the speed setting of Series Port (COM) is under
9600bps.
Chapter 2 Quick Installation Guide 2 - 8
Embedded Controller TKS-G20-LN05 Rev.B
2.6 Digital I/O Connector (CN26)
This connector offers 4-pair of digital I/O function.
BIOS using the I2C Bus to read/write internal DIO registers and the Serial Bus
address is 0x6E.
The pin definitions are illustrated below:
Step 1: Unfasten the screws on the top of the heat-sink and you will see the
inside of the system.
Antenna (optional)
HDD Bracket
Antenna (optional)
Chapter 2 Quick Installation Guide 2 - 10
Embedded Controller TKS-G20-LN05 Rev.B
Step 2: Unfasten the two screws on the front side and right side of the
chassis.
Step 3: Fasten the four HDD s
crews and black damper and then you can
put the HDD in it.
Chapter 2 Quick Installation Guide 2 - 11
Embedded Controller TKS-G20-LN05 Rev.B
Step 4: Connect the HDD cables
Step 5: Fasten the two screws on the front side and right side of the
chassis.
Chapter 2 Quick Installation Guide 2 - 12
Embedded Controller TKS-G20-LN05 Rev.B
Step 6: Fasten the screws on the top of the heatsink.
Chapter 2 Quick Installation Guide 2 - 13
Embedded Controller TKS-G20-LN05 Rev.B
2.8 PCIe Card Installation
Step 1: Unfasten the screws on the top of the case and you will see the inside of
the system.
Step 2: Unfasten the HDD screws where is on the front side and right side of
the chassis, and then take off the HDD bracket.
Chapter 2 Quick Installation Guide 2 - 14
Embedded Controller TKS-G20-LN05 Rev.B
HDD Bracket
Step 3: Take off the HDD bracket and then you will see the top side of the main
Board and find the PCIe slot shown as below for card installation.
PCIe Slot
Step 4: After done i
nstalling the mini card and HDD, please reverse the step 1
to 3 to finish the installation.
Chapter 2 Quick Installation Guide 2 - 15
Embedded Controller TKS-G20-LN05 Rev.B
2.9 Accessory Installation
Step 1: Unfasten the screws on the rear panel
Step 2: You can see the inside placement of RAM, and CF card for
installations.
R
A
CF card
M
Chapter 2 Quick Installation Guide 2 - 16
Embedded Controller TKS-G20-LN05 Rev.B
Step 2-1: Locate the memory module, insert the gold colored contact into the
socket. Push the module down until it has been locked by two latches on two
sides firmly
Step 2-2: Unfa
sten the screws on the front panel. Insert the CompactFast card
into the socket until it has been locked firmly, and then put the card bracket
back and screws it up.
Chapter 2 Quick Installation Guide 2 - 17
Embedded Controller TKS-G20-LN05 Rev.B
Step 3: Fasten the screws on the rear panel.
Chapter 2 Quick Installation Guide 2 - 18
Embedded Controller TKS-G20-LN05 Rev.B
2.10 Wallmount Kit Installation
Get the brackets ready and fasten appropriate four screws on each bracket.
After fastening the two brackets on the bottom lid, the wallmount kit installation
has been finished.
Chapter 2 Quick Installation Guide 2 - 19
Embedded Controller TKS-G20-LN05 Rev.B
Chapter
3
BIOS Setup
AMI
Chapter 3 AMI BIOS Setup 3-1
Embedded Controller TKS-G20-LN05 Rev.B
3.1 System Test and Initialization
These routines test and initialize board hardware. If the routines
encounter an error during the tests, you will either hear a few short
beeps or see an error message on the screen. There are two kinds
of errors: fatal and non-fatal. The system can usually continue the
boot up sequence with non-fatal errors.
System configuration verification
These routines check the current system configuration against the
values stored in the CMOS memory. If they do not match, the
program outputs an error message. You will then need to run the
BIOS setup program to set the configuration information in memory.
There are three situations in which you will need to change the
CMOS settings:
1. You are starting your system for the first time
2. You have changed the hardware attached to your system
3. The CMOS memory has lost power and the configuration
information has been erased.
The TKS-G20-LN05 Rev.B CMOS memory has an integral lithium
battery backup for data retention. However, you will need to replace
the complete unit when it finally runs down.
Chapter 3 AMI BIOS Setup 3-2
Embedded Controller TKS-G20-LN05 Rev.B
3.2 AMI BIOS Setup
AMI BIOS ROM has a built-in Setup program that allows users to
modify the basic system configuration. This type of information is
stored in battery-backed CMOS RAM so that it retains the Setup
information when the power is turned off.
Entering Setup
Power on the computer and press <Del> or <F2> immediately. This
will allow you to enter Setup.
Main
Set the date, use tab to switch between date elements.
Advanced
Enable disable boot option for legacy network devices.
Chipset
Host bridge parameters.
Boot
Enables/disable quiet boot option.
Security
Set setup administrator password.
Save&Exit
Exit system setup after saving the changes.
Chapter 3 AMI BIOS Setup 3-3
Embedded Controller TKS-G20-LN05 Rev.B
Chapter
4
Driver
Inst
allation
Chapter 4 Driver Installation 4 - 1
Embedded Controller TKS-G20-LN05 Rev.B
The TKS-G20-LN05 Rev.B comes with a DVD-ROM that
contains all drivers and utilities that meet your needs.
Insert the TKS-G20-LN05 Rev.B DVD-ROM into the DVD-ROM
Drive. And install the drivers from Step 1 to Step 5 in order.
Step 1 – Install Chipset Driver
1. Click on the STEP1-CHIPSET folder and select the OS
folder your system is
2. Double click on the .exe located in each OS folder
3. Follow the instructions that the window shows
4. The system will help you install the driver automatically
Step 2 – Install VGA Driver
1. Click on the STEP2-VGA folder and select the OS folder
your system is
2. Double click on the Setup.exe located in each OS folder
3. Follow the instructions that the window shows
4. The system will help you install the driver automatically
Step 3 – Install LAN Driver
1. Click on the STEP3-LAN folder and select the OS folder
your system is
2. Double click on the .exe located in each OS folder
3. Follow the instructions that the window shows
4. The system will help you install the driver automatically
Chapter 4 Driver Installation 4 - 3
Embedded Controller TKS-G20-LN05 Rev.B
Step 4 – Install Audio Driver
1. Click on the STEP4-AUDIO folder and select the OS
folder your system is
2. Double click on the Setup.exe located in each OS folder
3. Follow the instructions that the window shows
4. The system will help you install the driver automatically
Step 5 – Install Wireless LAN Driver (Optional)
1. Click on the STEP5-WIRELESS LAN folder and select
the OS folder your system is
2. Select the folder of Install_CD, and double click on the
setup.exe located in the folder of Install_CD
3. Follow the instructions that the window shows
4. The system will help you install the driver automatically
Chapter 4 Driver Installation 4 - 4
Embedded Controller TKS-G20-LN05 Rev.B
A
Appendix
Programming the
W
atchdog Timer
Appendix A Programming the Watchdog Timer A-1
Embedded ControllerTKS-G20-LN05 Rev.B
A.1 Programming
TKS-G20-LN05 Rev.B utilizes W83627DHG-P chipset as its
watchdog timer controller.
Below are the procedures to complete its configuration and the
AAEON intial watchdog timer program is also attached based on
which you can develop customized program to fit your application.
Configuring Sequence Description
There are th
Unlock W83627DHG
Select register of
watchdog timer
Enable the function of
the watchdog timer
Use the function of the
watchdog timer
Lock W83627DHG
ree steps to complete the configuration setup:
(1) Enter the W83627DHG config Mode
(2) Modify the data of configuration register s
Appendix A Programming the Watchdog Timer A-2
Embedded Controller TKS-G20-LN05 Rev.B
(3) Exit the W83627DHG config Mode. Undesired result may
occur if the config Mode is not exited normally.
(1) Enter the W83627DHG config Mode
To enter the W83627DHG config Mode, two special I/O write
operations are to be performed during Wait for Key state. To
ensure the initial state of the key-check logic, it is necessary to
perform two write operations to the Special Address port (2EH).
The different enter keys are provided to select configuration ports
(2Eh/2Fh) of the next step.
Address Port Data Port
87h,87h: 2Eh 2Fh
(2) Modify the Data of the Registers
All configuration registers can be accessed after entering the config
Mode. Before accessing a selected register, the content of Index
07h must be changed to the LDN to which the register belongs,
except some Global registers.
(3) Exit the W83627DHG config Mode
The exit key is provided to select configuration ports (2Eh/2Fh) of
the next step.
Address Port Data Port
0aah: 2Eh 2Fh
WatchDog Timer Register I (Index=F5h, Default=00h)
CRF5 (PLED and KBC P20 Control Mode Register)
Bit 7-5 : select PLED mode
= 000 Power LED pin is driven high.
= 001 Power LED pin outputs 0.5Hz pulse
with 50% duty cycle.
Appendix A Programming the Watchdog Timer A-3
Embedded ControllerTKS-G20-LN05 Rev.B
= 010 Power LED pin is driven low.
= 011 Power LED pin outputs 2Hz pulse
with 50% duty cycle.
= 100 Power LED pin outputs 1Hz pulse
with 50% duty cycle.
= 101 Power LED pin outputs 4Hz pulse
with 50% duty cycle.
= 110 Power LED pin outputs 0.25Hz pulse
with 50% duty cycle.
=111 Power LED pin outputs 0.25Hz pulse
with 50% duty cycle..
Bit 4 : WDTO# count mode is 1000 times faster.
= 0 Disable.
= 1 Enable.
Bit 3 : select WDTO# count mode. = 0 second
= 1 minute
Bit 2 : Enable the rising edge of keyboard Reset
(P20) to force Time-out event.
= 0 Disable
= 1 Enable
Bit 1 : Disable / Enable the WDTO# output low
pulse to the KBRST# pin (PIN60)
= 0 Disable
= 1 Enable
Bit 0 : Reserved.
Appendix A Programming the Watchdog Timer A-4
Embedded Controller TKS-G20-LN05 Rev.B
WatchDog Timer Register II (Index=F6h, Default=00h)
Bit 7-0 = 0 x 00 Time-out Disable
= 0 x 01 Time-out occurs after 1
second/minute
= 0 x 02 Time-out occurs after 2
second/minutes
= 0 x 03 Time-out occurs after 3
second/minutes
………………………………..
= 0 x FF Time-out occurs after 255
second/minutes
WatchDog Timer Register III (Index=F7h, Default=00h)
Bit 7 : Mouse interrupt reset Enable or Disable
= 1 Watchdog Timer is reset upon a
Mouse interrupt
= 0 Watchdog Timer is not affected by
Mouse interrupt
Bit 6 : Keyboard interrupt reset Enable or
Disable
= 1 Watchdog Timer is reset upon a
Keyboard interrupt
= 0 Watchdog Timer is not affected by
Keyboard interrupt
Bit 5 : Force Watchdog Timer Time-out. Write
Only
Appendix A Programming the Watchdog Timer A-5
Embedded ControllerTKS-G20-LN05 Rev.B
= 1 Force Watchdog Timer time-out
event: this bit is self-clearing
Bit 4 : Watchdog Timer Status. R/W
= 1 Watchdog Timer time-out occurred
= 0 Watchdog Timer counting
Bit 3-0 : These bits select IRQ resource for
Watchdog. Setting of 2 selects SMI.
Appendix A Programming the Watchdog Timer A-6
Embedded Controller TKS-G20-LN05 Rev.B
A.2 W83627DHG Watchdog Timer Initial Program
Example: Setting 10 sec. as Watchdog timeout interval
;///////////////////////////////////////////////////////////////////////////////////////////////
Mov dx,2eh ;Enter W83627DHG config mode
Mov al,87h (out 87h to 2eh twice)
Out dx,al
Out dx,al
;///////////////////////////////////////////////////////////////////////////////////////////////
Mov al,07h
Out dx,al
Inc dx
Mov al,08h ;Select Logical Device 8 (GPIO Port
2)
Out dx,al
;///////////////////////////////////////////////////////////////////////////////////////////////
Dec dx
Mov al,30h ;CR30 (GP20~GP27)
Out dx,al
Inc dx
Mov al,01h ;Activate GPIO2
Out dx,al
Appendix A Programming the Watchdog Timer A-7
Embedded ControllerTKS-G20-LN05 Rev.B
;///////////////////////////////////////////////////////////////////////////////////////////////
Dec dx
Mov al,0f5h ;CRF5 (PLED mode register)
Out dx,al
Inc dx
In al,dx
And al,not 08h ;Set second as counting unit
Out dx,al
;///////////////////////////////////////////////////////////////////////////////////////////////
Dec dx
Mov al,0f6h ; CRF6
Out dx,al
Inc dx
Mov al,10 ;Set timeout interval as 10 sec.
Out dx,al
;///////////////////////////////////////////////////////////////////////////////////////////////
Dec dx ;Exit W83627DHG config mode
Mov al,0aah (out 0aah to 2eh once)
Out dx,al
;///////////////////////////////////////////////////////////////////////////////////////////////
Appendix A Programming the Watchdog Timer A-8
Embedded Controller TKS-G20-LN05 Rev.B
Appendix
B
DIO
Appendix B DIO B-1
Embedded ControllerTKS-G20-LN05 Rev.B
B.1 DIO
The F75111 p rovide s one serial access interface, I2C Bus, to
read/write internal registers. The address of Serial Bus is 0x6E
(0110_1110)
The related register for configuring DIO is list as follows:
Configuration and Control Register – Index 01h
Power-on default [7:0]=0000_1000b
Bit Name R/WPWR Description
7 INIT R/WVSB3VSoftware reset for all registers
6 Reserved R/WVSB3V
5 EN_WDT10 R/WVSB3VEnable Reset Out. If set to 1, enable
7 GP27_PSTS RO VSB3VRead the GPIO27 data on the pin.
6 GP26_PSTS RO VSB3VRead the GPIO26 data on the pin.
5 GP25_PSTS RO VSB3VRead the GPIO25 data on the pin.
4 GP24_PSTS RO VSB3VRead the GPIO24 data on the pin.
3 GP23_PSTS RO VSB3VRead the GPIO23 data on the pin.
2 GP22_PSTS RO VSB3VRead the GPIO22 data on the pin.
1 GP21_PSTS RO VSB3VRead the GPIO21 data on the pin.
0 GP20_PSTS RO VSB3VRead the GPIO20 data on the pin.
The following is a sample code for “4 input 4 output read/write.”
int i,out_reg,in_reg,data_offset;
int s_count;
unsigned char s_data, w_data,f_data0,f_data1,f_data2,f_data3;
printf("\n\t
#*#================================================#*#\n");
printf("\t ||| AAEON DIO Test Program For 4_In+4_Out |||\n");
printf("\t
#*#================================================#*#\n");
printf("\t ");
int i;
for(i=0;i<time;i++)
{
outportb(0xeb,0xFF);
}
return 0;
}
int SMBusGetStatus(unsigned int SMBus_Base)
{ //no error pending
return inportb(SMBus_Base+SMBUS_REG_STATUS);
}
void SMBusClearStatus(unsigned int SMBus_Base)
{
unsigned char status;
do
{
status = inportb(SMBus_Base+SMBUS_REG_STATUS);
outportb(SMBus_Base+SMBUS_REG_STATUS, status);
}while( status );
}
int SMBusCheckReady(unsigned int SMBus_Base)
{
int i;
unsigned char Org,Temp;