LPC 1114/333 UART RX not working

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

LPC 1114/333 UART RX not working

1,732 次查看
Sac10
Contributor I

Dear sir,

I am using the LPC 1114/333 IC in that external frequency(crystal oscillator) is 12Mhz. we pin muxed 11th and 12th pin as UART RX and TX. after pin muxing UART TX pin is working but RX pin is not working in both  interrupt  and polling method . 46th and 47th pin of controller is used for ISP programming purpose. I attached the project code,can u please give the solution for this issue.

Thanks in advance, waiting for response

标记 (1)
0 项奖励
回复
2 回复数

1,639 次查看
raghavendra_rcb_55
Contributor I

/* Add this line after setting up uart RX pinmux */

LPC_IOCON->RXD_LOC=0x01;

/*
0x0 Selects RXD function in pin location PIO1_6/RXD/CT32B0_MAT0
0x1 Selects RXD function in pin location PIO2_7/CT32B0_MAT2/RXD
0x2 Selects RXD function in pin location PIO3_1/DSR/CT16B0_MAT1/RXD
0x3 Selects RXD function in pin location PIO3_4/CT16B0_CAP1/RXD 

*/

0 项奖励
回复

1,645 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

sorry for the delay.

The uart of LPC1114 can output waveform for the TXD pin, it means that the uart works fine. Regarding the uart receiver can not work, I suppose that the clock frequency of uart of LPC1114 does not match with that of the transmitter.

Pls try to use system oscillator as the uart clock source, the system oscillator clock accuracy is more accurate than that of internal  IRC.

Hope it can help you

BR

XiangJun Rong

 

xiangjun_rong_0-1699240866802.png

 

0 项奖励
回复