Another thought. You can even use the serial communicator (no ICD) and use an USART interrupt routine that will do something you ask.
Let's make things more clear by using an example.
Let's say i want to change a,b,c parameter while the program is running. With serial communicator i'll send a specific start character, then the parameter i want to change. let's say UUCHANGEA#120
in the interrupt routine i'll write something like
Code:
HSERIN [WAIT("CHANGE"),VarToBeChange,ValueToBeChange)
Select case VarToBeChange
CASE "A" : a=ValueToBeChange
CASE "B" : b=ValueToBeChange
CASE "C" : c=ValueToBeChange
END SELECT
By sending UUCHANGEA#120 , the a Variable is suppose to be equal to 120. Read the Serial Communicator help on that (under Transmit windows>> Parse control character) Really handy sometimes.
But be aware of the latency of your whole program... maybe a bigger amount of UU "Header" will be usefull. OR simply send something then wait fow the PIC question... as you wish.
HTH
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks