Method 1: Borrow Interrupt Vector 13
Among interrupts 0 ~ 31, the 13th is a reserved interrupt number, we can borrow this interrupt number.
The steps are as follows:
1. Change the interrupt number the compilation reported error to "13", as shown below:
2. Create a new assembly language file, such as "isr.asm", add it to the project, and add "LJMP 006BH" at the address
"0103H", as shown below:
3. Compile successfully.
Now, after being compiled by Keil's C51 compiler, there is an "LJMP PWM5_ISR" at 006BH and an "LJMP 006BH"