- This topic has 2 replies, 3 voices, and was last updated 10 years, 1 month ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › RECEIVE ARRAY OF DATA THROUGH UART
Hi, Friends!
Actually I am doing one Project Based on Fingerprint Module. For this, I am facing problem on receiving the data in packet format from module.
The array of data from the module is unable to store in an array register. Only the first value is storing.
If any one have the Embedded C coding for receiving the array of data through UART, Kindly inform me or else guide me.
Have a Good Day!
Regards
Y Venkateswar Rao
Email: [email protected]
Hi,
One important thing that you need to take care when you try to store the data coming from uart to an array is that, the time taken to read a byte and store in in the array location should be less than the time period with which the uart send consecutive bytes.
Remove all unnecessary delays and it will work fine. Suggest you to post the code snippest here for better help.
try to receive characters from UART in interrupt mode.
whenever data arives- interrupt generated- and in ISR you store data in next array position