Thx Rob, the bridge mode (enhanced CCP) works only for a 40 pin device, I have a 28 pin device on my board. Enhanced CCP is available only on large size microcontroller. :( Almost all 28 pin microcontrollers suffer from this issue (PIC18F25k50, etc.)
Since I need two signals with opposite phases, 50% duty cycle, whose frequency should be programmable between 1KHz and 2KHz I think they can be generated in compare mode...or perhaps in software. I also need to trigger an ADC read during the high level of those pulses from time to time. On Sun, Aug 1, 2021 at 2:17 PM Rob CJ <[email protected]> wrote: > Hi Vasile, > > Not sure if I understood you correctly. If you want the PWM signals to be > exactly the same but only inverted you can use the bridge mode for one of > the PWM's that is when one output goes high the other goes low. > > > > > Kind regards, > > Rob > > ------------------------------ > *Van:* [email protected] <[email protected]> namens vsurducan > <[email protected]> > *Verzonden:* zondag 1 augustus 2021 10:14 > *Aan:* [email protected] <[email protected]> > *Onderwerp:* [jallib] PWM versus enhanced PWM, oposite polarity output? > > Hi all, > PIC18F2550, 28pin PIC device has only the PWM implemented, the enhanced > PWM is available on 40/44pin devices only. However, If I want on a 28pin > PIC two PWMs running at the same frequency, with the same duty-cycle, how > can I generate one active high and one active low PWM signals without using > any external inverter? No deadband between the output signals is required. > Any experience is appreciated. > thank you! > > -- > 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/CAM%2Bj4qvHSZrsUtoF_1GcDrNS2_mup_hc5ZbYOuQu4uGw5TYuAQ%40mail.gmail.com > <https://groups.google.com/d/msgid/jallib/CAM%2Bj4qvHSZrsUtoF_1GcDrNS2_mup_hc5ZbYOuQu4uGw5TYuAQ%40mail.gmail.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/AM0PR07MB624142E76C9FF412EBE22FC5E6EE9%40AM0PR07MB6241.eurprd07.prod.outlook.com > <https://groups.google.com/d/msgid/jallib/AM0PR07MB624142E76C9FF412EBE22FC5E6EE9%40AM0PR07MB6241.eurprd07.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/CAM%2Bj4qstLOMHMLtJcLLEfywQ_%2BTYOWzEUCkLtghwrskyk%3DO%3DAg%40mail.gmail.com.
