3-14
SBC-845D-VEA Single Board Computer User’s Guide
// Select Inversion Mode
outp(0x002E, 0xF2);
outp(0x002F, (inp(0x002F) & 0x0F) | ( Inversion Register & 0xF0));
// Select I/O Mode
outp(0x002E, 0xF0);
outp(0x002F, (inp(0x002F) & 0x0F) | ( I/O Selection Register & 0xF0));
// Access GPIO ports
outp(0x002E, 0xF1);
outp(0x002F, (inp(0x002F) & 0x0F) | ( Output Data & 0xF0)); or Input Data
= inp(0x002F);
// Exit Extended Function Mode
outp(0x002E, 0xAA);
ä
ä
ä
ä
Definitions of Variables:
Each bit in the high nibble of each Register represents the setting of a GPIO port.
Bit4 vs. GPIO port 1
Bit5 vs. GPIO port 2
Bit6 vs. GPIO port 3
Bit7 vs. GPIO port 4
Value of
Inversion Register :
Only high nibble is available.
When set to a ‘1’, the incoming/outgoing port value is inverted.
When set to a ‘0’, the incoming/outgoing port value is the same as in Data Register.
Value of
I/O Selection Register :
Only high nibble is available.
When set to a ‘1’, respective GPIO port is programmed as an input port.
When set to a ‘0’, respective GPIO port is programmed as an output port.
Value of
Output Data / Input Data :
Only high nibble is available.
Содержание SBC-845D-VEA
Страница 1: ...www kontron com SBC 845D VEA Single Board Computer User s Guide Manual PN 931 0073 00 A October 2002...
Страница 6: ...vi SBC 845D VEA Single Board Computer User s Guide This page intentionally left blank...
Страница 8: ...viii SBC 845D VEA Single Board Computer User s Guide This page intentionally left blank...
Страница 12: ...xii SBC 845D VEA Single Board Computer User s Guide This page intentionally left blank...
Страница 14: ...xiv SBC 845D VEA Single Board Computer User s Guide This page intentionally left blank...
Страница 20: ...xx SBC 845D VEA Single Board Computer User s Guide This page intentionally left blank...
Страница 27: ...Chapter 1 Introduction Contents Overview 1 3 Check List 1 4 Product Specification 1 5 System Architecture 1 8...
Страница 35: ...Chapter 2 Jumpers and Connectors Contents Overview 2 3 Jumpers 2 3 Connectors 2 6 Connector Pin Assignments 2 9...
Страница 129: ...Chapter 5 ATX Power Settings Contents Overview 5 3 Backplane 5 3 P4 Power connector 5 3 ATX power 5 3...