Hi Rob, I put the file I showed yesterday in a separate folder. Add the three files you posted. When I compile now I don't get any errors anymore. I can see that he uses the common, but I don't know which of the other two. I'm going to test the case tomorrow to see if it works. thanks again regards Hans
Op donderdag 25 augustus 2022 om 19:13:07 UTC+2 schreef [email protected]: > 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]. > 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/f93f310c-0c03-424a-83b1-6816eab0a66cn%40googlegroups.com.
