UART Baudrate Tool uploaded
2005-10-20 by Joel Winarske
I just posted a simple Win32 cmd line tool to calculate the optimum register settings for a LPC214x UART peripheral. I am not aware if all the LPC2k UART peripherals are the same or not. If so great. I was working against the LPC2148 user manual. It seems the equation in the user manual to calculate the baud rate is incorrect. It should be: Baudrate = (PCLK/(16*(256*PRE_SCALE_MSB+PRE_SCALE_LSB)))*(MulVl/(MulVal+DivAddVal)) opposed to: Baudrate = (PCLK/(16*(16*PRE_SCALE_MSB+PRE_SCALE_LSB)))*(MulVl/(MulVal+DivAddVal)) I replicated the user manual example baud table using my software with modified equation. Minor typo in the user manual: The percent error value for the optimized 56000 baud is incorrect, it should read 0.1600 opposed to 0.0160. I hope you find it useful. If can be found in: http://groups.yahoo.com/group/lpc2000/files/Tools/ Regards, Joel Winarske Systems Architect Independent Electronics, Inc. V 707.320.4271 M 408.203.2770 F 408.516.5978 www.indyelectronics.com