필터 지우기
필터 지우기

LIN Configuration for TI DSP (TMS320F28032)

조회 수: 3 (최근 30일)
Abraham Mathew
Abraham Mathew 2015년 5월 27일
답변: Jerry Trantow 2015년 8월 31일
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개)

Jerry Trantow
Jerry Trantow 2015년 8월 31일
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.

카테고리

Help CenterFile Exchange에서 Buffers, Switches, and Counters에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by