I am using LPC 1114,with 12Mhz crystal frequency...
How can I get 9600 baud rate .....?
Please tell me how to use clock sources to get that baud rate?
I think you can be right.
Update the tested code and post it back.
Hi,
Now I have tried with division value '1', I'm getting 9615 baud rate...
Is this 9615 baud rate is enough for serial communication of 9600?
It's almost perfect. An error of 0.15%.
Most microcontrollers can't get perfect baudrates, but asynchronous communication is designed to support small speed errors.
The requirements to get perfect baudrates are to either have an original clock frequency that divides perfectly, or to have a microcontroller with baudrate correction logic where UART can work with a fractional divisor - it inserts an extra clock cycle now and then to correct for creep caused by the integer division in the "normal" baudrate calculation.