Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | LPC2000 | baud rate calculation for lpc210x

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

baud rate calculation for lpc210x - aravindar_manikandan - Nov 5 13:14:00 2004


hi,

i am using 14.746Mhz crystal for lpc210x.i want to find baudrate
setting for this crytal frequency.anybody explain with the formula

rgds,
mani






(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )


Re: baud rate calculation for lpc210x - shridhar joshi - Nov 5 13:42:00 2004

hi
here is the uart baud rate calculation

Baudrate=(ProcessorClock)/(16*BaudDivider Reg)

if you are using 14.7456MHz crystal and not using
Internal PLL of the lpc and processor clock is div
4
HERE IS THE FORMULA

BAUDRATE=(14.7546MHz/4)/(16*(BaudDivider Reg))
i.e for 14400 Baudrate
14.7456MHz/(4*16*16)
BaudDivider Reg=16

if you are using PLL say it is 4 times the Crystal
Frequency

BAUDRATE=(14.7546MHz*4)/(16*(BaudDivider Reg))
i.e for 14400 Baudrate
14.7456MHz*4/(16*256)
BaudDivider Reg=256 ie LowBaudReg=0 HighBaudReg=1

hopes it will help you shridhar

--- aravindar_manikandan
<> wrote: > hi,
>
> i am using 14.746Mhz crystal for lpc210x.i want to
> find baudrate
> setting for this crytal frequency.anybody explain
> with the formula
>
> rgds,
> mani __________________________________


______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: baud rate calculation for lpc210x - Robert Adsett - Nov 5 14:00:00 2004

At 06:14 PM 11/5/04 +0000, you wrote:
>i am using 14.746Mhz crystal for lpc210x.i want to find baudrate
>setting for this crytal frequency.anybody explain with the formula

Well it will depend on the pll and vpb settings as well as the crystal speed.

Basically

divisor = vpbrate/(baud *16);

U0DLM = high 8 bits of divisor
U0DLL = low 8 bits of divisor

There is a generalized version in the uart driver in the lpc-newlib .

Robert

" 'Freedom' has no meaning of itself. There are always restrictions,
be they legal, genetic, or physical. If you don't believe me, try to
chew a radio signal. "

Kelvin Throop, III




(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )