Servo on portc

alpacaman

Member
I built a fairlly complicated circuit using a 28x. My mistake is not knowing what commands were available, or not available, on port-c before doing so. I have 2 servos connected to port-c only to now realize that the servo command wont work on port-c.

Has any one written code to control a servo on port-c. Your help is appreciated.
 

hippy

Ex-Staff (retired)
I suspect it's not going to be possible. You can set pins on Port C high or low and that's it. You can simulate the pulses servo's would expect by setting the pins high and low for the required amounts of time but that would get complex with two servos if you don't want any jitter. It could also prove difficult to do other processing while handling that servo timing.

The simplest thing may be to mark it up as a "learning experience", a mistake which won't be repeated in the future, and start again.
 
Top