
DC-1200 Series | User Manual
68
5.1.1.4.4 Control of GP84 to GP87 (DO1 ~ DO4)
(BTB_FH2)
#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 GP84 to GP87 output Mode
WriteByte(AddrPort, 0x88)
// Select configuration register 88h
WriteByte(DataPort, (0xXF))
// Set (bit 4~7) = 1 to select GP 84~87 as Output mode
<Output Value>
WriteByte(AddrPort, 0x89)
// Select configuration register 89h
WriteByte(DataPort, Value)
// Set bit 4~7=(0/1) to output GP 84~87 as Low or High
<Leave the Extended Function Mode>
WriteByte(AddrPort, 0xAA)
5.1.1.4.5 Control of GP70 to GP77 (DI1 ~ DI8)
(BTB_FH1 & BTB_FH2)
#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
<Input Mode Selection>
// Set GP70 to GP77 input Mode
WriteByte(AddrPort, 0x80)
// Select configuration register 80h
WriteByte(DataPort, 0x0X)
// Set (bit 0~7) = 0 to select GP 70~77 as Input mode
Summary of Contents for DC-1200 Series
Page 11: ...DC 1200 Series User Manual 11 Chapter 1 Product Introductions ...
Page 17: ...DC 1200 Series User Manual 17 1 7 Mechanical Dimension Unit mm ...
Page 18: ...DC 1200 Series User Manual 18 Chapter 2 Switches Connectors ...
Page 19: ...DC 1200 Series User Manual 19 2 1 Location of Switches and Connectors 2 1 1 Top View ...
Page 20: ...DC 1200 Series User Manual 20 2 1 2 Bottom View ...
Page 28: ...DC 1200 Series User Manual 28 Chapter 3 System Setup ...
Page 43: ...DC 1200 Series User Manual 43 Chapter 4 BIOS Setup ...
Page 61: ...DC 1200 Series User Manual 61 Chapter 5 Product Application For CMI DIO03 only ...
Page 64: ...DC 1200 Series User Manual 64 ...
Page 65: ...DC 1200 Series User Manual 65 ...
Page 76: ...DC 1200 Series User Manual 76 Reference Input Circuit Reference Output Circuit ...