9
③
Data sent from a personal computer is transferred sequentially from the smallest port
number set for output.
The port set for input also takes data sequentially from the smallest number and sends it
to the personal computer.
Data for each port is set or read in 4-bit increments.
Example: When ports 1 and 2 are set to input and ports 3 and 4 are set to output
Send to PC
order to do
port data
Order of output
to
ZS-6222A ports
port data
1
D7 to D4 of port 1
1
D7 to D4 of port 3
2
D3 to D0 of port 1
2
D3 to D0 of port 3
3
D7 to D4 of port 2
3
D7 to D4 of port 4
4
D3 to D0 of port 2
4
D3 to D0 of port 4
5.2. Control Signals
A control signal is provided to synchronize with the connected device.
Signal
name
signal
direction
explanation
STB
OUT
The adapter completes receiving all data from the PC and outputs a
pulse signal after output to the port.
External devices can use this signal for Latch-Clock or other purposes
as needed.
TRG
OUT Pulse signals are output to external devices by the "T" command.
CLR
OUT
Pulse signals are output to external devices by the "C" command.
This can be used to reset external devices.
LAH
IN
When the latch circuit is enabled (set by "L" command), input data is
latched with this signal.
Input a signal with a pulse width of 500us or more.
Note) Output pulse width can be set by command.
The pulse widths that can be set are 10µs, 100µs, 1ms, 10ms, and 100ms.