Simulation ISIS ARDUINO

hello, colleagues, I want just simulate a duty cycle under isis proteus using a potentiometer.
that is my schema and Arduino code.

the simulation of a duty cycle doesn't correct as you can see in the picture for d=50%

ton> toff

(deleted)

can you recommend me a proteus Forum?

(deleted)