We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi! i am new to this forum. But still i am sure that this is the place where i could solve the problem regarding my code written in keil c.
Actually, I am working with the voice controlled project. I am sending the speech that has been converted to text through Usb to rs232c cable to p3.0 port of Atmel AT89c51 microcontroller. Now, I am controlling the microcontroller using the keil c. So, I need to receive the text serially using pointers or any other mechanism and the extracted word shoud be compared to either of the commands like right, left,stop,back and provide the appropriate logigic values to motor driving circuit to control the motor. So i have worked with this keil for long time but still i am not getting the respose from the microcontroller side toward the motor driving circuit.
So please help me in moving my project forward. cheers.
First of all thanks for providing those details of c language together with the fully explained examples. I wanted to ask about a little bit confusing part is that how can i extract the character serially from port 3.0 using the get function. In the given example, i could understand what u were really trying to do. Taking the input our self using the scanf and comparing the strings with strcmp and strcpy is possible easily. In my context, I need to extract the input not by scanf function,instead i need to extract the characters from the text coming serially from port 3.0. So, my main thing is extracting the text from the port and inorder to extract i need to remain in the loop using pointer or array of characters. Then after that only i can use the functions like strcpy and strcmp. Without extracting the text, i can't perform n use string handling functions.
So it would b better if u provide a interrupt type example extracting the text from the serial port.