ttlappalainen/NMEA2000_esp32

Tx and RX for the MCP2562

mchampio opened this issue · 4 comments

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

Can you point, which code or example you mean.

in NMEA2000_esp32.h you have
gpio_num_t TxPin;
gpio_num_t RxPin;

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.

Thank you for the quick and comprehensive reply