Download Print this page

STC micro STC8A8K64D4 Series Reference Manual page 886

Advertisement

STC8A8K64D4 Series Manual
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.
- 870 -

Advertisement

loading
Need help?

Need help?

Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?

This manual is also suitable for:

Micro stc8a8k64d4-64pinMicro stc8a8k64d4-48pin