STC8A8K64D4 Series Manual
if (INT1)
{
P10 = !P10;
}
else
{
P11 = !P11;
}
}
void main()
{
P0M0 = 0x00;
P0M1 = 0x00;
P1M0 = 0x00;
P1M1 = 0x00;
P2M0 = 0x00;
P2M1 = 0x00;
P3M0 = 0x00;
P3M1 = 0x00;
P4M0 = 0x00;
P4M1 = 0x00;
P5M0 = 0x00;
P5M1 = 0x00;
IT1 = 0;
EX1 = 1;
EA = 1;
while (1);
}
Assembly code
;Operating frequency for test is 11.0592MHz
P0M1
DATA
P0M0
DATA
P1M1
DATA
P1M0
DATA
P2M1
DATA
P2M0
DATA
P3M1
DATA
P3M0
DATA
P4M1
DATA
P4M0
DATA
P5M1
DATA
P5M0
DATA
ORG
LJMP
ORG
LJMP
ORG
INT1ISR:
JB
CPL
RETI
RISING:
CPL
093H
094H
091H
092H
095H
096H
0B1H
0B2H
0B3H
0B4H
0C9H
0CAH
0000H
MAIN
0013H
INT1ISR
0100H
INT1,RISING
P1.0
P1.1
//Judging rising and falling edges
//Test port
//Test port
//Enable INT1 rising edge and falling edge interrupts
//Enable INT1 interrupt
;Judging rising and falling edges
;Test port
;Test port
-
- 224 -
Need help?
Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?