Hi members of jallib, I have a problem. I will create a 50Hz PWM signal with a 16f726 of Microchip. In my project i will lead up a servo. A servo used a PWM of 50Hz (20ms) and a puls duration of 1,5 to 2,5ms. How can i create this signal with a 16f726? The minimum frequenty of a PWM signal is 244Hz? I must use a external crystal with a lower frequenty?
Here is my code: include 16f726 -- This setup uses the internal oscillator pragma target OSC INTOSC_NOCLKOUT -- HS crystal or resonator pragma target clock 1_000_000 -- oscillator frequency pragma target WDT disabled -- no watchdog include delay include pwm_hardware -- Configureer PWM -- pin_ccp1_direction = output pin_CCP2_RC1_direction = output pwm_max_resolution(16) pwm_set_frequency(244) pwm1_on() pwm2_on() I hope you can help me, Many tanks, Jan Willem -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
