LPC2138 Eclipse UART1 Baudrate

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…

One of your entries on the second code block is for UART0 rather than UART1. Is that correct?

Sorry, It’s my fault, I fixed it, but nothing changed, after few days I changed the switch positions near the Rs232 port, then It started worked… I didn’t understand but never mind:) it is working now=)