Download Print this page

STC micro STC8A8K64D4 Series Reference Manual page 861

Advertisement

STC8A8K64D4 Series Manual
}
if (RI)
{
RI = 0;
dat = SBUF;
switch (stage)
{
case 0:
default:
L_Check1st:
if (dat == 'S') stage = 1;
else stage = 0;
break;
case 1:
if (dat == 'T') stage = 2;
else goto L_Check1st;
break;
case 2:
if (dat == 'C') stage = 3;
else goto L_Check1st;
break;
case 3:
if (dat == 'I') stage = 4;
else goto L_Check1st;
break;
case 4:
if (dat == 'S') stage = 5;
else goto L_Check1st;
break;
case 5:
if (dat == 'P') stage = 6;
else goto L_Check1st;
break;
case 6:
if (dat == '$')
IAP_CONTR = 0x60;
else goto L_Check1st;
break;
}
}
}
void main()
{
P3M0 = 0x00;
P3M1 = 0x00;
SCON = 0x50;
TMOD = 0x00;
AUXR = 0x40;
TH1 = BR2400 >> 8;
TL1 = BR2400;
TR1 = 1;
ES = 1;
EA = 1;
// When the correct user download command is detected
// reset to system area
// Set the UART to 8 data bits
// Set the UART baud rate to 115200
- 845 -

Advertisement

loading
Need help?

Need help?

Do you have a question about the micro STC8A8K64D4 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Micro stc8a8k64d4-64pinMicro stc8a8k64d4-48pin