2023-03-20, 09:37 AM
there are 2 versions of the HAT. the old version has two modifications.
A1. Quite old with 8MHz quartz and serial UART
A2. same but with 12 MHz quartz
and now what TO has is B Variant
The board is well documented in WIKI from manufacturer
https://www.waveshare.com/wiki/RS485_CAN_HAT_(B)
After reboot the serial ports /dev/ttySC0 & /dev/ttySC1 are available.
A1. Quite old with 8MHz quartz and serial UART
A2. same but with 12 MHz quartz
and now what TO has is B Variant
The board is well documented in WIKI from manufacturer
https://www.waveshare.com/wiki/RS485_CAN_HAT_(B)
Code:
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25,,spimaxfrequency=1000000
dtoverlay=sc16is752-spi1,int_pin=24