I was wondering if anybody got a c166 to run the debugging at a baudrate higher than 57600baud? if the program becomes large it is odd to watch the loading process rising in 5% steps. i gave the 115200baud a try but it might come from the deviation error and thus didn't work:
f_cpu = 20MHz; S0BRS=0;
with S0BRL=4 i get 125000baud (which is 8%) with S0BRL=5 i get 104167baud (which is 9.5%)
is my calc correct? is there anything else i missed to set/check?
I think the deviation error is the only problem here. With an oscillator frequency like 20 MHz you'll find that your higher baudrate options are extremely limited. You might be more lucky with special frequencies like 18.432 MHz...
in case i did calculate the baudrate correct, i could use the 125000baud. and so have no error at all. but therefore i need a setting in the debugging software to make it suiting to the 125000baud of the controller. unfortunately the setting is not yet there. am i right?
a much harder task is to change the xtal frequency or the scaling factor to suit the software debugging speed of 115200baud as you probosed. that's true.
View all questions in Keil forum