Kaiyi — 8.4.1 Descriptions of the Control Registers

Chapter 8 Serial Communication Module AH10SCM 8.4.1 Descriptions of the Control Registers CR#7 : Triggering the reading of data through COM1 [Description] High byte: Reading data from bit devices; Low byte: Reading data from word devices 0: Not triggering it; 1: Triggering it once; 2: Always triggering it After 1 or 2 is written into CR#7, the reading of data through COM1 will be triggered. After 0 is written into CR#7, the reading of data through COM1 will stop. 8-9 CR# Attribute Register name Description 37369 R/W Status of receiving a command through COM2 0: A command has not been received. 1: The receiving of a command is being processed. 2: A command is received successfully. 3:

A command fails to be received. 4: Checksum error 5: Communication timeout 37370 R/W Communication protocol for exchanging data through COM2 0: MODBUS 1: RS 37871 R/W Sending/Receiving a command through COM2 0: After a command is sent, a command is received. 1: A command is sent, but no command is received. 2: No command is sent, but a command is received. 37372 R/W Timeout period after which no data is received through COM2 0:

No timeout 1~65535 ms 37373 R/W Number of times the sending of a command through COM2 is retried 0~255 37374 R/W Length of a packet which is sent through COM2 Length of a packet which is sent 37375 R/W Length of a packet which is expected to be received through COM2 Length of a packet which is expected to be received 37376~ 37871 R/W Contents of a packet sent through COM2 Contents of a packet which is sent COM1 Word Not triggering it Triggering it once Always triggering it COM1 Bit Not triggering it 16#0000 16#0001 16#0002 Triggering it once 16#0100 16#0101 16#0102 Always triggering it 16#0200 16#0201 16#0202