https://www.techzorro.com/en/blog/timer-0-8-bit-pic/
Timer 0, a simple Counter in 8-bit PIC you need to know