51單片機(jī)一鍵下載相關(guān)
void tm0() interrupt 1 using 1
{
}
※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
用STC-ISP V6.03、STC-ISP V4.88默認(rèn)的最低波特率不同,
懶得每次修改,
重新寫了個(gè)程序,
自動(dòng)適應(yīng)3種最低波特率:1200bps/2400bps/4800bps
#define uint8
#define uint16 unsigned int
#include "STC15F104E.H"
sbit RXB
sbit Key
sbit Relay = P3^3;
sbit LED
uint8 RBUF;
uint8 RDAT;
uint8 RCNT;
uint8 RBIT;
bit
bit
uint8 cnt;
bit
uint16 cn;
uint8
bit
void YS100ms(uint8 n)
{
}
void UART_INIT()
{
}
void main()
{
}
void tm0() interrupt 1
{
}
//有一舊時(shí)期的STC-ISP_4.88版的引導(dǎo)信號(hào)間隔時(shí)間有差異( 需要切換計(jì)數(shù)器 > 800 ),建議用最新時(shí)期的
評(píng)論