Baudrate that UART can support in K10

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Baudrate that UART can support in K10

987 Views
yanlicheng
Contributor III

I use UART1  or UART2 (K10 chip) for communication, and the UART1 sysclk is 100M(core clock) , the UART2 sysclk is 50M(bus clock) .The communication protocol is modbus. When the baudrate is set to be 1152000 bps, the communication fails. K10 UART can only receive the first several Bytes, the following Bytes are missing.  Then I test other baudrate value, and find that " 115200, 460800, 500000, 576000, 1000000"  UART can work right; while under other higer baudrate, such as 1500000, 2500000, UART can't receive the correct frame.

Thus, I wonder if this issue results from that there is an upperlimit for UART baudrate in K10. If so, what's the upperlimit?

Labels (1)
Tags (3)
0 Kudos
4 Replies

701 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Yanil,

The UART1 maximum baud rate would be given by 100000000 / (16 x 1) = 6.25Mbps

And for UART2 the maximum baud rate would be = 50000000/(16 x 1) = 3.125Mbps

Could you provide more information about your application? Is it a baremetal project? Which other modules are you using?

Best Regards,

Carlos Mendoza

Technical Support Engineer

0 Kudos

701 Views
yanlicheng
Contributor III

Hi, Carlos:

What do you mean by " a baremetal project" . In my application, I also use module including  DMA,  PDB, PIT and so on.  Will these affect the baudrate of "UART"?

Regards,

Yanli

0 Kudos

701 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Yanil,

Thanks for your response and apologies for the delay.

By baremetal I mean if you are not using MQX or Processor Expert. Could you share an example project to reproduce the problem and see why the UART is not working at higher baud rates?

Best Regards!

Carlos Mendoza

Technical Support Engineer

0 Kudos

701 Views
yanlicheng
Contributor III

Carlos, thanks a lot for your answer.Sorry for respond so late. The project is hard to describe in details. The UART module is mainly used for communication, which is based on modbus protocol. And PIT module is used for frame sync. 

Maybe I should consider whether hardware circuit affects or the PIT interrupt time affects. Thanks again.

0 Kudos