0http://www.8051microcontrollers.com/8051-tutorials-a/8051-timers-counter-tutorial