maxmatveev wrote: > --- In l..., Bill Knight wrote:
>> maxmatveev wrote:
>>> Hi! I have a problem using fractional baudrate divider on
> LPC2136.
>>> When i'm not using FDR i get baudrate (for example crystal is
> 14.318
>>> MHz, PCLK = 14.318 MHz)FDR = 0x10, DLL = 0x10, DLM = 0x00.
> baudrate >>> 55930, error about 3% from 57600. Everything is seems to be ok,
> UART
>>> errors with this setting are very rare. But when i using FDR to
> set
>>> baudrate more accurately - FDR = 0xB8, DLL = 0x09, DLM = 0x00 -
>>> baudrate = 57565, error about 0.6% i get UART transfer error on
>>> almost every byte. This happens on both UARTS and with any
> baudrate
>>> from 9600 to 115200.
>>> Can anyone help me with this problem?
>>
>> Make sure your crystal is really 14.318MHz and not the baud rate
>> multiple, 14.7456MHz.
>>
>> Regards
>> -Bill Knight
>> R O SoftWare
>>
> The crystal is 14.318. Already ordered 18.432 which is baudrate
> multiple. But i want to know why fractional divider doesn't working.
>
> I will try to check real baudrate when using fractional divider with
> oscilloscope during this week.
> Is it possible the crystal is series resonant? That will shift the
frequency off when used in a parallel resonant circuit.
--- In l..., Bill Knight wrote: >
> maxmatveev wrote:
> > Hi! I have a problem using fractional baudrate divider on LPC2136. > > When i'm not using FDR i get baudrate (for
example crystal is 14.318 > > MHz, PCLK = 14.318 MHz)FDR = 0x10, DLL = 0x10, DLM
= 0x00. baudrate > > 55930, error about 3% from 57600. Everything is seems to be
ok,
UART > > errors with this setting are very rare. But when i
using FDR to set > > baudrate more accurately - FDR = 0xB8, DLL = 0x09,
DLM = 0x00 -
> > baudrate = 57565, error about 0.6% i get UART transfer error on
> > almost every byte. This happens on both UARTS and with any baudrate > > from 9600 to 115200.
> > Can anyone help me with this problem?
> Make sure your crystal is really 14.318MHz and not the baud rate
> multiple, 14.7456MHz.
>
> Regards
> -Bill Knight
> R O SoftWare
> The crystal is 14.318. Already ordered 18.432 which is baudrate
multiple. But i want to know why fractional divider doesn't working.
I will try to check real baudrate when using fractional divider with
oscilloscope during this week.
Reply by Tom Walsh●July 28, 20072007-07-28
maxmatveev wrote: >
> Hi! I have a problem using fractional baudrate divider on LPC2136.
> When i'm not using FDR i get baudrate (for example crystal is 14.318
> MHz, PCLK = 14.318 MHz)FDR = 0x10, DLL = 0x10, DLM = 0x00. baudrate > 55930,
error about 3% from 57600. Everything is seems to be ok, UART
> errors with this setting are very rare. But when i using FDR to set
> baudrate more accurately - FDR = 0xB8, DLL = 0x09, DLM = 0x00 -
> baudrate = 57565, error about 0.6% i get UART transfer error on
> almost every byte. This happens on both UARTS and with any baudrate
> from 9600 to 115200.
> Can anyone help me with this problem?
>
I would recommend going to a 14.745600MHz crystal, if you can. That
frequency hits all the baudrates dead-on. But, you probably are using
the 14.318 somewhere else as it is a multiple of the color burst
frequency. A lot of chips used that old frequency as the crystal was
cheap (and plentiful)?
This is a perl script that I used in choosing what crystal I could use
and what accuracy that I could expect:
============ begin baudrates.pl ==============#!/usr/bin/perl
#
# this determines the degree of error between desired and actual
# baudrates on the LPC2000 processors.
#
#my $FREQ = 14745600;
my $FREQ = 14318180;
my $PLL_MUL = 4;
my $PBSD = 2;
my $CCLK = ($FREQ * $PLL_MUL);
my $PCLK = ($CCLK / $PBSD);
my @commonRates
(300,600,1200,2400,4800,9600,19200,38400,57600,115200,230400);
maxmatveev wrote: > Hi! I have a problem using fractional baudrate
divider on LPC2136.
> When i'm not using FDR i get baudrate (for example crystal is 14.318
> MHz, PCLK = 14.318 MHz)FDR = 0x10, DLL = 0x10, DLM = 0x00. baudrate > 55930,
error about 3% from 57600. Everything is seems to be ok, UART
> errors with this setting are very rare. But when i using FDR to set
> baudrate more accurately - FDR = 0xB8, DLL = 0x09, DLM = 0x00 -
> baudrate = 57565, error about 0.6% i get UART transfer error on
> almost every byte. This happens on both UARTS and with any baudrate
> from 9600 to 115200.
> Can anyone help me with this problem? Make sure your crystal is really 14.318MHz and not the baud rate
multiple, 14.7456MHz.
Regards
-Bill Knight
R O SoftWare
Reply by maxmatveev●July 28, 20072007-07-28
Hi! I have a problem using fractional baudrate divider on LPC2136.
When i'm not using FDR i get baudrate (for example crystal is 14.318
MHz, PCLK = 14.318 MHz)FDR = 0x10, DLL = 0x10, DLM = 0x00. baudrate 55930, error
about 3% from 57600. Everything is seems to be ok, UART
errors with this setting are very rare. But when i using FDR to set
baudrate more accurately - FDR = 0xB8, DLL = 0x09, DLM = 0x00 -
baudrate = 57565, error about 0.6% i get UART transfer error on
almost every byte. This happens on both UARTS and with any baudrate
from 9600 to 115200.
Can anyone help me with this problem?