Iv\ufffdn Cay\ufffdn wrote: >Hi !! >I'm trying to send data with the UART at 115200 bps with a Xtal of 10 Mhz and >the PC doesn't receive the data correctly. Is the baud rate limited with this >equation? > >ratemax = PCLK / (16 x (2 + databits + paritybits + stopbits) > > > Crystal: 10000000 PLL MULT: 4 Periph Bus Div: 2 divisor: 4167 desired: 300 actual: 299.976 error: -0.008% divisor: 2083 desired: 600 actual: 600.096 error: 0.016% divisor: 1042 desired: 1200 actual: 1199.616 error: -0.032% divisor: 521 desired: 2400 actual: 2399.232 error: -0.032% divisor: 260 desired: 4800 actual: 4807.692 error: 0.1602% divisor: 130 desired: 9600 actual: 9615.384 error: 0.1602% divisor: 65 desired: 19200 actual: 19230.769 error: 0.1602% divisor: 33 desired: 38400 actual: 37878.787 error: -1.3573% divisor: 22 desired: 57600 actual: 56818.181 error: -1.3573% divisor: 11 desired: 115200 actual: 113636.363 error: -1.3573% divisor: 5 desired: 230400 actual: 250000 error: 8.5069% >if this is correct then I can't get this baudrate with 10 Mhz xtal > >Regards, > >Ivan > > > >Yahoo! Groups Links > > > > > > > > > > > -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net, http://cyberiansoftware.com "Windows? No thanks, I have work to do..." ----------------------------------------------------
Message
Re: [lpc2000] UART baudrate
2006-03-02 by Tom Walsh
Attachments
- No local attachments were found for this message.