DA-1000 User’s Manual
81
Chapter 5: Product application
5.1.1.4 .2
Control of GP60 to GP63
#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 GP60 to GP63 output Mode
WriteByte(AddrPort, 0x90)
// Select configuration register 90h
WriteByte(DataPort, (ReadByte(DataPort) & 0xX
F
))
// Set (bit 0~3) = 1 to select GP 60 ~63 as Output mode.
<Output Value>
WriteByte(AddrPort, 0x91)
// Select configuration register 91h
WriteByte(DataPort, Value)
// Set bit 0~3=(0/1) to output GP 60~63
as Low or High
<Leave the Extended Function Mode>
WriteByte(AddrPort, 0xAA)
Содержание DA-1000
Страница 12: ...Product Introductions Chapter 1 ...
Страница 14: ...DA 1000 User s Manual 14 Chapter 1 Product Introductions 1 1 3 Photo of Rear Panel 1 1 2 Photo of Front Panel ...
Страница 19: ...Jumpers and Connectors Chapter 2 ...
Страница 21: ...DA 1000 User s Manual 21 Chapter 2 Jumpers and Connectors 2 2 2 Bottom View ...
Страница 32: ...System Setup Chapter 3 ...
Страница 49: ...BIOS Setup Chapter 4 ...
Страница 77: ...Product Application For CMI DIO100 Only Chapter 5 ...