lpcware

How the Fdiv  derived  in example.?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
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.?

Outcomes