I'm tring to simulate a 12F675 in MPLab sim to wake from sleep on timer1 overflow with a 32.678KHz crystal. The datasheet says timer1 should still count in SLEEP but it just stays at the value I set it to. I can see GPIO, 5 changing so the stimulus I set up to simulate the external crystal is doing something.
I think I have the interrupt registers, T1CON, etc set up right but I might have done something wrong.
The attached screen capture should explain things.
If I comment out sleep then timer1 increments and the interrupt gets called.
What should I do?
Edit: Additional info:
Problem now solved (I didn't realise I had to set T1CON, T1SYNC)
I think I have the interrupt registers, T1CON, etc set up right but I might have done something wrong.
The attached screen capture should explain things.
If I comment out sleep then timer1 increments and the interrupt gets called.
What should I do?
Edit: Additional info:
Problem now solved (I didn't realise I had to set T1CON, T1SYNC)
Attachments
-
136.1 KB Views: 27
Last edited: