#include
#include “LCD1602.h”
#define uchar unsigned char
#define uint unsigned int
#define FOSC_110592M
//#define FOSC_12M
unsigned char welcome[]={“welcome!”};
unsigned char Show0[6]={“Noise:”};
unsigned char Show1[5]={“dB”};
unsigned long code Countnum[100]={10,11,12,13,15,17,19,22,25,28,
31,35,39,43,48,54,60,67,75,84,
94,105,117,131,146,163,包養情婦182,204,228,255,
包養網ppt 286,320,359,402,451,506,567,包養留言板636,713,799,
896,1005,1127,1264,1418,1590,1783,2000,2244,2517,
2824,3168,3556,3989,4475,5020,5632,6319,7089,7953,
8923,10011,11232,12602,14139,15863,17798,19969,22405,25138,
包養dcard 28204,31644,35504,39835,44694,50146sd包養,56263,63127,70828,79469,
蘭母冷笑一聲,不以為然,不置可否。 89164,100042,112247,125941,141305,158544,177886,199588,223937,251257,
這棵樹原本生長在我父母的院子裡,因為她喜歡它,我媽媽把整棵樹都移植了下來。 281910,316303,354891,398187,包養條件446765,501270,562424,631039,708025,794404,};
unsigned char code dB[100][3]={“031″,”032″,”033″,”034″,”035″,”036″,”037″,”038″,”039″,”040″,”041″,”042″,”043″,”044″,”045″,”046″,”047″,”048″,”049″,”050″,”051″,”052″,”053″,”054″,”055″,”056″,”057″,”058″,”059″,”060″,”061″,”062”,包養金額“063”,”064″,”065″,”066″,”067″,”068″,”069″,”070″,”071″,”072″,”073″,”074包養感情“,”075″,”076″,”077″,”078″,”079”,”08短期包養0″,”081″,”082″,”083″,”084″,”085″包養條件,”086″,”087″,”088″,”089″,”sd包養090″,”091″,”092″,”093″,”094″,”095″,”096″,”097″,”098″,”099″,”100″,”101″,”102″,”103″,”104″,”105″,”106″,”107″,”108″,”109″,”包養犯法嗎110″,”111″,”112″,”113″,”114″,”115″,”116″,”117″,”118″,”119″,”120″, “121”,”122″,”123″,”124″,”125″,”126″,”127″,”128″,”129″,”130″, };
***it beep=P2^2;
***it key_1=P2^1;
***it key_2=P2^0;
***it P10=P1^0;
***it P11=P1^1;
***it P12=P1^2;
***it P13=P1^3;
***it P14=P1^4;
unsigned long count,c;
uchar t,z;
uchar shu,ys;
void delayms(uint xms) //延時xms
{
uint x,y;
for(x=xms;x>0;x–)
for(y=90;y>0;y–);
}
void key()
{
if (key_1==0)
{
delayms(10);
if (key_1==0)
{
while(key_1==0);
if (shu
}
}
if (key_2==0)
{
delayms(10);
if (key_2==0)
{
while(key_2==0);
if (shu>0) shu–;
}
}
}
void alarm()
{
ys++;
if (ys>20)
{
ys=0;
beep=!beep;
}
}
void包養軟體 Serial_interrupt() interrupt 4
{
uchar temp;
temp=SBUF;
rec_data[rec_num++]=temp;
if(rec_num>=50)
rec_num=0;
else
;
RI=0;//????????包養女人,???????
}
void Uart1Sends(uchar *str)
{
while(*str!= )
{
SBUF=*str;
wh包養網單次ile(!ti);//????????(TI=1)??
TI=0;
str++;
}
}
void Uart1BYTE(uchar temp)
{
SBUF=temp;
while(!TI);//????????(TI=1)??
TI=0;
}
• 在做單片機把持SIM900a發短信的時辰碰到個完整不睬解的題目,乞助列位年夜神2705
• 若何用STC89C52RC單片機把持SIM300發短信,求源碼!感謝!!!3090
• 關于MSP430F149開闢板與GPRS開闢板SIM900的串口銜接收不到數據…11725
TMOD=0X15; //T0內部計數 任務方法1 T1按時方法1
EA=0; //開總中止
ET1=0; //封閉T1
TH0=0;
TL0=0;
TH1=(65536-50000)/256; //裝初值
TL1=(65536-50000)%256; //裝初值
init_1602();
WRITE_LCD1602_COM(0x80+3); // 顯示地址
for(包養網dcardi=0; iCountnum[i])
{
包養一個月價錢 i++;
}
m=i;
i=0;
WRITE_LCD1602_COM(0x80+9);
for(n=0; “我女兒能把他看成是他三生修煉的福分,他怎麼敢拒絕?”藍沐哼了一聲,一臉若敢拒絕的神情,看她如何修復他的表情,n=shu)
{
alarm();
}else
{
beep包養金額=1;
}
if(m>=50)
{
Uart1Sends(“AT+CMM包養女人I=2,1rn”);
delayms(1);
Uart1Sen包養甜心ds(“AT+CMGF=1rn”);
delayms(1);
Uart1Sends(“AT+CMGS=”10086″rn”);
delayms(1);
Uart1Sends(包養網比較m); zaoyin.c(218): error C214: illegal pointer conversion
delayms(1);
U女大生包養俱樂部包養管道art1BYTE(0X1A);
delayms(1);台灣包養
delayms(1);
delayms(1);
delayms(1);
P14=0;
}
}
}
void Timer0() interrupt 1
{
z++;
}
void Timer1() interrupt 3
{
TR1=0; //封閉T1按時
包養dcard T包養價格pttH1=(65536-50000)/256;
TL1=(65536-50000)%256;
t++;
if(t=包養留言板=20) //按時1s時光到
{
t=0;
TR0=0; //T0結束計數
c=z*65535+(TH0*256+TL0); // 將計數值讀取包養留言板
TH0=0; //清空計數值
TL0=0; //清空計數值
TR0=1; //T0開端計數
包養價格count=c;
c=0;
z=0;
}
TR包養違法1=1; //T1包養管道開端按時
}
原來來是檢測噪聲報警法式,白色的部門是我后加的想把聲響鉅細的數值發短信得手機上,可是那一句一向報錯不了解為啥
發佈留言