EasyManua.ls Logo

STC micro STC8A8K64D4 Series - Page 882

Default Icon
901 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
STC8A8K64D4 Series Manual
- 866 -
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"

Table of Contents

Related product manuals