AMD LX800 user manual Appendix D Programming GPIO’s, GPIO0...GPIO7

Page 43

LE-366 User’s Manual

Appendix D <Programming GPIO’s>

The GPIO can be programmed with the MSDOS debug program using simple IN/OUT commands. The following lines show an example how to do this.

GPIO0...GPIO7

bit0……bit7

-o 4E 87

;enter configuration

-o 4E 87

 

-o 4E 2A

 

-o 4F FD

;enable GPIO function

-o 4E 07

 

-o 4F 07

;enable GPIO configuration

-o 4E F0

 

-o 4F xx

;set GPIO as input/output; set ‘1’ for input,’0’for output

-o 4E F1

 

-o 4F xx

;if set GPIO’s as output, in this register its value can be set

Optional :

 

-o 4E F2

 

-o 4F xx

; Data inversion register ; ‘1’ inverts the current value of the

 

bits ,’0’ leaves them as they are

-o 4E 30

 

-o 4F 01

; active GPIO’s

For further information, please refer to Winbond W83627HG datasheet.

-42-

Image 43
Contents LE-366 Disclaimer CopyrightTrademark Printed Matters Packing ListHardware Cable KitAppendix a I/O Port Pin Assignment IndexPage Is Left For Blank Product Overview IntroductionGeneral Specification Product SpecificationExpansive Interface Mechanical Drawing Block Diagram 1Connector Location Hardware SetupJumper Reference JP2 JP3External Connector Connector ReferenceCPU Setup CPU and Memory SetupMemory Setup Cmos Setup Enhanced IDE & CF Interface FDD Floppy PortAnalog VGA Interface Onboard Display InterfacePin Description Digital DisplayPin Assignment Preparing the LE-366,LCD panel and the backlight inverter LCD Installation GuidePanel Number Resolution USB2.0 Interface Gpio Interface Serial Port Jumper Setting Power Input Power and Fan ConnectorPower Output Fan Connector Indicator and Switch This Page is Left For Blank 1CMOS Setup Utility Main Screen Bios SetupThis Page is Left for Blank IDE Port Appendix a I/O Port Pin AssignmentSerial Port LAN Port CRT PortUSB Port PS/2 Keyboard & Mouse Port This Page is Left for Blank Bios Auto Flash Tool Appendix B Flash BiosFlash Method C1. I/O Port Address Map Appendix C System ResourcesLE-366 User’s Manual C2. Memory Address Map C3. System IRQ Resources GPIO0...GPIO7 Appendix D Programming GPIO’sProgram Sample Appendix E Watch Dog timer SettingThis Page is Left for Blank Taiwan Commate Computer Inc Contact Information