Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Homepage
Have an idea that I should use CAN as inter MCU communication in one of those projects that might one day become a reality. This is the simple first test of the mbed API and CAN transievers (two MCP 2551 http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010405).
I picked up the following working with this setup:
- RTFM
- Really... RTFM!!!
...then I'd found out:
- The MCP2551 need 5V to operate properly. Level conversion is only necessary from the mbed to the TXD pin on MCP2551, use your favorite method. There is no need to level convert from the RXD pin to the mbed as the mbed inputs are 5V tolerant.
- Connect the slope control. I used a 10k resistor to ground for simplicity.
...also:
- I didn't manage to drive two MCP2551 on what's left of the USB 5V. I used an external +5V power source as VDD.
Hope it helps. /Per