STC8A8K64D4 Series Manual
P2M1
DATA
P2M0
DATA
P3M1
DATA
P3M0
DATA
P4M1
DATA
P4M0
DATA
P5M1
DATA
P5M0
DATA
ORG
LJMP
ORG
LJMP
ORG
LJMP
ORG
LJMP
ORG
LJMP
ORG
UART1ISR:
RETI
UART2ISR:
RETI
UART3ISR:
RETI
UART4ISR:
RETI
MAIN:
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
MOV
;
MOV
;
MOV
;
MOV
MOV
;
MOV
MOV
;
MOV
MOV
;
MOV
SETB
MOV
095H
096H
0B1H
0B2H
0B3H
0B4H
0C9H
0CAH
0000H
MAIN
0023H
UART1ISR
0043H
UART2ISR
008BH
UART3ISR
0093H
UART4ISR
0100H
SP, #5FH
P0M0, #00H
P0M1, #00H
P1M0, #00H
P1M1, #00H
P2M0, #00H
P2M1, #00H
P3M0, #00H
P3M1, #00H
P4M0, #00H
P4M1, #00H
P5M0, #00H
P5M1, #00H
P_SW1,#00H
P_SW1,#40H
P_SW1,#80H
P_SW1,#0C0H
P_SW2,#00H
P_SW2,#01H
P_SW2,#00H
P_SW2,#02H
P_SW2,#00H
P_SW2,#04H
ES
IE2,#ES2
;Wake up MCU on the falling edge of RXD / P3.0
;Wake up MCU on the falling edge of RXD_2/P3.6
;Wake up MCU on the falling edge of RXD_3/P1.6
;Wake up MCU on the falling edge of RXD_4/P4.3
;Wake up MCU on the falling edge of RXD2/P1.0
;Wake up MCU on the falling edge of RXD2_2/P4.6
;Wake up MCU on the falling edge of RXD3/P0.0
;Wake up MCU on the falling edge of RXD3_2/P5.0
;Wake up MCU on the falling edge of RXD4/P0.2
;Wake up MCU on the falling edge of RXD4_2/P5.2
;Enable UART interrupt
;Enable UART2 interrupt
-
- 87 -
Need help?
Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?