2011-04-02, 00:37:12
(2011-04-01, 22:18:44)Mikael Gustafsson Wrote: The excel sheet is a tool to calculate the baud rate error for different oscillator speeds and UART settings.What confuses me is to use a tool in order to calculate a variable which is needed nowhere in inc / asm file !!
Nowhere in the documentation it says you should set SPBRG. SPBRG is calculated from BAUDRATE and OSCF
and set in the code.
So, why to calculate something if you do not need it !!
Why to calculate something if it's automatically done in program !!
If it's just for user information, you should probably clearly write it ?