EasyManua.ls Logo

STC micro STC8A8K64D4 Series - Page 886

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
- 870 -
Method 3: Define the interrupt service routine as a subroutine, and then use the
LCALL instruction in the interrupt entry address in the assembly code to execute
the service routine.
The steps are as follows:
1. Remove the "interrupt" attribute from the interrupt service routine firstly and define it as an ordinary subroutine.
2. Then enter the code shown in the figure below at address 0103H of the assembly file.
3. After compiling, you can find the interrupt service routine at the address of 0103H.

Table of Contents

Related product manuals