M451 CAN application routines under Keil RTX

Post Reply
Prima
Posts: 109
Joined: 20 Mar 2017, 14:22

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

Prima
Posts: 109
Joined: 20 Mar 2017, 14:22

20 Jun 2017, 15:16

This is a total of several hanging in the above equipment, Is not as long as the ID can be fixed-point communication


Days Lingling spirit spirit

Prima
Posts: 109
Joined: 20 Mar 2017, 14:22

20 Jun 2017, 15:17

Function, not very clearly realized what a thing.


Catch insects

Prima
Posts: 109
Joined: 20 Mar 2017, 14:22

20 Jun 2017, 15:19

Yes, I use Keil, this can be used for my study

Stable and happy

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest