Hi all,
I am looking to get UART2 working on the LPC2388 microcontroller.
Currently, UART0 and UART1 works on it as they are provided in the sample code bundle (using uVision -- the first link under Embedded Software):
Arm7™ with 512 kB flash, 98 kB SRAM, Ethernet, USB 2.0 Device/Host/OTG, CAN, and 10-bit ADC | NXP
After going through the datasheet and user's manual (also given by the link above under the Documentation tab), I made some additions to include UART2 functionality. I can provide snippets of code upon request, but in short, here are the additions I made to start:
Here some other notes that may/may not help:
I did not see anything unique to UART2 in the user's manual that was not apparent in UART0 and UART1 other than the fact that it is off by default. I know that using an oscilloscope is one of the next options, but I want to rule out everything software related before it comes to that point.
Any insight on this is greatly appreciated.
Thank you,
Dan
Solved! Go to Solution.
Hi, Dan,
If you route the uart2 pins to P2.8/P2.9, what is the result?
BTW, can you enter uart2 transmitter ISR? can you see the signal of uart2 TXD via scope?
Hope it can help you
BR
XiangJun Rong
Hi, Dan,
If you route the uart2 pins to P2.8/P2.9, what is the result?
BTW, can you enter uart2 transmitter ISR? can you see the signal of uart2 TXD via scope?
Hope it can help you
BR
XiangJun Rong
XiangJun,
Switching to P2.8 and P2.9 for the pins worked! The issue was actually on my side as I just misread a schematic. I did not notice the 2nd pair of TXD2/RXD2. I can also see that the code is going into the transmitter ISR. All verified with a scope. Thank you!
Dan