毕业设计做到这个课题,好难,研究了很久,还是不会,请教高手,帮帮小弟
这有一段程序,但是不懂,是用keil C写的 void initComm() { SCON0=0X50; SCON1=0X50; TMOD=0X20; PCON1=0X90; TH1=256-(sysclk/bandrate/16);
CKCON1=0X10; TR1=1; TI0=1; SCON1=1<<1; } DO { Cmd=printf (tmp,"at+cmgs=%d",length); for (i=0; i<cmd; i++){ SBUF0=TMP; WHILE (! TI0); TI0=0; } } I =0; While (!(SCON1&(1<<0))) |