Is there anyway of reseting TMR0 in mplab sim, because i am using a program by where TMR0 is prescaled by 256, so then every time 256 instructions pass, TMR0 goes up by one, and then when TMR0 reaches 30, 1 gets subracted from 80 in a different register, so that when 30 more is reached, 1 gets subracted again from 80,
and when 30 is reached 80 times, it counts for my one second,
anyway, when i run the program first time it works, but im not able to start the program from scratch again, because even if i press reset, tmro stays the same number as it got up to the last time i animated it, everything resets but not tmr0
any ideas
and when 30 is reached 80 times, it counts for my one second,
anyway, when i run the program first time it works, but im not able to start the program from scratch again, because even if i press reset, tmro stays the same number as it got up to the last time i animated it, everything resets but not tmr0
any ideas