![Octagon PC-600 Скачать руководство пользователя страница 82](http://html.mh-extra.com/html/octagon/pc-600/pc-600_reference-manual_723611082.webp)
Digital I/O output program examples
To configure ports A, B, and C as all outputs, issue the commands:
OUT 123h, 2
‘Direction’ Mode
OUT 120h, FFh ‘PortA’
OUT 121h, FFh ‘PortB’
OUT 122h, FFh ‘PortC’
OUT 123h, 3
‘Operation’ Mode
Ports A, B, and C will now output all "1"s after issuing the following
commands:
OUT 120h, FFh (portA)
OUT 121h, FFh (portB)
OUT 122h, FFh (portC)
or all "0"s after:
OUT 120h, 0 (portA)
OUT 121h, 0 (portB)
OUT 122h, 0 (portC)
Digital I/O input program examples
To configure ports A and C as inputs and port B as outputs, issue the
following commands:
OUT 123h, 2
'Direction Mode'
OUT 120h, 0
'Port A data'
OUT 121h, FF 'Port B data'
OUT 122h, 0
'Port C data'
OUT 123h, 3
'Operation Mode'
To read ports A and C, issue the following commands:
PORTA = INP(120h)
(Port A)
PORTC = INP(122h)
(Port C)
82
Содержание PC-600
Страница 23: ...Figure 2 1 PC 600 connector and jumper diagram 23 ...
Страница 24: ...Figure 2 2 PC 600 center to center hole dimensions thousandths 24 ...
Страница 25: ...Figure 2 3 PC 600 center to center hole dimensions millimeters 25 ...
Страница 150: ...Table C 3 Miscellaneous part numbers Product Description Octagon p n AT battery Calendar clock battery backup 3186 150 ...