Azzera filtri
Azzera filtri

LIN Configuration for TI DSP (TMS320F28032)

3 visualizzazioni (ultimi 30 giorni)
Abraham Mathew
Abraham Mathew il 27 Mag 2015
Risposto: Jerry Trantow il 31 Ago 2015
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..

Risposte (1)

Jerry Trantow
Jerry Trantow il 31 Ago 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!

Translated by