How the Fdiv derived in example.?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How the Fdiv derived in example.?

347 次查看
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 项奖励
回复
1 回复

337 次查看
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 项奖励
回复