Hello,
Currently I’m working with the LPC-E2468 development board from Olimex. When I configure UART0 to keep printing “Hello World!”, I keep receiving garbage, until I send a character from the terminal. Some characters work, some don’t. For example: “a” and “esc” and “enter” work fine, but if I send a “b”, I keep receiving garbage. Once I have send the first character, and it’s the wrong one, I cannot send another one.
The strange part is, I haven’t written any code to receive characters.
Here is some more information on the registers:
U0FCR = 0x00; /* FIFO Control Register (Reset) */
U0IER = 0x00; /* Disable THRE Interrupt */
U0IIR = 0x02;
PINSEL0 = 0x00000050; /* RxD0 and TxD0 */
DWORD Fdiv;
U0LCR = 0x83; /* 8 bits, no Parity, 1 Stop bit, Enable DLAB*/
Fdiv = ( Fpclk / 16 ) / 115200 ; /* Baud rate */
U0DLM = Fdiv / 256;
U0DLL = Fdiv % 256;
U0ACR = 0x07;
U0LCR = 0x03; /* DLAB = 0, but keep the 8N1 setting */
I have tested it on different baudrates, and different Stopbits, and different parity settings, but the results were the same.
Anybody who has an idea what the problem might be?
Thanks in advance.