Hello,
I am trying to send what I am calling a "device ID" to my PIC and have the PIC store it. The other half of this issue is that I am also writing a program in C that runs on on my PC that will accomplish this transaction. My expected results are I send an ID from the PC software and the PIC replies with the ID that it has received ("ID set to: 77). It does work perfectly the first time, however if I try to send a new ID, the PIC does not reply with ID only with "ID set to:". If I reset the PIC I can send in a new ID again, but only once.
Using the terminal application in Mikro C, I can send the ID, and resend the ID as much as I want without resetting the PIC.
My question for this discussion is should I be looking for problems in the code on the PC side or PIC side? Both are written in C, and my gut feeling is that its on the PC side since the terminal works, but why would resetting the PIC allow me to send a new ID Properly?
I can provide code if you like, but wont paste it now since this is more of a "where should I start" type of question.
I appreciate any thoughts and constructive advice.
Thanks,
George