marthoma
Junior Member level 3
- Joined
- Oct 15, 2014
- Messages
- 25
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 171
hiii....im working on sim908 with lpc2148 ....my problem is :my uart of lpc2148 is working fine and its sending characters(i checked dis wid hyperterminal) and my sim908 is also responding on hyperterminal to AT commands...however wen i send AT AND 0x0D now thru lpc2148 to sim908 its not responding back....
wat all cud be the reasons?i only have to attach carriage return ryt after AT??
my code gets stuck inside the get_char() where
cud sumone plss help me here....
also the proper response is <cr><lf>OK<cf><lf> ryt?
wat all cud be the reasons?i only have to attach carriage return ryt after AT??
my code gets stuck inside the get_char() where
Code:
char get_char()
{
while(!(U0LSR & 0x01));//Wait until UART0 gets sum char
return U0RBR;
}
cud sumone plss help me here....
also the proper response is <cr><lf>OK<cf><lf> ryt?