How the Fdiv derived in example.?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How the Fdiv derived in example.?

163 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sherrysamuel on Tue Sep 13 19:11:50 MST 2011
Hi,
In the example programs I can see that the Fiv value used is derived from
Fdiv = ( pclk / 16 ) / baudrate ;    /*baud rate */

How it has been derived . I cannot see any explanation from the manual. Afterwards this value is used in Setting the DLM and DLL as:
LPC_UART1->DLM = Fdiv / 256;                           
LPC_UART1->DLL = Fdiv % 256;

Can any one please tell how the Fdiv value has been derived.?
0 Kudos
1 Reply

153 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by domen on Mon Oct 03 06:53:51 MST 2011
pclk is your peripheral clock, baudrate is your baud rate
0 Kudos