This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

F310 - UART 8bit mode

Hi,

I have been developing in Keil simulator with the last Cygnal driver for keil uVision.

How can i set my UART to 8-bit mode? I tried all possible combinations of SCON0 and all i got was 9-bit mode!!!

Another question that i have is how can i set my baud rate? With the simulator i can set my uart to 8-bit but i can't set my baud rate, i tried a lot of TH1 offsets and i gave always the same baud rate 255208 bds.
With the Cygnal uVision DLL i change my baud rate in mode 9-bit but never the correct one!

Thank you.

Best regards,
Mauro Farracha

  • i tried a lot of TH1 offsets and i gave always the same baud rate 255208 bds
    probably because your UART clock source is not T1. Do not rely on the Cygnal configure tool, it is good, but not perfect. Vrify the SFR bits generated.

    Erik