Access from the user program
KL6001
35
Version: 3.0.0
Example
Output
Control byte
Input
Status byte
Comment
00000000
0XXXX0X0
Start data transmission
00100001
Data Bytes: In D0 and D1
Register data
0XXXX0X0
The controller instructs the terminal to send 2 data
…
…
…
00100001
Data Bytes: In D0 and D1
0XXXX0X1
The terminal has loaded 2 data into transmission FIFO;
the command is executed
01010000
Data Bytes: In D0 to D4
0XXXX0X1
Data Bytes: DC
The controller instructs the terminal to send 5 data (D0-
D4)
…
…
…
01010000
Data Bytes: In D0 and D1,
register data
0XXXX0X0
The terminal has loaded 5 data into transmission FIFO;
the command is executed
RA/RR: REICEIVE-ACCEPTED/RECEIVE-REQUEST
The terminal notifies the controller via a change of state in RR that the data quantity displayed in IL0-IL1 is
located in D0-D4. The data shift is acknowledged in the control byte using RA; only then will new data be
transmitted by the terminal to the controller.
Example:
Output
Control byte
Input
Status byte
Comment
00000000
0XXXX00X
Start data transmission
0XXX000X
0011X01X
The terminal instructs the controller to accept 3 data from
D0-D2
...
...
...
0XXX001X
0011X01X
The controller has accepted data
0XXX001X
0101X00X
The terminal instructs the controller to accept 5 data from
D0-D4
...
...
…
0XXX000X
0101X00X
The controller has accepted data
IR/IA: INIT-REQUEST/INIT-ACCEPTED
If IR is high, the terminal initializes. The send and receive functions are blocked, the FIFO pointers are reset
and the interface is initialized with the values from the relevant registers (R32-R35, R18). The completion of
the initialization is acknowledged by the terminal using IA.
Example:
Output
Control byte
Input
Status byte
Comment
0XXXXXXX
0XXXXXXX
Start data transmission
00000100
0XXXXXXX
Initialization is requested by the controller
…
…
…
00000100
00000100
The terminal has completed the initialization
00000000
00000100
The controller requests data exchange
…
…
…
00000000
00000000
The terminal is ready