LIN Configuration for TI DSP (TMS320F28032)

2 views (last 30 days)
Has anyone used LIN transmit/Receive blocks in simulink for embedded software in the TI DSP? Is it possible to transmit LIN messages at a specified baud rate (in target prefs) with only just the LIN Transmit block versus using transmit and receive block? Seems like my code hangs up waiting to receive a LIN message from the slave..

Answers (1)

Jerry Trantow
Jerry Trantow on 31 Aug 2015
The Version 6.2 LIN Transmit block looks fairly useless for real time code. The code under the block implements the transmit using polling. At LIN baud rates this is going to cause all sorts of problems. A typical message is going to be several msecs. A NRE is 500 msec. Also note, the transmit block implementation swallows some of the error conditions.
Using the block parameters to enabling interrupts will set up the registers, but doesn't provide an actual interrupt handler.
So it looks like the blocks are more of an example than working code. I'm not sure if this has improved in later releases.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!