Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

New Articles From Microcontroller Tips

Back
Top