This is my program t send at command but i can't get ok from module. Please how to send At command to module (please send me a sample prgam tosend at command )using CCS compiler.
#include <16F877A.h>
#device adc=8
#use delay(clock=4000000)
#fuses NOWDT,XT, NOPUT, NOPROTECT, NODEBUG, BROWNOUT, LVP, NOCPD, NOWRT
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8)
void main()
{
setup_adc(ADC_CLOCK_DIV_2);
//setup_pp(PMP_DISABLED);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_comparator(NC_NC_NC_NC);
delay_ms(5000);
while(1)
{
printf("AT");
printf(0x0d);
printf(0x1a);
delay_ms(5000);
}
}
---------- Post added at 08:52 ---------- Previous post was at 08:46 ----------
Hi ckshivaram sir,
I checked all as u say both responds to hyper terminal but not with each other i think i'm unable to send properly. Please tell me with a sample program means how can i send at command and after how can i send enter key or ctrlZ key via uC to module...