Problem MCP2515 Loopback Mode

Hello :slight_smile:

For my project, I’m using a CAN bus Shield from Sparkfun and an Arduino MEGA

I don’t have any other CAN nodes, so I would like to set the MCP2515 in loopback mode to see something on its Tx and Rx pins.

In the datasheet, I found how to select the mode :

REGISTER 10-1: CANCTRL – CAN CONTROL REGISTER
(ADDRESS: XFh)

bit 7-5 REQOP<2:0>: Request Operation mode bits
000 = Set Normal Operation mode
001 = Set Sleep mode
010 = Set Loopback mode
011 = Set Listen-Only mode
100 = Set Configuration mode

Unfortunatly, I don’t know how to program and send this into the register. (Maybe I’m wrong, I don’t really know how it works).

I need your help to solve this.

Thanks in advance for any help :slight_smile: