Jump to content

Pic18f2520 Debugger Timer2 Not Working

Recommended Posts

The PIC18F2520 Debugger Timer2 is not working, it always stays 0.

The PIC16 debugger works correctly.


This is the timer2 initialization I used (any value will do as long as TMR2ON=1):

pr2 = 0x1C;

t2con = 0x04;


The identical source DOES work on real hardware. I have confirmed this with

MPLAB and ICD2 where I can see register tmr2 correctly incrementing.

Link to post
Share on other sites
  • 2 weeks later...


Any news on this bug report?


This bug is real and has nothing to do with my other report which also involves Timer2.

This is not a bug but a limitation :)

Have a look in the IDE users manual under the simulator limitations section.




Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...