第 32 页 共 60 页
Figure 3.24 CAN frame to UART frame (transparent conversion with identification)
Conversion instance:
Example 1: Assume that the user configures the frame type of the converted CAN frame as "Extended
Frame", and the starting address of "Frame ID" in UART frame is 2 and the length is 3. The frame ID of the
received CAN frame is 0x00112233, and the data is 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77 and 0x88. The
conversion format is shown in Figure 3.25. Frame ID3, frame ID2 and frame ID1 in the CAN frame are
sequentially converted into serial frames as the 2nd, 3rd and 4th bytes, and the data field of the CAN frame is
sequentially converted into the unfilled part of the UART frame without any modification.
Figure 3.25 Example from CAN frame to UART frame
(transparent conversion with identification mode)