完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
#include "STC12C5A60S2.H" #include "intrins.H" #define uchar unsigned char #define uint unsigned int idata uchar UART_Recv_BUF[8]={0}; uchar Send_Busy = 0; uchar Receive_Busy= 0; uchar i=0; uchar j=0; ***it Fan = P2^0; //·çÉÈ void UART_init(void) { SM0=0; SM1=1; REN=1; BRT=0xFD; AUXR=0x15; ES=1; IPH=0x10; IP=0x10; EA=1; } void send_byte(uchar byte) { SBUF=byte; while(!ti); TI=0; } void printf(uchar*p) { while(*p!=' |