BCO-2000-V1605B l
User’s Manual
85
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 CT-DR101 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~OUT4 value, OUT1=Bit0, OUT2=Bit1
// Read In1~In8 value
WriteByte (AddrPort, 0xED);
Data= ReadByte (DataPort); //Read In1~In4 value
// close config mode
WriteByte
(
AddrPort
,
SIO_Lock_Value
);
Appendix
–
WDT & GPIO
PIN#
GPIO#
Default Configuration
1
VCC
+V5S
2
GND
GND
3
IN1
DIO Input1
4
OUT1
DIO Output1
5
IN2
DIO Input2
6
OUT2
DIO Output2
7
IN3
DIO Input3
8
OUT3
DIO Output3
9
IN4
DIO Input4
10
OUT4
DIO Output4
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
NC
NC
NC
NC
OUT4
OUT3
OUT2
OUT1
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
NC
NC
NC
NC
IN4
IN3
IN2
IN1
Содержание BCO-2000-V1605B
Страница 1: ...BCO 2000 V1605B Fanless Mini Computer with AMD Ryzen Embedded R1000 V1000 Series...
Страница 8: ...Chapter 1 Product Introductions...
Страница 14: ...BCO 2000 V1605B l User s Manual 14 1 4 Mechanical Dimensions Unit mm Chapter 1 Product Introductions...
Страница 15: ...Chapter 2 Mechanical Specifications...
Страница 17: ...BCO 2000 V1605B l User s Manual 17 Chapter 2 Mechanical Specifications 2 1 2 Bottom View 2 1 3 Rear I O CN5...
Страница 44: ...Chapter 3 System Setup...
Страница 51: ...BCO 2000 V1605B l User s Manual 3 6 Removing HDD bracket 1 Unscrew four screws M3x5L circled below 51...
Страница 57: ...Chapter 4 BIOS Setup...
Страница 60: ...BCO 2000 V1605B l User s Manual 4 3 Advanced Setup 60 Chapter 4 BIOS Setup...
Страница 63: ...BCO 2000 V1605B l User s Manual 4 3 3 IDE Configuration 63 Chapter 4 BIOS Setup...
Страница 86: ...Copyright C T Solution Inc All Rights Reserved www candtsolution com...