TMR0 PIC16F84A Simulator

Status
Not open for further replies.

Dan East

New Member
When my code runs in the PIC16F84A simulator TMR0 is never incremented. I have tried configuring TMR0 as both a counter and timer, yet it always stays 0. However the same code when compiled for the PIC12C508A runs properly in the simulator (TMR0 increments as it should).

Any insight would be appreciated!

Dan East
 
I found the problem. I was improperly setting the OPTION register for the 84A (it is in bank 1).

Dan East
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…