Hi David, I did a quick program change.
I just extended the existing 6 standard pwm's to 12 and all compiles. In the sample program I am using pwm 3, 4, 5, 6, 9 and 11 since that is what the PIC16F1778 has on board so you may have changed the number for your PIC (that's why I made it up to 12). Did not test it yet but you can give it a try. I attached a zip-file but not sure if it is blocked or not. I will see if it works this weekend. If the zipfile does not work I can send it via wetransfer. Kind regards, Rob ________________________________ Van: [email protected] <[email protected]> namens Rob CJ <[email protected]> Verzonden: vrijdag 5 april 2024 18:51 Aan: [email protected] <[email protected]> Onderwerp: Re: [jallib] PWM modules in PIC16F177* family Hi David, When I took over the device file generation scripts of Rob Hamerling I also got all his - hundreds - of PIC samples and because of that I do have a PIC16F1778 which is of the same family and has 6 PWM's (three 10-bit and three 16-bit) so I could give it a try if I can extend the current PWM library with the 16-bit addition providing the same basic functionality. Not sure how long it will take but will start this weekend. Kind regards, Rob ________________________________ Van: [email protected] <[email protected]> namens David VB <[email protected]> Verzonden: vrijdag 5 april 2024 15:49 Aan: jallib <[email protected]> Onderwerp: Re: [jallib] PWM modules in PIC16F177* family To be honest, in my application, I need 6 PWM signals. Since they must be equivalent to one another, I will use some 16-bits modules but without those new features, and with a duty cycle defined with only the 10 MSB So, as far as I am concerned, there is no need for a specific 16-bit PWM library now, but it would be a nice addition to the lib, just to keep its attractiveness in the future and avoid a technical debt when more and more PIC's will implement these new modules. (The same goes for the ADCC module, the new CLB module) I cannot commit to write a specific library since I can never be sure to be ok with all of the rules of the style guide, not to be extensive in the funcitonnalities written, but I can offer to send here some libraries to serve as a starting point, if someone can review and amend them as needed. Kr, D. Le jeudi 4 avril 2024 à 19:12:22 UTC+2, Rob CJ a écrit : Hi David, In 2022 I added PWM5 and PWM6 like the previous pwm's. What is foreseen is what is requested 🙂 (and there is a need for it). So it can be straight forward to add the 10-bit PWM 9 and PWM 10 but not sure if there is a need for it. For the 16-bit I think we need a complete new library, something like pwm16_hardware.jal and add more features. That may take quite some time. Do you - or does anybody else - have plans to use the 16-bit pwm with all its nice features? Kind regards, Rob ________________________________ Van: [email protected] <[email protected]> namens David VB <[email protected]> Verzonden: woensdag 3 april 2024 23:14 Aan: jallib <[email protected]> Onderwerp: [jallib] PWM modules in PIC16F177* family Hi there, It appears that the PIC16F177* family have PWM modules named up to PWM12, which is not foreseen in Jallib Example: PIC16F1777 or 1779 have: PWM3, PWM4, PWM9, PWM10 : 10 bits PWM modules PWM5, PWM6, PWM11, PWM12 : 16 bits PWM modules (with more functionnalities as 10-bit modules, such as four offset modes, and different operation modes) Is there anything foreseen for those in Jallib ? Kind regards, David -- 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/ab0fbea9-025c-49bf-b37f-18159885fa2fn%40googlegroups.com<https://groups.google.com/d/msgid/jallib/ab0fbea9-025c-49bf-b37f-18159885fa2fn%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/0a1fcd7f-71a5-4350-be8f-8c4f19d17d5an%40googlegroups.com<https://groups.google.com/d/msgid/jallib/0a1fcd7f-71a5-4350-be8f-8c4f19d17d5an%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/GVXP195MB1637AAA978040122D51160CBE6032%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM<https://groups.google.com/d/msgid/jallib/GVXP195MB1637AAA978040122D51160CBE6032%40GVXP195MB1637.EURP195.PROD.OUTLOOK.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/GVXP195MB163782D393B2E28BE5F78E2AE6032%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM.
<<attachment: PWM_1_12.zip>>
