LPC 1114/333 UART RX not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC 1114/333 UART RX not working

1,734件の閲覧回数
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,641件の閲覧回数
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,647件の閲覧回数
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 件の賞賛
返信