Some times program misbehaves not sure if using variables co
Posted: Thu Feb 07, 2013 6:46 pm
Recently wrote need program to control reel using 16f887 (upgrade path from 16f877a) but though Ithought I had it perfected, sometimes on start up it runs motor without being able to control it from knobs and switches.
wanted to see if someone would look at my code and see if I am doing any fundamental mistakes.
The 2 things i see it do occasionally is either run undo high or undo low which runs motor in reverse (1 second) to kick out drive train and other times it runs uncontrollably and the only control which seems to function is the off switch.
(Although when it does behave this way it never is not engaged in low or high speed, (solenoid activated) and direction relay is not energized to make reel pull. so it doesn't seem to pose a danger but I need to cure it!
wanted to see if someone would look at my code and see if I am doing any fundamental mistakes.
The 2 things i see it do occasionally is either run undo high or undo low which runs motor in reverse (1 second) to kick out drive train and other times it runs uncontrollably and the only control which seems to function is the off switch.
(Although when it does behave this way it never is not engaged in low or high speed, (solenoid activated) and direction relay is not energized to make reel pull. so it doesn't seem to pose a danger but I need to cure it!