Microcontroller › AVR › gsm based water pump controller using atmega16 › sir can you give me coding
sir can you give me coding for that? i am very very new to embedde c.
i got similar coding from efy. i did some changes. but it is for 8051. i am confused that how to covert that for atmega16 please help me…
coding is as bellow. i am unable to understand that how it works. means how mcu will know that msg has been recived, what it tells and how it will take action….
#include<reg51.h>
sbit rs=P3^7;
sbit rw=P3^6;
sbit e=P3^5;
sbit pump=P1^0;
void gsmcmdsend(unsigned char *cmd);
void cmm(char value);
void dat(char value);
void compare();
unsigned char card_id[96];
unsigned char header[]=”SRC”;
unsigned char gsm_cmd3[]=”AT&W”;
unsigned char gsm_cmd4[]=”AT+CMGF”;
void gsmcmdsend(unsigned char *cmd)
{
unsigned char i;
for(i=0;*cmd!=’