This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC2294

I would like to simulate UART feature on keil.
#include <lpc22xx.h>
void main(void)

{

PINSEL0 = 0x1;
VPBDIV = 0x11;
U0LCR = 0x8F;
U0TER = 0x00;
U0FCR = 0x01;
U0THR = 1;
U0FDR = 0x10;
U0DLM = 0;
U0DLL = 0x60;
U0LCR = 0x0F;
U0TER = 0x80;

}
this is the initialisation but for some reason in the Uart simulation window U0RBR/THR is 0 though i have inputted 1 and run it.

Any reasons?

0