EasyManua.ls Logo

STC micro STC8A8K64D4 Series - Page 103

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
-
- 87 -
P2M1 DATA 095H
P2M0 DATA 096H
P3M1 DATA 0B1H
P3M0 DATA 0B2H
P4M1 DATA 0B3H
P4M0 DATA 0B4H
P5M1 DATA 0C9H
P5M0 DATA 0CAH
ORG 0000H
LJMP MAIN
ORG 0023H
LJMP UART1ISR
ORG 0043H
LJMP UART2ISR
ORG 008BH
LJMP UART3ISR
ORG 0093H
LJMP UART4ISR
ORG 0100H
UART1ISR:
RETI
UART2ISR:
RETI
UART3ISR:
RETI
UART4ISR:
RETI
MAIN:
MOV SP, #5FH
MOV P0M0, #00H
MOV P0M1, #00H
MOV P1M0, #00H
MOV P1M1, #00H
MOV P2M0, #00H
MOV P2M1, #00H
MOV P3M0, #00H
MOV P3M1, #00H
MOV P4M0, #00H
MOV P4M1, #00H
MOV P5M0, #00H
MOV P5M1, #00H
MOV P_SW1,#00H ;Wake up MCU on the falling edge of RXD / P3.0
; MOV P_SW1,#40H ;Wake up MCU on the falling edge of RXD_2/P3.6
; MOV P_SW1,#80H ;Wake up MCU on the falling edge of RXD_3/P1.6
; MOV P_SW1,#0C0H ;Wake up MCU on the falling edge of RXD_4/P4.3
MOV P_SW2,#00H ;Wake up MCU on the falling edge of RXD2/P1.0
; MOV P_SW2,#01H ;Wake up MCU on the falling edge of RXD2_2/P4.6
MOV P_SW2,#00H ;Wake up MCU on the falling edge of RXD3/P0.0
; MOV P_SW2,#02H ;Wake up MCU on the falling edge of RXD3_2/P5.0
MOV P_SW2,#00H ;Wake up MCU on the falling edge of RXD4/P0.2
; MOV P_SW2,#04H ;Wake up MCU on the falling edge of RXD4_2/P5.2
SETB ES ;Enable UART interrupt
MOV IE2,#ES2 ;Enable UART2 interrupt

Table of Contents

Related product manuals