Tx and RX for the MCP2562
mchampio opened this issue · 4 comments
mchampio commented
I just want to ask a really stupid question.
The MCP2562 and MCP2515 combination according to their data sheets use SPI (MOSI, MISO,SCK CLK)
In your code and examples you talk about Tx and Rx. Is that because your code does not use a Bus Controller and instead talks directly to the MCP2562
ttlappalainen commented
Can you point, which code or example you mean.
mchampio commented
in NMEA2000_esp32.h you have
gpio_num_t TxPin;
gpio_num_t RxPin;
ttlappalainen commented
ESP32 has internal CAN controller and its tx/rx can be set almost any pin. Those pins you connect directly to the rx/tx to MCP2562. Also DUE and Teensies has internal CAN, but with fixed pins.
If you use MCP2515, then you use SPI.
mchampio commented
Thank you for the quick and comprehensive reply