I'm very new to electronics and have a basic question regarding timer setup. I'm using an STM8L151K6 and am trying to configure TIM2 to simply generate an interrupt every 30 seconds using the standard peripheral library. I don't require any type of waveform generation, just a 30 second timeout to disable an attached IC. The MCU is halted during this time, so I do require an interrupt to wake. If possible, how do I configure TIM2 for this interval?