
VCO-6100 Series
143
GPIO Sample Code
GPIO Setting
The GPIO function is provided by Nuvoton NCT6106D, and it can be accessed through its GPIO index/data port. To access the
GPIO register, write index to the index port, and then read/write from/to data port. The configuration on the VCO-6000 is
described as below.
Psuedo Code
#define AddrPort
0x2e
#define DataPort
0x2f
#define SIO_UnLock_Value
0x87
#define SIO_Lock_Value
0xaa
#define SIO_LDN_GPIO
0x07
#define GPIO_Port
0xF1
//Enter_Config
WriteByte (AddrPort, SIO_UnLock_Value);
WriteByte (AddrPort, SIO_UnLock_Value);
WriteByte (AddrPort, 0x07);
WriteByte (DataPort, SIO_LDN_GPIO);
//Set OUT1~OUT8Value
WriteByte (AddrPort, GPIO_Port);
WriteByte (DataPort, 0x00); //set OUT1~OUT8 value, OUT1=Bit0, OUT2=Bit1
// Read In1~In8 value
WriteByte (AddrPort, 0xED);
Data= ReadByte (DataPort); //Read In1~In8 value
// close config mode
WriteByte
(
AddrPort
,
SIO_Lock_Value
);
Appendix – WDT & GPIO
PIN#
GPIO#
Default Configuration
18
XCOM-
17
XCOM+
16
OUT8
DIO Output8
15
IN8
DIO Input8
14
OUT7
DIO Output7
13
IN7
DIO Input7
12
OUT6
DIO Output6
11
IN6
DIO Input6
10
OUT5
DIO Output5
9
IN5
DIO Input5
8
OUT4
DIO Output4
7
IN4
DIO Input4
6
OUT3
DIO Output3
5
IN3
DIO Input3
4
OUT2
DIO Output2
3
IN2
DIO Input2
2
OUT1
DIO Output1
1
IN1
DIO Input1
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
OUT8
OUT7
OUT6
OUT5
OUT4
OUT3
OUT2
OUT1
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
IN8
IN7
IN6
IN5
IN4
IN3
IN2
IN1
Содержание VCO-6100 Series
Страница 1: ...USER S MANUAL VCO 6100 Series Superior Machine Vision System...
Страница 9: ...Chapter 1 Product Introductions...
Страница 26: ...VCO 6100 Series 26 1 4 Mechanical Dimensions 1 4 1 VCO 6122 Chapter 1 Product Introductions Unit mm...
Страница 27: ...VCO 6100 Series 27 1 4 2 VCO 6133 Chapter 1 Product Introductions Unit mm...
Страница 28: ...VCO 6100 Series 28 1 4 3 VCO 6144 Chapter 1 Product Introductions Unit mm...
Страница 29: ...VCO 6100 Series 29 1 4 4 VCO 6155 Chapter 1 Product Introductions Unit mm...
Страница 30: ...VCO 6100 Series 30 1 4 5 VCO 6122C 2PWR Chapter 1 Product Introductions Unit mm...
Страница 31: ...VCO 6100 Series 31 1 4 6 VCO 6133E 2PWR Chapter 1 Product Introductions Unit mm...
Страница 32: ...Chapter 2 Switches and Connectors...
Страница 33: ...VCO 6100 Series 33 2 1 Switch and Connector Locations 2 1 1 Top View Chapter 2 Switches and Connectors...
Страница 34: ...VCO 6100 Series 34 2 1 2 Bottom View Chapter 2 Switches and Connectors...
Страница 71: ...Chapter 3 System Setup...
Страница 85: ...VCO 6100 Series 85 9 Paste the thermal pad onto the installed heat block Chapter 3 System Setup...
Страница 95: ...VCO 6100 Series 95 Chapter 3 System Setup 3 Remove the 5 nuts M3 in the circle below...
Страница 101: ...VCO 6100 Series 14 Close the chassis cover 101 Chapter 3 System Setup...
Страница 102: ...VCO 6100 Series 15 Following the below direction to close the chassis cover 102 Chapter 3 System Setup...
Страница 103: ...Chapter 4 BIOS Setup...
Страница 106: ...VCO 6100 Series 106 Chapter 4 BIOS Setup 4 3 Advanced Setup...
Страница 132: ...VCO 6100 Series PCI Express Configuration 132 Chapter 4 BIOS Setup...
Страница 141: ...Appendix WDT GPIO This appendix provides the sample codes of WDT Watch Dog Timer and GPIO General Purpose Input Output...
Страница 144: ...Copyright Premio Inc All Rights Reserved www premioinc com...