Advantech MIO-2262 User Manual page 54

Intel atom n2600 n2800 pico-itx sbc, ddr3, 18 24-bit lvds, vga, 1 gbe, full-size mini pcie, 4 usb, 2 com, smbus, i2c, msata & mioe
Table of Contents

Advertisement

III. Programmable GPIO
Pin Number
-
Get the numbers of input pins and output pins respectively. Each number may
vary with the direction of current pins, but the sum remains the same.
MASK
-
Choose the mask of interest by selecting or clearing its check box, then clicking
"Get Mask".
Direction Change / RW Access
-
Choose either "Single Pin" or "Multiple Pin".
-
The possible values that the "Single Pin" text box can be set to ranges from 0 to
the total number of GPIO pins minus 1.
Single Pin Operation – "IO Write" / "Set Direction"
-
Give a value of "1‟ (output status high / input direction) or "0‟ (output status low /
output direction) to set the pin then click the "IO Write" or "Set Direction" button.
Single Pin Operation – "IO Read"
-
Click "IO Read" to get the pin input status.
Multiple Pin Operation – "IO Write" / "Set Direction"
If there are 8 GPIO pins:
-
To write the status of GPIO output pins 0, 1, 6 and 7, give the "Multiple Pin" text
box the value 11000011. Bit 0 stand for GPIO 0, bit 1 stand for GPIO 1, and so
on.
To set pin 0 as high, pin 1 as low, pin 6 as high and pin 7 as low, give the "Value"
text box the value 01XXXX01, where X stands for a don't care pin.
Please simply assign a 0 for don't care pins, e.g. 10000001.
-
To set the direction of GPIO pins 0, 1, 6 and 7, give the "Multiple Pin" text box
the value 11000011. Again bit 0 stands for GPIO 0, bit 1 stands for GPIO 1, and
so on. To set pin 0 as an input, pin 1 as an output, pin 6 as an input and pin 7 as
MIO-2262 User Manual
44

Advertisement

Table of Contents
loading

Table of Contents