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]<mailto:[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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/GVXP195MB1637D684E79864A85544DAF9E6709%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM.

Attachment: 16f18323_pwm5_pwm6_led.jal
Description: 16f18323_pwm5_pwm6_led.jal

Reply via email to