I have a problem about using UART3 on LPC2361
My code is:
PCONP |= (1 << 25); /* Enable PCUART3 */ PINSEL0 |= 0x0000000A; /* P0.0 TXD3, P0.1 RXD3 */ U3LCR = 0x83; /* DLAB = 1, 8 bits, no Parity, 1 Stop bit */
when start the debug session, at U3LCR = 0x83 command I receive:
"Data Abort: ARM Instruction at 00000F8CH, Memory Access at E007C00CH" You can see the uVision window at this momment here: www.beacom.ro/.../uvision.jpg
I use demo version of uVision from MDK-Lite (32KB) Edition. At the same code for UART0 and UART1:
UART0:
PCONP |= (1 << 3); /* by default, it's enabled already, for safety reason */ PINSEL0 |= 0x00000050; /* RxD0 and TxD0 */ U0LCR = 0x83; /* DLAB = 1, 8 bits, no Parity, 1 Stop bit */
UART1:
PCONP |= (1 << 4); /* by default, it's enabled already, for safety reason */ PINSEL0 |= 0x40000000; /* Enable TxD1 P0.15 */ PINSEL1 |= 0x00000001; /* Enable RxD1 P0.16 */ U1LCR = 0x83; /* DLAB = 1, 8 bits, no Parity, 1 Stop bit */
all is fine!
Thank you, Dorin