Measurement-computing PCI-DIO48H/CTR15 Bedienungsanleitung Seite 13

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 28
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 12
CONTROL REGISTER 1
BADR2 + 03h
WRITE only
D0D1-D3D4---
01234567
The operating mode of the digital I/O ports is Mode 0. The control register therefore
is used to set the ports for inputs or outputs at the connector. For example, to set all
ports to output, write the value 0h to Base + 3. To set all ports to input, write the
value 1Bh to Base + 3. The user can read the current state of an output port by simply
reading that port when configured to be output.
D7, D6, D5, and D2 are ‘don’t care’. They are shown as ‘0’ below. ‘CU’ is PORT C
upper nibble, ‘CL’ is PORT C lower nibble.
Table 5-2. DI/O Configuration Coding
ININININ271B1111
OUTINININ261A0111
INOUTININ25191011
OUTOUTININ24180011
ININOUTIN19131101
OUTINOUTIN18120101
INOUTOUTIN17111001
OUTOUTOUTIN16100001
INININOUT11B1110
OUTININOUT10A0110
INOUTINOUT991010
OUTOUTINOUT880010
ININOUTOUT331100
OUTINOUTOUT220100
INOUTOUTOUT111000
OUTOUTOUTOUT000000
CLCUBADecHexD0D1D3D4
DIO PORT VALUES CONTROL REG. CODES
PORT 2A DATA
BADR2 + 04h
READ/WRITE
A0A1A2A3A4A5A6A7
01234567
PORT 2B DATA
BADR2 + 05h
READ/WRITE
B0B1B2B3B4B5B6B7
01234567
9
Seitenansicht 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 27 28

Kommentare zu diesen Handbüchern

Keine Kommentare