В нескольких моих проектах UART от LPC21XX работает на скорости 921600 baud
//---------------------------------------------------------------------------- // UART0 init - FIFO enabled,IRQ enabled(later) //---------------------------------------------------------------------------- void InitUART0(void) { //---- pinout ----- rPCB_PINSEL0 = (rPCB_PINSEL0 & ~0xF) | ( 1 | (1<<2)); //-- Pins P0.0 & P0.1 - for UART1
//-- enable access to divisor latch regs rUART0_LCR = LCR_ENABLE_LATCH_ACCESS; //-- set divisor for desired baud rUART0_DLM = 0; rUART0_DLL = 4; // (14746000*4)/(16*921600) = 4 //-- disable access to divisor latch regs (enable access to xmit/rcv fifos //-- and int enable regs) rUART0_LCR = LCR_DISABLE_LATCH_ACCESS;
//-- Enable UART0 rx interrupts rUART0_IER = 3; //-- Enable RDA(Receive Data Available) int rUART0_FCR = (0x3<<6) | 1; //-- Int Trigger - 4 bytes, Enable FIFO,Reset Tx FIFO & Rx FIFO
//-- setup line control reg - disable break transmittion, even parity, //-- 1 stop bit, 8 bit chars rUART0_LCR = 0x13;//-- 0b00010011 }
|