DS-1200 Series Rugged Embedded Computer
| User’s Manual
CN-TB-QP22-44_V1.0
106
5.1.1.5.4 Control of GP80 to GP87 & GP40 to GP47 (DO1 ~ DO16)
#define AddrPort 0x4E
#define DataPort 0x4F
<Enter the Extended Function Mode>
WriteByte(AddrPort, 0x87)
WriteByte(AddrPort, 0x87)
// Must write twice to entering Extended mode
<Select Logic Device>
WriteByte(AddrPort, 0x07)
WriteByte(DataPort, 0x06)
// Select logic device 06h
<Output Mode Selection>
// Set GP80 to GP87 output Mode
WriteByte(AddrPort, 0x88)
// Select configuration register 88h
WriteByte(DataPort, (0xXF))
// Set (bit 0~7) = 1 to select GP 80~87 as Output mode
<Output Mode Selection>
// Set GP40 to GP47 output Mode
WriteByte(AddrPort, 0xB0)
// Select configuration register B0h
WriteByte(DataPort, (0xXF))
// Set (bit 0~7) = 1 to select GP 40~47 as Output mode
<Output Value>
WriteByte(AddrPort, 0x89)
// Select configuration register 89h
WriteByte(DataPort, Value)
// Set bit 0~7=(0/1) to output GP 80~87 as Low or High
<Output Value>
WriteByte(AddrPort, 0xB1)
// Select configuration register B1h
WriteByte(DataPort, Value)
// Set bit 0~7=(0/1) to output GP 40~47 as Low or High
<Leave the Extended Function Mode>
WriteByte(AddrPort, 0xAA)
5.1.1.5 Change base address
<Enter the Extended Function Mode>
WriteByte(AddrPort, 0x87)
WriteByte(AddrPort, 0x87)
// Must write twice to entering Extended mode
<Select Logic Device>
WriteByte(AddrPort, 0x07)
WriteByte(dataPort, 0x06)
// Select logic device 06h
WriteByte(AddrPort, 0x60)
// Select configuration register 60h (High Byte address)
WriteByte(DataPort, ( 0x0A))
WriteByte(AddrPort, 0x61)
// Select configuration register 61h (Low Byte address)
WriteByte(DataPort, ( 0x00))
<Leave the Extended Function Mode>
WriteByte(AddrPort, 0xAA)
Cincoze default DIO Port base address is set to 0x0A00h
Содержание DS-1200 Series
Страница 12: ...Product Introductions Chapter 1 ...
Страница 18: ...DS 1200 Series Rugged Embedded Computer User s Manual CN TB QP22 44_V1 0 18 DS 1201 DS 1202 DS 1200 ...
Страница 20: ...DS 1200 Series Rugged Embedded Computer User s Manual CN TB QP22 44_V1 0 20 DS 1202 Unit mm ...
Страница 21: ...Pin Definitions and Settings Chapter 2 ...
Страница 23: ...DS 1200 Series Rugged Embedded Computer User s Manual CN TB QP22 44_V1 0 23 2 1 2 Bottom View ...
Страница 34: ...System Setup Chapter 3 ...
Страница 72: ...BIOS Setup Chapter 4 ...
Страница 98: ...Product Application For DIO only Chapter 5 ...
Страница 101: ...DS 1200 Series Rugged Embedded Computer User s Manual CN TB QP22 44_V1 0 101 ...
Страница 102: ...DS 1200 Series Rugged Embedded Computer User s Manual CN TB QP22 44_V1 0 102 ...
Страница 103: ...DS 1200 Series Rugged Embedded Computer User s Manual CN TB QP22 44_V1 0 103 ...
Страница 115: ...Optional Module Pin Definitions and Settings Chapter 6 ...