Going on with the timer stuff. <br>I had been playing with the ktl qtimer and i see that qtimer does not call simulator step every 1ms... indeed it does every aprox. 4ms, and not very accurate or regular; that's why i have a 4s period for a 1Hz ecclock-input.<br>
<br>The only way i found to have regular and accurate periods is sarting qtimer at 10ms and setting maxSteps according to this:<br><br>simulator.cpp __________________________________________________<br><br>stepTimer->start(10);<br>
<br>const unsigned maxSteps = unsigned(LINEAR_UPDATE_RATE / 100);<br>______________________________________________________________<br><br>This way i have clock input and pic running at real time.<br>