I always hate when manual are wrong! Thanks guys (and thanks for the
excel sheet...that'll save me from making one which is what I was
planning on doing)
-Scott
--- In l..., Mike Harrison wrote: >
> On Tue, 20 Feb 2007 07:28:34 -0000, you wrote:
>
> >--- In l..., "slb885" wrote:
> >>
> >> I have a question regarding the baud rate on the LPC2103. I have
> >> downloaded a couple of baud rate calculators (from this group), but it > >> seems that they calculate the baud using this
equation (ignoring the
> >> MulVal and DivAddVal variables):
> >>
> >> baud = PCLK / ( 16*(256*DLM + DLL) )
> >>
> >> However, according to the user manual I downloaded
> >> (http://www.embeddedartists.com/knowledge/lpc_overview.php?
> >PHPSESSIDvff6d0575702458ed0cf9e6dee37d09,
> >> "Manual" for the LPC2103, Page 85), the calculation should be:
> >>
> >> baud = PCLK / ( 16*(16*DLM + DLL) )
> >>
> >> Is the manual wrong or are the calculators wrong?
>
> >The manual is wrong.
>
> Yes - the manual is wrong - I have confirmed this by testing.
>
> Here is an excel calculator for baudrates
>
> http://www.electricstuff.co.uk/baudcalc.xls
>
> Note also if you are using IAR, there is an error in the definitions of the muval and/or divadd > register addresses ( I think it's only one of
them) in the io2101.h file, which adds to the > confusion.
>
Reply by Mike Harrison●February 20, 20072007-02-20
On Tue, 20 Feb 2007 07:28:34 -0000, you wrote:
>--- In l..., "slb885" wrote:
>>
>> I have a question regarding the baud rate on the LPC2103. I have
>> downloaded a couple of baud rate calculators (from this group), but it
>> seems that they calculate the baud using this equation (ignoring the
>> MulVal and DivAddVal variables):
>>
>> baud = PCLK / ( 16*(256*DLM + DLL) )
>>
>> However, according to the user manual I downloaded
>> (http://www.embeddedartists.com/knowledge/lpc_overview.php?
>PHPSESSIDvff6d0575702458ed0cf9e6dee37d09,
>> "Manual" for the LPC2103, Page 85), the calculation should be:
>>
>> baud = PCLK / ( 16*(16*DLM + DLL) )
>>
>> Is the manual wrong or are the calculators wrong?
>The manual is wrong.
Yes - the manual is wrong - I have confirmed this by testing.
Note also if you are using IAR, there is an error in the definitions of the
muval and/or divadd
register addresses ( I think it's only one of them) in the io2101.h file,
which adds to the
confusion.
Reply by Karl Olsen●February 20, 20072007-02-20
--- In l..., "slb885" wrote: >
> I have a question regarding the baud rate on the LPC2103. I have
> downloaded a couple of baud rate calculators (from this group), but it
> seems that they calculate the baud using this equation (ignoring the
> MulVal and DivAddVal variables):
>
> baud = PCLK / ( 16*(256*DLM + DLL) )
>
> However, according to the user manual I downloaded
> (http://www.embeddedartists.com/knowledge/lpc_overview.php? PHPSESSIDvff6d0575702458ed0cf9e6dee37d09, > "Manual" for the LPC2103, Page 85), the calculation
should be:
>
> baud = PCLK / ( 16*(16*DLM + DLL) )
>
> Is the manual wrong or are the calculators wrong?
The manual is wrong.
Karl Olsen
Reply by slb885●February 20, 20072007-02-20
I have a question regarding the baud rate on the LPC2103. I have
downloaded a couple of baud rate calculators (from this group), but it
seems that they calculate the baud using this equation (ignoring the
MulVal and DivAddVal variables):