Hi,
I have bought a LandTiger development board for LPC1768. it has a 12Mhz Xtal on it. I am trying to use its USART0 and I need to know PCLK. is it 3MHz? I devide 12 by 4. am I right?
I think I have not set a proper value in FDR register. Do you have any idea how to set it? I dont understand what is the devideVAL[3:0] and mulVal[7:4]??
By try and error (I mean by using a for() loop) I found that the best values for DLL is 0x5 and for FDR is oxf5. by these values USART0 works well for Baudrate 9600. But my problem is not solved since I dont know how to config for other values of Baudrate!!! I need your kind help.
Try and error!? why? reading of the user manual is not more difficult than try and error. if you realize the structure of the PLL and clock section, you can set the desired baud rate with 0% error. in edition there is a configuration wizard in start up file that you can manage the system clock if you add it to your project.