This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS570LS3137:TMS570LS3137ZWT

Guru**** 2124380 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1425198/tms570ls3137-tms570ls3137zwt

器件型号:TMS570LS3137

工具与软件:

工具/软件: Code Composer Studio

您好!

我有一个关于 LIN 驱动器的问题

当我调用该linSend()函数时、数据不会被传输、但会正确存储在缓冲区中。 设置。
我已添加代码

#include "sys_common.h"
#include "lin.h"
/*用户代码 begin (1)*/
/*用户代码结束*/

/**@fn void main (void)
*@简要应用程序主函数
*@注意此函数默认为空。
*
*此函数在启动后调用。
*用户可以使用此函数来实现应用程序。
*/

/*用户代码 begin (2)*/
#define DELAY_TIME 500000
uint8_t TX_DATA[8]={0x00、0x01、0x12、0x13、0x14、0x15、0x16、0x17};


void delay_func (uint32_t delay)

while (delay!=0)

延迟——
}


}

/*用户代码结束*/

int main (void)

/*用户代码 begin (3)*/
/*用户代码结束*/
linInit();
while (1)

linSendHeader (linREG、0x3C);
linSetLength (linREG、8);
LinSend (linREG、&TX_DATA[0]);
delay_func (delay_time);
}

返回0;
}