Introduction - If you have any usage issues, please Google them yourself
(AT89S52) Timer 2 application examples, there are four specific instances, the content is very detailed, general reference to the introduction of less Timer 2 can be used as reference