Quote Originally Posted by Kenjones1935 View Post
Bed time here on the east coast.

I tried both
OSCCON = %01110111
and
OSCCON = %01110001

I got the PIC to read the PWM signal from the radio channel 3 by doubling the threshold for differentiation. I can toggle between PIC and radio control.

But I have not been able to get the HPWM to behave. I tried using the original duty cycle. This made the wheels go backwards very fast no matter what was in the HPWM command.
did you add :

DEFINE OSC 8

to your code somewhere near the top?
Otherwise the PIC thinks you're still running at the default 4MHz.


steve