I am using PBP3 (Version 3.0.7.4)) and MCS (Version 5.0.0.5)
I am using PBP3 (Version 3.0.7.4)) and MCS (Version 5.0.0.5)
Thanks Richard.
I updated the versions of PBP3 and MCS and everything now compiles...
Cheers
Barry
VK2XBP
Having same idea, to control RGB led using PWM, but how you did it with 1 hardware channel PWM?
Great question! I don't know. I would suggest if you have 3 different targets (R + B + G) each requiring a different PWM DC%, you will need a PIC with 3 separate PWM channels.
And that appears to be a hard task - most MCUs as I've checked from datasheet, have "synchronised" PWM outputs, which mostly mirror each other, and also they all run same frequency....
Take look at SPWM from DT. Or better MIBAM.
Mike, that means a PIC should have different CCPxCON registers. As many as the different channels, so the user can define the duty of each independently.
For example, the 16F887 has two and 16F1939 has four CCPxCON registers.
Ioannis
Last edited by Ioannis; - 21st January 2020 at 15:04. Reason: typo
Bookmarks