Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN
Hello,
I would like to use LIN configured as SCI2 periphery on TMS570LS31x MCU to transmit serial data on the frequency of 921600 Hz. The MCU is clocked from external 40 MHz source and HALCoGen IDE 04.07.01 is used to generate the HAL source code.
Based on the reference manual SPNU499C and section 26.16.12, the baud rate should be computed as follows:
Asynchronous baud value = ( VCLK Frequency / (16 * (P + 1 + M/16 ) ) )
I assume the P and M dividers should be set to P=1 and M=11 to get as precise baud rate as possible, as follows:
Asynchronous baud value = ( 40 MHz / (16 * (1 + 1 + 11/16 ) ) ) = 930233 Hz
The HALCoGen IDE sets P and M dividers to P=2 and M=0, so the baud rate equals to 833333 Hz. Unfortunately, I have not found a way to force the HALCoGen IDE to set optimal P and M dividers and generate adequate baud rate for this application.

Is there anything I have done incorrectly in the configuration please?
Regards,
Peter