Dear NXP Support Team,
I am a developer working with the S32K312 MCU and have a question regarding LIN communication configuration. When configuring the LIN driver using EB Tresos 28.2 and RTD 4.4.2 for the S32K312, I set the baud rate to 19200 bps. However, during communication testing, CANoe displays the master's actual baud rate as approximately 19530 bps.
dongxun_0-1765787307854.png
This represents a deviation of about 1.7% from the configured value, which exceeds the LIN 2.1 specification requirement of less than 0.5% deviation between actual and nominal baud rates.
dongxun_1-1765787331807.png
I understand that the actual LPUART baud rate is calculated based on SBR and OSR values.
dongxun_2-1765787353268.png
dongxun_3-1765787366925.png
With my current clock configuration of 30MHz, some calculation deviation is expected. My specific questions are:
- Are there recommended methods to minimize this deviation and better align the actual baud rate with the configured value?
- Is adjusting the clock frequency the only available solution, or are there other configuration approaches I could consider?
I would greatly appreciate your expert advice on this matter. Thank you for your time and support. Best regards, dongxun