Hi!

Well... almost all 28pin? Chips with suffixes like k20, k22, k50, k80, j11, 
j13, j50 and j80 do have ECCP, chips with suffixes like q40, q41, q43, q83, 
q84, k42, k83 and numerous more have CWG and/or CLC modules, which both allow 
the generation of those signals using a simple PWM. 


With the PIC18F2550, I only have one idea... Externally feed the pmw signal 
back to pins A0 and A1, set the CVRef module to somewhere in the middle, set 
comparator mode 0b110, and set one of the CxINV bits. Then you have the 
symmetric signals on C1out and C2out. It's not the most elegant solution, I 
admit...

Greets,
Kiste



Am Sonntag, 1. August 2021, 14:58:43 MESZ hat vsurducan <[email protected]> 
Folgendes geschrieben: 





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.
> 
> 
> 
> 
> -- 
> 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.
> 


-- 
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.

-- 
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/592117056.1109097.1627829331026%40mail.yahoo.com.

Reply via email to