I've been struggling with this for a while now. As far as I can tell I have everything set up correctly (registers etc.) But for some reason it still isn't working and I'm just wondering if I've missed something.
When I run the code in a simulator all the registers I configure are set up correctly but the PTMR register just stays at 0. I thought this was supposed to increment from the internal clock (PTMR clock?)?
Do I need to use an external oscillator or configure a specific timer, or have I just missed something in my code (apologies for the lack of comments)?
This is Hi-tech code but you're on the CCS forum.
CCS had functions to do this. Example:
http://www.ccsinfo.com/forum/viewtopic.php?t=37206&start=2
But in Hi-tech you have do it with registers (or write your own functions).
If you want to stay with Hi-tech, they have a forum (use google to find it).
Also Microchip has a Hi-tech forum.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum