LIN Configuration for TI DSP (TMS320F28032)
Mostra commenti meno recenti
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..
1 Commento
Peeyush
il 1 Giu 2015
Risposte (1)
Jerry Trantow
il 31 Ago 2015
1 voto
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.
Categorie
Scopri di più su C2000 Microcontroller Blockset in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!