M451 CAN application routines under Keil RTX
Posted: 20 Jun 2017, 15:16
Function Description:
1 ) RTX system to establish two tasks, namely CAN send and CAN reception
2 ) Node0 through the expansion ID: 0x12345 every 2 seconds to send 2 bytes of data to the Node1 , then Node1 received data and then through a simple operation and then through the standard ID : 0x7FF sent back to Node0 .
3 ) through the serial port to view RTX under CAN communication is normal, such as Node0 send 0000 , Node1 after receiving serial print out 0000 , then Node1 high byte plus 1 and then sent back to Node0 , Node0 after receiving the data will print out 01 00 . Every 2SNode0 data will increment 1 is sent to Node1
Jliu_nuvoton
1 ) RTX system to establish two tasks, namely CAN send and CAN reception
2 ) Node0 through the expansion ID: 0x12345 every 2 seconds to send 2 bytes of data to the Node1 , then Node1 received data and then through a simple operation and then through the standard ID : 0x7FF sent back to Node0 .
3 ) through the serial port to view RTX under CAN communication is normal, such as Node0 send 0000 , Node1 after receiving serial print out 0000 , then Node1 high byte plus 1 and then sent back to Node0 , Node0 after receiving the data will print out 01 00 . Every 2SNode0 data will increment 1 is sent to Node1
Jliu_nuvoton