Hi tuomas aaltio,
I don't know which chip you are using, now take MKL25 as an example:

You can find in the STOP mode, async operation, the TPM is full function in PSTOP2, it can generate PWM if you don't use the interrupt. If you use interrupt, the STOP mode will be wake up.

Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------