cancel
Showing results for 
Search instead for 
Did you mean: 

UART communication issue

mushfiq
Associate II
Posted on October 06, 2016 at 06:30

is there any way so that i can know whether my uart is active or not ,i wanna send an AT Command to a gsm module such as ''AT+CCLK?'' in return of this command the GSM module will give the time and date from nearest gsm tower as reply to that AT Command, actually i want a function just like Serial.available()>0 in arduino. I'm using Keil 5 and a beginner so please help me out.

1 REPLY 1
Posted on October 06, 2016 at 14:15

You'll need to accumulate characters in a USART RXNE interrupt, and count them.

ie buffer[available++] = USART_ReadData

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..