I want to use LPC804M101JDH24 for serial communication. I have attached code which is not working.
It seems that the character is not received. I have used PIO0_4 and PIO0_0 as TX and RX and linked all necessary header files as well.
Please suggest what is wrong in code.
Thanks in advance.
Hi,
You gave us only part of code, I do not know if you understand how to initialize the SWM:
Enable_Periph_Clock(CLK_SWM);
SWM->PINASSIGN_DATA[0]=0x0000;
SWM->PINASSIGN_DATA[0]|=4<<0|0<<8;
Then PIO0_4 will function as UIART0_TXD, PIO0_0 will function as UART0_RXD
If the uart0 receiver can not get char, pls check the baud rate.
Hope it can help you
BR
XiangJun Rong
Hi,
Pls write a code to repeat to output char, then connect a scope to an scope and check if you can see the waveform and check the baud rate.
Hope it can help you
BR
XiangJun Rong