After solving my power issues on the axon
I have a programming question.
I use all the time the cbi and sbi functions to clear and set bits, and they seem to work.
But in this code:
The sbi doesn't work.
I call the LeftWheellBackON() and my encoder is instructed to turn left motor ON (back direction). Then If I cal lLeftWheellBackOFF(), the motor doesn't stop. My program continues normally, but the pin 1 is high....
I tried the commented functions also... I switch to portC 7, but the same occurs...
The PWM works fine turning on and off, and i use it for front motion.
Any ideas ??