STC8A8K64D4 Series Manual
if (cnt7f >= 16)
{
IspProgram();
}
}
else
{
cnt7f = 0;
}
RI = 0;
}
}
void main()
{
SCON = 0x50;
bit
AUXR = 0x40;
TH1 = BAUD >> 8;
TL1 = BAUD;
TR1 = 1;
ES = 1;
EA = 1;
P1M0 = 0;
P1M1 = 0;
while (1)
{
P1++;
}
}
User codes (assembly code)
; Operating frequency for test is 11.0592MHz
UARTBAUD
EQU
ISPPROGRAM EQU
AUXR
DATA
CNT7F
DATA
ORG
LJMP
ORG
LJMP
UART_ISR:
PUSH
PUSH
JNB
CLR
CHECKRI:
JNB
CLR
0FFE8H
0FA00H
08EH
60H
0000H
START
0023H
UART_ISR
ACC
PSW
TI,CHECKRI
TI
RI,UARTISR_EXIT
RI
// Invoke the download module (****important statement ****)
// Clear the reception completion flag
// Define the serial port mode as 8-bit, variable baud rate, no parity
//Enable UART interrupt
//Enable CPU interrupt
;Define the serial port baud rate (65536-11059200/4/115200)
; ISP download program entry address
; Additional Function Control Register
; Receive 7F counter
;System reset entry
; UART interrupt entry
; Detect transmission interruption
; clear flag
; Detect receive interruption
; clear flag
- 836 -
Need help?
Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?
Questions and answers