Nxp semiconductors – NXP Semiconductors LPC24XX UM10237 User Manual

Page 439

Advertising
background image

UM10237_4

© NXP B.V. 2009. All rights reserved.

User manual

Rev. 04 — 26 August 2009

439 of 792

NXP Semiconductors

UM10237

Chapter 16: LPC24XX UART0/2/3

Fig 66. Algorithm for setting UART dividers

PCLK,

BR

Calculating UART

baudrate (BR)

DL

est

= PCLK/(16 x BR)

DL

est

is an

integer?

DIVADDVAL = 0

MULVAL = 1

True

FR

est

= 1.5

DL

est

= Int(PCLK/(16 x BR x FR

est

))

1.1 < FR

est

< 1.9?

Pick another FR

est

from

the range [1.1, 1.9]

FR

est

= PCLK/(16 x BR x DL

est

)

DIVADDVAL = table(FR

est

)

MULVAL = table(FR

est

)

DLM = DL

est

[15:8]

DLL = DL

est

[7:0]

End

False

True

False

Advertising