The Controller Area Network (CAN) Example will help new users get familiar with the MCAN peripheral used in Atmel's Samv7 family of microcontrollers.
This package can be used with SAMV71 Xplained Ultra board or SAME70 Xplained board.
The demonstration program periodically transmits several different CAN messages. The program enables CAN loopback mode so that the transmitted messages are reflected back as received messages as well. LED #0 is toggled on a successful transmission of one of the messages & LED #1 is toggles on a successful reception of the same message. Message transmission is stopped while SWITCH #0 is held depressed, which in turns means that both LED's should stop blinking. Depressing SWITCH #1 alternates between standard CAN operation and CAN-FD operation with bit rate switching.
-- Controller Area Network (CAN) Example %s --\n\r", SOFTPACK_VERSION ); -- xxxxxx-xx -- Compiled: xxx xx xxxx xx:xx:xx -- -- LED0 toggles on CAN message reception -- LED1 toggles on CAN message transmission -- CAN message transmission stopped while SW0 is pushed -- SW1 pushes alternate between standard CAN and CAN-FD
Both LEDs should stop blinking while Button #0 is held depressed.