I have a LPC2138 from sparkfun;
http://www.sparkfun.com/commerce/produc … cts_id=266
I’m using openocd / Eclipse.I can communicate with UART0 @9600 by this snippet;
UART0_FCR = 0x07;
UART0_LCR = 0x83; //8 bits, no Parity, 1 Stop bit
UART0_DLL = 128;
UART0_DLM = 1;
UART0_LCR = 0x03; // DLAB = 0
UART0_LCR &= ~0x80; //Disable DLAB
But I can’t change the baudrate of UART1, I’m seeing at an oscilloscope and It’s baudrate always @21793; I can’t change it…
UART1_FCR = 0x07;
UART1_LCR = 0x83; //8 bits, no Parity, 1 Stop bit
UART1_DLL = 128;
UART0_DLM = 1;
UART1_LCR = 0x03; // DLAB = 0
UART1_LCR &= ~0x80; //Disable DLAB
Thanks in advance…