This question is flagged "assumed answered" however it isn't - how can I change the status of the question?
Anyway - the problem still remains.
I issue a WFI and spend a considerable % of my time there during which power consumption is reduced.
So this shows that the WFI instruction is doing something.
However my GPT counters continue to count despite being disabled in wait mode.
Therefore I am not in wait mode.
I naively assumed that I would enter wait mode when i issued the WFI instruction, but this seems not to be the case.
So there must be something that enables the transition from the mode WFI enters (Idle?) to Wait mode.
CLCPR seems to be setup correctly but is there something else that needs to be done?
Has nobody else tried this?
Perhaps its a fault in the silicon?
Setup two GPT counters identically except one is disabled during wait and the other not.
Issue a WFI.
The timers should be different after the WFI.
But mine aren't.
what could I be doing wrong?
Best wishes,
Ahlan