User's Manual

12 UART
In-Car Trigger implement 1 UART interface to provide serial communication to
connected host device to access its internal register table for retrieving or controlling
the internal status.
12.1 UART configuration and command format
The UART interface connected host device must following the listed configuration
before dispatching UART command to In-Car Trigger:
Baudrate: 115200
Data Bits: 8
Parity: None
Stop Bits: 1
Flow Type: RTS/CTS
The form below define the format of UART command which In-Car Trigger accept
to access the context of its internal register table.
Registers read
The UART command format to retrieve
N
bytes data started from address
Addr
from register table would be the listed:
Byte Index
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Field Name
PID
Op. Code
Base Address
(High Byte)
Base Address
(Low Byte)
Access Length
Checksum
Value
0xA1
0x00
Addr >> 8
Addr & 0x00FF
N (Note #1)
(Note #2)
(Note #1) The maximum access data length could be read/write in one
command is 16 bytes.
(Note #2) Checksum is evaluated by taking the 2’s complement of the sum of