I'm using below LPCOPEN based codes for configging UART on my LPC812.
for normal baud rate below 115200(most usual) it works fine,but when i set a custom baud rate like(115200 *2) or
(115200 *n) it does not work either.whats problem?
//---UART Initialing---------------------------------
Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_SWM);
/* Divided by 1 */
Chip_Clock_SetUARTClockDiv(1);
/* Connect the U0_TXD_O and U0_RXD_I signals to port pins(P0.4, P0.0) */
Chip_SWM_DisableFixedPin(4);
Chip_SWM_MovablePinAssign(SWM_U1_TXD_O, 4);
Chip_SWM_MovablePinAssign(SWM_U1_RXD_I, 0);
/* Disable the clock to the Switch Matrix to save power */
//Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_SWM);
Chip_UART_Init(LPC_USART1);
Chip_UART_ConfigData(LPC_USART1, UART_CFG_DATALEN_8 | UART_CFG_PARITY_NONE | UART_CFG_STOPLEN_1);
Chip_Clock_SetUSARTNBaseClockRate((115200 * 16), true);
Chip_UART_SetBaud(LPC_USART1, 115200);
Chip_UART_Enable(LPC_USART1);
Chip_UART_TXEnable(LPC_USART1);