How to get the most out of a single timer on an MCU