This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Behavior of idle

Hi,

whats the behavior of idle regarding CAPCOM units?
I observed the following:
I have a 1 ms timer and a Sleep function based on the timer. The sleep function checks the elapsed time and if not finished
go to the idle mode. Every ms the interrupt weakes the µC up and time is checked again.
Works fine.
Now I have generated a 1kHz signal using CAPCOM2 in compare mode 3. I started the signal generation and put a Sleep(1000) after it, to have the 1kHz signal for 1 sec on the pin. But nothing happens, it seems that the CAPCOM timer is stopped during idle.

But the user manual say for idle, that peripherals are working??
Why the GPT timer is counting and the CAPCOM timer not?
I'm using a C164CI as µC.

Thanks for your help

Bert Weber

Parents Reply Children
No data