UART communication issue
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-10-05 9:30 PM
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.
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-10-06 5:15 AM
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..
Up vote any posts that you find helpful, it shows what's working..
