is there a way to send a command to my pic like :
1235 from my pc and have the pic see the "1" and put the "235" value in a varibles place like out1 = 235, so that i could send a commannd to any output i have and have it put the value in the corresponding place, ex. 2134 = out2 value 134, 5123= out5 value 123, etc?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What program are you using on the PC to send the messages? If you're writing your own, it's easy to just send a number over the serial port and have the PIC receive it with the SerReceive command. If you're using HyperTerminal or similar you'll need to process the text on the PIC, which can be done but is a bit harder.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
is there a way to send a command to my pic like :
1235 from my pc and have the pic see the "1" and put the "235" value in a varibles place like out1 = 235, so that i could send a commannd to any output i have and have it put the value in the corresponding place, ex. 2134 = out2 value 134, 5123= out5 value 123, etc?
What program are you using on the PC to send the messages? If you're writing your own, it's easy to just send a number over the serial port and have the PIC receive it with the SerReceive command. If you're using HyperTerminal or similar you'll need to process the text on the PIC, which can be done but is a bit harder.
i will use vb6.