Hello,
I'll try this as soon as I can. I have configured correctly ANSEL0 and ANSEL1 and I'm using my pot on AN6 in order to have all of my inputs encoder on portA.
Now, if this doesn't work i'll post my code and everything.
However is there anyway to switch off my commutation sequence anytime using IF.THEN ? for instance :
Code:
main :
If switch=1 then
if encoder=1 then
PWM 1,2
else if encoder = 2
PWM 2,3 ==> I'm turning my Switch "Start/stop" here and I want the program to stop everything here and not wait the end of the loop ?
else if encoder= 3
PWM 4,3
Endif
Endif
Goto Main
Bookmarks