S32K144 RTD UART BaudRate

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K144 RTD UART BaudRate

1,449 次查看
SPK_FW
Contributor II

Hi,

I am using S32k144 with RTD drivers(V2.0.0 P04).

I want to generate a Baud rate of 1 Mbps for UART2. UART2 is running at 48MHz on FIRCDIV2_CLK. My FIRC is 48MHz.

In configuration Under Custom baud rate applying SBR as 12 & OSR as 4 shows me baudrate of 1000000. 

破坏者




image (1).png

 

When i tried to sent a data, wrong values is received in my analyser.

When i tried same data with 115200 baudrate (which is standard value from dropdown) data received is correct.

With 1 Mpbs only i am seeing this issue.

 Is this SBR as 12 & OSR as 4 correct if not can i get a correct value or how to calculate it?

Thank you

0 项奖励
回复
2 回复数

1,430 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @SPK_FW 

Could you please verify your real BaudRate using the function Lpuart_Uart_Ip_GetBaudRate()? Also, when you said " With 1 Mpbs only I am seeing this issue" does it mean that the transition and reception are successful with other custom baud rates? 

 

B.R.

VaneB

0 项奖励
回复

1,380 次查看
SPK_FW
Contributor II

Hi VaneB,

 

Thanks for reply.

I figured out the issue. OSR is doing a (-1) before loading to register.

When i made calculation this got messed up. 

Thank you 

0 项奖励
回复