Other Parts Discussed in Thread: HALCOGEN
我用HAL Code Generator 配置了一个Lin通信的接口,在没有使能Lin中断时,发送正常,但是使能Lin中断后,发送的数据没有了校验和checksum,校验和不是自动生成发送的吗,怎么我开了中断就出错呢,求解!!!
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.
Other Parts Discussed in Thread: HALCOGEN
我用HAL Code Generator 配置了一个Lin通信的接口,在没有使能Lin中断时,发送正常,但是使能Lin中断后,发送的数据没有了校验和checksum,校验和不是自动生成发送的吗,怎么我开了中断就出错呢,求解!!!
Hi Adrian,
LIN和SCI是同一个模块,寄存器是共用的。
SCIGCR2:SC是在LIN模式下,配置是否发送CheckSum的。
你可以在打开中断发送时,查看该寄存器位是否为1.
Regards,
Jay