Hi,
I've been all over the internet and back and I've searched here and still haven't found an answer to this one.
I'm trying to control a servo using the PWM module of a PIC 16F627. According to what I can find most hobby servos have a neutral of about 1.5mS. But after doing the calculations given in the 16F62x data sheets (section 11.3.1) it seems I cannot get a PWM period of more than about 0.8 mS. That's with an 8-bit PR2 (at 255), a 20MHz Tosc, and a prescaler of 1, 4 or 16 (using 16). I've a feeling I'm missing something simple but I just can't find it.
Thanks in advance.
PIG80085
PS. Anyone know if it's possible / practical to control more than one servo independantly using one PWM module???
I've been all over the internet and back and I've searched here and still haven't found an answer to this one.
I'm trying to control a servo using the PWM module of a PIC 16F627. According to what I can find most hobby servos have a neutral of about 1.5mS. But after doing the calculations given in the 16F62x data sheets (section 11.3.1) it seems I cannot get a PWM period of more than about 0.8 mS. That's with an 8-bit PR2 (at 255), a 20MHz Tosc, and a prescaler of 1, 4 or 16 (using 16). I've a feeling I'm missing something simple but I just can't find it.
Thanks in advance.
PIG80085
PS. Anyone know if it's possible / practical to control more than one servo independantly using one PWM module???