1

I am writing some bit-banged serial code which works when run on the STM8S-Discovery so I know the code's timing is correct ( within +/-5% ), but when simulating in Ride the elapsed time bears no relationship to what it is in practice. The code loop takes 208us approximately but the elapsed time shows "0s.000m.155". Running at 16MHz on the chip and in simulator.

Does anyone know what I am doing wrong or how to get more correct timing?

flag

Your Answer

Get an OpenID
or

Browse other questions tagged or ask your own question.