- Joined Mar 6, 2020
Hi friends im also facing same isssue with atmega 16a help me plzRight now I am trying a simple code of calling by GSM sim900 using atmega16
MY SETUP:Rx and Tx pins of atmega board are connected to Tx and Rx of my GSM modem and also to my uart bridge which i connect to my PC(done by splitting the Rx and Tx pins)-This was done so i could know whether my AT commands were given to modem or not
AT commands appeared as i wanted in terminal(X-CTU I have Used) that means they were actually given to modem also(since i splitte the wires).But no call was made.However when i myself entered the AT commands During the same process I was succesful
#define F_CPU 12000000UL
#define BAUD 38400 //setting up baud rate
#define bd (int)(F_CPU/16/BAUD-1) //value of UDRR to be set
void command(char*a) //function to send a string using pointers
flush ISR (USART_RXC_vect) //flushing any type of echoes obtained
Can any one please help me why my atmega is unable to do so or is there any problem in my code?
Mod: Created your own Thread.E
Link to old thread.
Last edited by a moderator: