Configure the required switches (GPIOs) in SysConfig.
Create cases for each timer configuration from steps 1–2.
Write application code that loops through the timer configurations based on interrupts triggered by pressing the switches. See Figure 5-1 and Figure 5-2 for an overview of the software.