Black Box IC905C Quick Start Manual page 11

Relay output card, pci
Hide thumbs Also See for IC905C:
Table of Contents

Advertisement

RELAY OUTPUT CARD, PCI
Programming Example #2: Another method that takes into account the readback capability of
the output ports C and D:
MOV DX,303H
IN AL,DX
NOT AL
OR AL,00001000B
OUT DX,AL
Reading back the ports (C and D) results in the binary complement of
the output.
10
;Set DX to Port D
;Get old port setting
;Invert bits—see the Note below
;OR in bit 3
;Set bit 3
NOTE

Advertisement

Table of Contents
loading

Table of Contents