Access from the user program
KL6781
23
Version: 2.0.0
Complex evaluation in Motorola format
Address
Input data
Output data
Conditions
Word offset
High byte
Low byte
High byte
Low byte
Complete evaluation: any
Motorola format: yes
Word alignment: any
0
SW
CW
1
DataIN 0
DataIN 1
DataOUT 0
DataOUT 1
2
DataIN 2
DataIN 3
DataOUT 2
DataOUT 3
3
DataIN 4
DataIN 5
DataOUT 4
DataOUT 5
4
DataIN 6
DataIN 7
DataOUT 6
DataOUT 7
5
DataIN 8
DataIN 9
DataOUT 8
DataOUT 9
6
DataIN 10
DataIN 11
DataOUT 10
DataOUT 11
7
DataIN 12
DataIN 13
DataOUT 12
DataOUT 13
8
DataIN 14
DataIN 15
DataOUT 14
DataOUT 15
9
DataIN 16
DataIN 17
DataOUT 16
DataOUT 17
10
DataIN 18
DataIN 19
DataOUT 18
DataOUT 19
11
DataIN 20
DataIN 21
DataOUT 20
DataOUT 21
4.5
Register description
The registers are used for parameterization the M-bus master terminal. They can be read or written by
means of the register communication.
R0: Number of data bytes in the send buffer
Register R0 contains the number of data in the transmit FIFO.
R1: Number of data bytes in the receive buffer
Register R1 contains the number of data in the receive FIFO.
R6: Diagnostic register
Bit
R6.15
R6.14
R6.13
R6.12
R6.11
R6.10
R6.9
R6.8
Name
-
-
-
-
-
-
-
-
Bit
R6.7
R6.6
R6.5
R6.4
R6.3
R6.2
R6.1
R6.0
Name
-
-
-
BufferOverflow
Overrun Framing error Parity error RxBufferOverflow
Key
Bit
Name
Description
default
R6.15…5 -
-
reserved
-
R6.4
BufferOverflow
1
bin
Buffer is full
0
bin
R6.3
Overrun
1
bin
An overrun error has occurred
0
bin
R6.2
Framing error
1
bin
A framing error has occurred
0
bin
R6.1
Parity error
1
bin
A parity error has occurred
0
bin
R6.0
RxBufferOverflow 1
bin
The receive buffer has overflowed, incoming data is lost.
0
bin
R7: Command register
The command register of the KL6781 is not used.
R8: Terminal type
The terminal name is contained in register R8:
KL6781: 0x1A7D (6781
dec
)