2
Exercise 5: SPI and CAN controller
• In this exercise, you will
– Connect basic circuitry for a CAN controller (MCP2515)
– Connect the CAN controller to the MCU via SPI bus
– Create an SPI driver
– Create a CAN controller driver (write/read registers etc.)
Exercise 6: CAN bus and communication
between nodes
• In this exercise, you will
– Create a CAN communication driver
– Test drivers with CAN controller in loop-back mode
– Connect CAN transceiver to controller on node 1
– Program and test communication with node 2 and I/O card