A brief introduction of the demo programs
TxRxCAN_NoIRQ:
Demo1 is the example used for starting the PISO-CAN/PEX-CAN
/PCM-CAN board. This demo program is designed to send out the CAN
message through Port 1 and receive the CAN message immediately at port 2
in the same PISO-CAN/PEX-CAN/PCM-CAN board. Before exercising this
demo, the user needs to finish the CAN median wiring connection between
port 1 and port 2. Based on this demo, the user can key in the CAN message
into the port 1 frame area and then click the “Send” button in order to send out
the CAN message to port 2. If you click the “Receive” button in the CAN port
2 frame area, the CAN message received by CAN port 2 will be presented in
“TEXT” box. This is shown in the below screenshot. Note that if port 2 displays
a warning message like CAN Data Overrun, then it is an indication that the
un-read messages within the 64 bytes RXFIFO CAN buffer have been covered
by another message. This means that the messages that are being received
from the CAN bus may be in error and/or they may be missing part of the
message. Then the user can click on the “Clear Overrun” button to clear the
RXFIFO buffer overrun status within the CAN controller.
Figure 5.1: The form of demo1 program
PISO-CAN/PEX-CAN/PCM-CAN Series User’s Manual (v2.6 Dec/2013) -------
73
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru