I'm working with a microcontroller stm32f215. This device have a wheel of time (single encoder) connected to PF8 pin - TIM13_ch1. How best to accomplish reading this time round? Using the capture? Using the interrupt pin? It can show me some example? At first I use STMcube and libs HAL.