You are reading a single comment by @DALP and its replies. Click here to read the full conversation.
  • All,

    I am working on a new project that requires CANbus interface and a microprocessor to switch external logic depending of what messages is sent to it. I chose a SEEED studio shield SPI->CANbus (based on MCP2515) interface which I have used in the past, and the Espruino PICO as the micro for the task.

    As it uses SPI bus. I went ahead and pre-configured the following way:

    SPI1.setup({sck:A5, miso: A6, mosi: A7, mode: 0, baud: 4000000});
    

    Although I am not too sure that this is the problem, I am noticing the following:

    .... even though the format between the "Arduino" and "Espruino" boards carry the same messages, the way each byte is passed from board to shield does not match.... I am attaching a couple of screen shots for anyone to see.

    Has anyone noticed arrays' last byte switching and holding the MOSI line "low" whenever its last bit is a "0"???

    NOTE: I changed the "mode" and "baud" rate from the default, with no success. I also checked that the MCP2515 was ~3vdc compatible, and it is.

    Thanks


    5 Attachments

    • arduino_zoom_in.png
    • arduino_zoom_in_2.png
    • espruino_zoom_in.png
    • espruino_zoom_in_2.png
    • espruino_zoom_out.png
About

Avatar for DALP @DALP started