Hi Robert_d1968,
Since we only have a fragment of your code, it's hard to decipher what's going on.
When all else fails, go back to basic testing.
Disconnect whatever is connected to that pin and test again.
Place a led in circuit that you can turn on it it gets to a certain point in your program.
Use Do / Loop to break the program at a point in the program, and check that things are working to that point (turn the LED on), move the Do loop to another location, repeat the process until it fails, then you know where the fault is.
Debug from that point.
I notice that you Start Timer2, one line before the problem starts, this is associated with PWM output, try [b:ef22056511]not starting [/b:ef22056511]that.
Some things to try
Regards
Deanus
↧