CS
-
100
-
P2100 Series | User Manual
86
5.1.1.4.2 Control of GP80 to GP87
#define AddrPort 0x4E
#define DataPort 0x4F
<Enter the Extended Function Mode>
WriteByte(AddrPort, 0x87)
WriteByte(AddrPort, 0x87)
// Must write twice to enter Extended mode
<Select Logic Device>
WriteByte(AddrPort, 0x07)
WriteByte(DataPort, 0x06)
// Select logic device 06h
<Output/Input Mode Selection>
// Set GP80 to GP87 output Mode
WriteByte(AddrPort, 0x88)
// Select configuration register 88h
WriteByte(DataPort, (ReadByte(DataPort) & 0xFF))
// Set (bit 0~7) = 1 to select GP 80 ~87 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
<Leave the Extended Function Mode>
WriteByte(AddrPort, 0xAA)
Содержание CS-100/P2100 Series
Страница 14: ...CS 100 P2100 Series User Manual 14 Chapter 1 Product Introductions ...
Страница 26: ...CS 100 P2100 Series User Manual 26 Chapter 2 Switches Connectors ...
Страница 27: ...CS 100 P2100 Series User Manual 27 2 1 Location of Switches and Connectors 2 1 1 Top View 2 1 2 Bottom View ...
Страница 36: ...CS 100 P2100 Series User Manual 36 Chapter 3 System Setup ...
Страница 60: ...CS 100 P2100 Series User Manual 60 ...
Страница 62: ...CS 100 P2100 Series User Manual 62 Chapter 4 BIOS Setup ...
Страница 81: ...CS 100 P2100 Series User Manual 81 Chapter 5 Product Application ...
Страница 84: ...CS 100 P2100 Series User Manual 84 ...
Страница 91: ...CS 100 P2100 Series User Manual 91 Reference Input Circuit Reference Output Circuit ...
Страница 92: ...CS 100 P2100 Series User Manual 92 Chapter 6 Optional Modules Accessories Pin Definitions and Settings ...