I am quite new to LIN communications. I have a few questions here
After I created LIN Com driver with Halcogen, I did my LIN code as follows:
while(1)
{
if (linIsRxReady(linREG1))
{
linGetData(linREG1, linRxData);
}
if(linIsTxReady(linREG1))
{
//assigned linTxData = linRxData;
}
if(linIsTxReady(linREG1))
{
linSend(linREG1,linTxData);
}
}
Is my understanding in Logics correct? why my RXRDY never goes to "1"? There is always new data coming in. (BTW, my baud rate set as ADAPT =1. so it should be no problem)
Thanks a lot!