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.
Thanx for responding for the my code. So in this code, what i am trying to do is receiving the text like move,left right etc sent from the pc. So i have tried to receive it using pointer *rec. I have used the serial interrupt(indicated by 4) in keil c to receive the byte from SBUF register. After receiving the text completely, i have compared with the text like move which is content of pointer s.Likewise, Back is stored as string in pointer t. While(1) is done to make the program work forever and ever as embedded c does not have link with OS. While simulating in proteus why it does not respond to dc motor.
While(1) is done to make the program work forever and ever as embedded c does not have link with OS. what is the while (1) doing in the ISR!!!