EasyManua.ls Logo

STC micro STC8A8K64D4 Series - Page 293

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
- 277 -
//P3.2 interrupt
}
if (intf & 0x08)
{
//P3.3 interrupt
}
if (intf & 0x10)
{
//P3.4 interrupt
}
if (intf & 0x20)
{
//P3.5 interrupt
}
if (intf & 0x40)
{
//P3.6 interrupt
}
if (intf & 0x80)
{
//P3.7 interrupt
}
}
P_SW2 = psw2_st;
}
// ISR.ASM
//Save the following code as ISP.ASM, and then add the file to the project
CSEG AT 0143H ; P3 port interrupt entry address
JMP P3INT_ISR
P3INT_ISR:
JMP 006BH ; Borrow the entry address of the 13th interrupt
END
Assembly code
;Operating frequency for test is 11.0592MHz
P0M0 DATA 094H
P0M1 DATA 093H
P1M0 DATA 092H
P1M1 DATA 091H
P2M0 DATA 096H
P2M1 DATA 095H
P3M0 DATA 0B2H
P3M1 DATA 0B1H
P4M0 DATA 0B4H
P4M1 DATA 0B3H
P5M0 DATA 0CAH
P5M1 DATA 0C9H
P6M0 DATA 0CCH
P6M1 DATA 0CBH
P7M0 DATA 0E2H
P7M1 DATA 0E1H
P_SW2 DATA 0BAH
P3INTE XDATA 0FD03H
P3INTF XDATA 0FD13H
P3IM0 XDATA 0FD23H
P3IM1 XDATA 0FD33H
ORG 0000H
LJMP MAIN

Table of Contents

Related product manuals