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.

TMS320F280039C: LIN SCI mode resetting the 3-bit counter

Part Number: TMS320F280039C

Tool/software:

Hi Experts,

My customer would like to reset this 3-bit counter, but they can't find it in the register map. May I know where we can find the register map and how to reset this counter?

Regards,

Hang

  • Hello,

    This is an internal counter to the module without read/write access (it is essentially how the LIN module tracks how many elements are written). If the customer wants to clear it, I believe they would have to reset the LIN module/registers. Is there a specific reason they need to clear it?

    Best Regards,

    Allison

  • Hi Allison,

    So resetting the module can reset it to 0, right? I am not sure because I can not check the "reset" value in the register map.

    Sometimes their SCI would miss some frames, and there would be a "offset" remaining in the counter when the next transfer comes, resulting in a data offset after DMA transfer. They want to eliminate the offset by resetting the counter when it's idle. 

    Regards,

    Hang.

  • Hello,

    Are you seeing any error flags getting set when the data frames are missed? You could then trigger an interrupt based on this to reset the LIN module in this case. 

        //
        // Reset LIN module
        // Release from hard reset
        //
        LIN_disableModule(base);
        LIN_enableModule(base);

    What is the desired condition to reset the LIN? Is there a known reason why the data packets are being missed? It would be good to understand why this is occurring.

    Best Regards,

    Allison

  • Hi Allison,

    Thanks for the method of resetting! customer is trying the method.

    The data is missing because of the partner, but we don't we exact reason yet. 

    Regards,

    Hang/

  • Hi Hang,

    Sounds good! Let me know if there is any further update or debug done by the customer. 

    Best Regards,

    Allison