Im trying to communicate PIC16F877A with a GSM modem using C progrmming language. But mi programme keeps giving me errors when i built it.
Can anyone help to correct erros.
#include <htc.h>
__CONFIG(XT & WDTDIS & PWRTDIS & BORDIS & LVPEN & WRTEN &
DEBUGEN & DUNPROT & UNPROTECT);
void init(void)
{
TRISA = 1b00000000;
}
void main(void)
{
int();
AT+IPR = 4800;
AT+CMGF = 1;
while (1) {
AT+CMGS = <67081594><somebody is coming><ctrl-z>
}
}
Can anyone help to correct erros.
#include <htc.h>
__CONFIG(XT & WDTDIS & PWRTDIS & BORDIS & LVPEN & WRTEN &
DEBUGEN & DUNPROT & UNPROTECT);
void init(void)
{
TRISA = 1b00000000;
}
void main(void)
{
int();
AT+IPR = 4800;
AT+CMGF = 1;
while (1) {
AT+CMGS = <67081594><somebody is coming><ctrl-z>
}
}