Hi Jens,
What if I don't want to turn off CPU since I'm running a bunch of other things at the same time? Should I put _NOP after each loop? How many should I put?
The program is about sample two pins at the same time, and output two different PWM accordingly(for motor control). Now I can sample two channels, or I can output two PWM, but when I put them together, the motor stopped moving.
Thank you so much!
-Holly