Hi Corbet, have you tried changing your byte values to word, just to see if you are overloading your bytes as Dave suggested ?
You could make redundant variables and store your current var value as...
Type: Posts; User: Archangel; Keyword(s):
Hi Corbet, have you tried changing your byte values to word, just to see if you are overloading your bytes as Dave suggested ?
You could make redundant variables and store your current var value as...
Just 1 question . . . Does it work now, or do you still have the same problem ?
I think it's a good call, I want to think I bumbled around and had the same overrun problem when I first wrote code for servos. Problem is I have to learn everything several times before I can...
Well now, we never saw the transmitter code did we? You think he is sending data bytes of size greater than 255-60 and overflowing the byte array's bytes?
It probably isn't but in search for the ant queen, you kill a lot of ants.
Make sure to change the OSC as shown above, are you using crystals, or what ?.
Do you get bizarre behavior when you get...
Tell us about the power supplies and what you have done to suppress any noise from the power supply going to the PIC. You should have (MUST ?) a bypass capacitor right between the PICs power pins,...
Ok, well different theory,
try using a pullup resistor and change mode from 84 to 32852, it is still 9600 True but with open collector instead of driven high.
Try adding
DEFINE CHAR_PACING 1000 ...
Here is a shot in the dark.
You have not posted any config fuses in your code so I am free to assume you are allowing your code to use the Default configs which are located in the 16F84.inc file...
I am guessing you are powering the pics from the same supply as the servo. A little electric motor like that can generate some serious voltage (back EMF) and distribute it back into the power supply....