Spectra
GmbH
&
Co.
KG
User
Manual
Spectra
PowerTwin
PE3950/PN4200
Apollo
+
sunreadable Displays
81
5.1.1.4.2 Control of GP80 to GP83 (DO1 ~ DO4)
#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 Mode Selection>
// Set GP80 to GP83 output Mode
WriteByte(AddrPort, 0x88)
// Select configuration register 88h
WriteByte(DataPort, (0xX
F
))
//Set (bit 0~3) = 1 to select GP 80 ~83 as Output mode
<Output Value>
WriteByte(AddrPort, 0x89)
// Select configuration register 89h
WriteByte(DataPort, Value)
// Set bit 0~3=(0/1) to output GP 80~83 as Low or High
<Leave the Extended Function Mode>
WriteByte(AddrPort, 0xAA)
Содержание PowerTwin P08C-AL-SR
Страница 11: ...Product Introductions Chapter 1...
Страница 29: ...System Pin Definitions and Settings Chapter 2...
Страница 39: ...System Setup Chapter 3...
Страница 57: ...BIOS Setup Chapter 4...
Страница 77: ...Product Application Chapter 5...
Страница 85: ...Optional Module Pin Definitions and Settings Chapter 6...