s this possible do LIN with NRF5340 (uart) hardware and software wise
s this possible do LIN with NRF5340 (uart) hardware and software wise
Hi Peter,
LIN bus isn't supported on the hardware on the nRF53. The software, I don't think we have anything.
There had been some questions in the past regarding this:
LIN-bus SW driver for nRF5x
Does the nRF51822 UART support LIN bus?
The NRF54 will support CAN bus, but I'm not so sure about LIN.
Lin bus uart requirements:
normal data bytes in lin are 8 bits with start and stop as normal uart comm.
The bitrate is max 20kbit.
The sync break field is the one that is not like normal uart comm.
its a SYNC BREAK of min 13 bit (low) followed by
a SYNC DELIMITER (High)
Is this not possible with nrf5340 uart ?
If not can it be done in another way with a timer/capture/compare or so?
Hi Peter,
I checked around internally but I don't think we have done any study on this. The UART driver in Zephyr is quite non-flexible that you can't really use a TIMER to access the pin when it's already assigned to UART peripheral.
It should be possible with big banging (use a timer as you said) for the SYNC BREAK but you will have to skip the default driver.
Hi Peter,
I checked around internally but I don't think we have done any study on this. The UART driver in Zephyr is quite non-flexible that you can't really use a TIMER to access the pin when it's already assigned to UART peripheral.
It should be possible with big banging (use a timer as you said) for the SYNC BREAK but you will have to skip the default driver.