Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: UART Baudrate Tool uploaded

2005-10-20 by radim100

--- In lpc2000@yahoogroups.com, "Joel Winarske" <joelw@i...> wrote:
>
> 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
>
Hi, 
 There is already similar tool in file section in file LPCUST.zip.
 Is your utility different in calculations ? 
 Radim.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.