Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/STMicroelectronics/STM32G050/TIM16/TISEL#0x0
TI1SEL=B_0x0
input selection register
selects TI1[0] to TI1[15] input Others: Reserved
0 (B_0x0): TIM16_CH1 input
1 (B_0x1): LSI
2 (B_0x2): LSE
3 (B_0x3): RTC wakeup
https://github.com/cmsis-svd/cmsis-svd-data