OK, I am trying to make condition based transmission from let say if 'A' is pressed in keyboard it wil show "jhdghgk" and if 'B' is pressed it should show "kjyhjkdqwefjgtjk" like this....
but the problem is that when i do this on pressing any of key it work but it should match the key to condition then it should show the result this is what i am asking...
I thought we were talking about a pic16f877a!! Where is the keyboard? Are you trying to send a message to the pic from a PC? If so what language did you settle on...
I thought we were talking about a pic16f877a!! Where is the keyboard? Are you trying to send a message to the pic from a PC? If so what language did you settle on...
OK, once more.....
i am sending data from PC to uC just single letter like 'A' and the uC will receive the data and test it in if cond and then only uC will send
OK, once more.....
i am sending data from PC to uC just single letter like 'A' and the uC will receive the data and test it in if cond and then only uC will send
You are not getting me!
i am saying everything is fine but i am not able to know why if cond is not working on pressing any key it work, but it should work/send data when only 'b' is pressed!
You are not getting me!
i am saying everything is fine but i am not able to know why if cond is not working on pressing any key it work, but it should work/send data when only 'b' is pressed!
You are not getting me! You have to test all the parts of your system separately. You have to test that the key is working. Test your code step by step.. are the functions working properly etc. be brave and creative.. you can figure it out!
You are not getting me! You have to test all the parts of your system separately. You have to test that the key is working. Test your code step by step.. are the functions working properly etc. be brave and creative.. you can figure it out!
Sound like you need help on debugging. What kind of hardware is that.. point to your previous post if you have already posted a schematic or description. How do you know that the system is not working? What the system should do when it is working?
Sound like you need help on debugging. What kind of hardware is that.. point to your previous post if you have already posted a schematic or description. How do you know that the system is not working? What the system should do when it is working?
there is only pic with UART in it, and PC connected with USB module.
at starting when i press any key in keyboard through terminal window it will send to PIC uC and code will test the pressed key and display only when if cond character is matched 'a' like this
I have told full story now you are asking what was that.. ??
everything is same....only i am sending data (single character) from terminal window..
there is only pic with UART in it, and PC connected with USB module.
at starting when i press any key in keyboard through terminal window it will send to PIC uC and code will test the pressed key and display only when if cond character is matched 'a' like this
If you are confident that your circuit works. Then all you can do is to strip your code down to minimum and start writing it up step-by-step. After each step you test it. When it stops working you have pin-pointed your problem.