This is a continuation of the posts on the example code forum.
Having typed in verbatim the software to toggle between active mode and PM2, I have gotten the chip tp go sleep for a time dependant on the sleep time registers. The only problem is that when the interrupt is triggered, the chip resets from the beginning. I am using SDCC 2.8.0, and all other functions work fine. Is this an issue others have seen? I checked other posts and have checked all of the obvious gotchas like stack issues and tried to adjust the timing and alignment of the 32KHz oscillator and DMA call, but still no joy. Any other ideas?
Thanks,
Ron