LPC865M201JHI48 - UART polling method Driver

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

LPC865M201JHI48 - UART polling method Driver

210 次查看
BerlinRaj
Contributor II

hello, I wants to configure uart in the LPC865M201JHI48 Customized board and i copied the lpc865 SDK driver Example to my customized board. I tried using the usart_polling.c example and although the transmission of data seems to be working, there seems to be a problem for its transmitting garbage values. 

note: Lpc865 SDK example Driver belongs to lpc865m201jbd64

I am using REAL TERM Serial Terminal which I configured to 9600 baudrate, 8 data bits, 1 stop bit, no parity and no flow control.its transmitting some garbage value and real term serial teminal status indicating BREAK. what should i do?  

If you have any ideas or solutions, I would gladly welcome any help.

Thanks in advance.

 

I have attached the usart_polling.c to the message.

标签 (1)
0 项奖励
回复
1 回复

198 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Regarding your question, in the application code, the internal FRO is used as the driving clock of uart, because the internal FRO is not accurate, in other words, which leads to the mismatch with the receiver of uart, so sometimes, garbage byte is possible. The main_clk is from internal FRO.

You use customized board, do you connect external clock source to CLKIN pin or external crystal(Xtalin/Xtalout pins)? if you have external clock source or crystal, pls try to use the external clock as the uart driving clock. From software perspective, you can use clock configuration to select the external clock as uart clock.

xiangjun_rong_0-1715850663161.png

Hope it can help you

BR

XiangJun Rong

0 项奖励
回复