Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:projects:can_ping_pong [2010/03/14 14:48] – created mikk.leinien:projects:can_ping_pong [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ===== CAN ping-pong ===== ===== CAN ping-pong =====
  
-//Requirements: [HW] 2 x [[en:hardware:avr-can:controller]]//+//Requirements: [HW] 2 x [[en:hardware:arm-can:controller]]// 
 + 
 +[{{  :images:projects:can_ping_pong:can_ping_pong_animation.gif|RGB LEDs flashing on frame arrival}}] 
 + 
 +The following program demonstrates the usage of CAN messaging on ARM-CAN controllers. Both controller have the same code. Whenever the button is pressed, a CAN message carrying a ping number is sent. If the message is received by the other node, it lights up it's red LED with intensity relative to the ping number and waits for 200 ms. After that it turns the LED off and sends the similar packet with decreased ping number to the controller which sent it out at first place. Messages are exchanged until the ping count reaches zero. 
 + 
 +~~CL~~
  
 ===== can_ping_pong.c ===== ===== can_ping_pong.c =====
en/projects/can_ping_pong.1268578105.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0