[jallib] PWM versus enhanced PWM, oposite polarity output?

2021-08-01 Thread vsurducan
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

[jallib] [jallib build] buildbot success in jallib on jallib-standard

2021-08-01 Thread build
Hi guys, This is buildbot speaking. I have finished a build of jallib-standard on jallib. Buildslave for this Build: sebbot Build Reason: Build Source Stamp: HEAD Blamelist: rob.jansen Build succeeded! Logs are attached. sincerely, -The Buildbot -- You received this message because you are

[jallib] [jallib/jallib] 0df2bc: New serial library for USART 3

2021-08-01 Thread 'Rob Jansen' via jallib
Branch: refs/heads/master Home: https://github.com/jallib/jallib Commit: 0df2bcea7b98ca54a5dfd3717826e041e448e729 https://github.com/jallib/jallib/commit/0df2bcea7b98ca54a5dfd3717826e041e448e729 Author: Rob Jansen <12682653+robjanse...@users.noreply.github.com> Date:

Re: [jallib] PWM versus enhanced PWM, oposite polarity output?

2021-08-01 Thread Rob CJ
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. [cid:f064cb34-c8c2-4246-8deb-3145f912d8ce] Kind regards, Rob

Re: [jallib] PWM versus enhanced PWM, oposite polarity output?

2021-08-01 Thread 'Oliver Seitz' via jallib
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

Re: [jallib] PWM versus enhanced PWM, oposite polarity output?

2021-08-01 Thread vsurducan
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

Re: [jallib] PWM versus enhanced PWM, oposite polarity output?

2021-08-01 Thread vsurducan
Hi Kiste, as far as I read my version of k50 (PIC18F25k50) does not have ECCP it in 28 pin, I have to stick on my available stock of microcontrollers during the inexistence at this point (Farnell, TME) of too many options to buy immediately PIC microcontrollers. Thanks for your solution, I think I

Re: [jallib] PWM versus enhanced PWM, oposite polarity output?

2021-08-01 Thread vsurducan
Kiste, thanks for opening my eyes, PIC18F25k50 will do my job, it has indeed the ECCP, I didn't read correctly the notes 4 and 5 at pin descriptions. Thank you again. On Mon, Aug 2, 2021 at 8:36 AM vsurducan wrote: > Hi Kiste, as far as I read my version of k50 (PIC18F25k50) does not have >

Re: [jallib] PWM versus enhanced PWM, oposite polarity output?

2021-08-01 Thread 'Oliver Seitz' via jallib
Hi, if I download the datasheet (PIC18F2X_45K50-3684B.pdf), it says the chip has one ECCP and one CCP module. The output of CCP2, the simple one, is on pin 12 (pin 9 on QFN package) and can be relocated to pin 24 (pin 21 on QFN). The outputs A,B,C and D of CCP1 are on pins 13, 23, 22 and

Re: [jallib] PWM versus enhanced PWM, oposite polarity output?

2021-08-01 Thread 'Oliver Seitz' via jallib
You're very welcome :-) I want to correct myself about interrupts and jitter: I wrote about +/-2Tcy. That's the hardware part. But then there's JALs interrupt handling: If, say, serial_hw_int_cts is transmitting a string and has just finished one byte shortly before the timer overflows,