Hi Hans, You discovered a limitation in some of the PWM libraries. For newer PICs some things have changed.
I modified 3 libraries to get it compiling again using your program but did not test this, see attachement. Can you include these libraries in the same directory as your main program, test it and see if it works? I can test it later this weekend but if you have tested it and it works I can skip that. If all is OK I will upload them the Jallib. Thanks. Kind regards, Rob ________________________________ Van: [email protected] <[email protected]> namens hans <[email protected]> Verzonden: woensdag 24 augustus 2022 20:34 Aan: jallib <[email protected]> Onderwerp: Re: [jallib] !6F15324 PWM RC5 and RC3 hello Rob,, Have tried long time but many( 23) errors. To much for this old chap. regards Hans Op dinsdag 23 augustus 2022 om 19:10:00 UTC+2 schreef [email protected]: Hi Hans, I did not see a sample file using two PWM's. I assume you can just include two PWM libraries and give it a try. Note that for this specific PIC you can use PWM3, PWM4, PWM5 and PWM6 since for this PIC they start at 3. I recently added libraries for PWM5 and PWM6 and sample programs for that. As a test I of your challenge I combined the two pwm's from one of the sample files by just copying the lines of pwm5 and change them into pwm6 so the behaviour for both leds is the same, see attached file. The compiler finds it OK but you need to test if it works for you (I did not test this) 🙂. Kind regards, Rob ________________________________ Van: [email protected] <[email protected]> namens hans <[email protected]> Verzonden: dinsdag 23 augustus 2022 13:57 Aan: jallib <[email protected]> Onderwerp: [jallib] !6F15324 PWM RC5 and RC3 Hello all. I am looking for an example to use the 16F15324 for two PWM motor dirver outputs. Is there any? regards Hans -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/5863d968-50c5-4e84-97d9-75ea6a9b41d0n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/5863d968-50c5-4e84-97d9-75ea6a9b41d0n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/9cd3c949-d591-450f-b607-a1b070a9930bn%40googlegroups.com<https://groups.google.com/d/msgid/jallib/9cd3c949-d591-450f-b607-a1b070a9930bn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/GVXP195MB163741E7DA0001802771F254E6729%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM.
pwm_common.jal
Description: pwm_common.jal
pwm_pwm3.jal
Description: pwm_pwm3.jal
pwm_pwm4.jal
Description: pwm_pwm4.jal
