Hemi345
Senior Member
Could someone elaborate on what this means:
I'm in the planning stages for a project to use PWM on 4 to 6 LEDs. The PWM would be used to change the RGB LEDs color and status lights. I want the capability to PWM them for dimming and appearance of 'pulsing' separately, if possible, so I'm looking at using either a 20M2 or 20X2. I'd go with the 20X2 with 4 of the LEDs on the HPWM-capable pins and the other two on the regular PWM pins if using them simultaneously is possible. I understand that the 20M2 can't operate HPWM in single mode so in that case I'd just PWMOUT for 4 LEDs and maybe blink the other two or something. I don't have any spare 20M2/X2 to test with and not finding a definitive answer simulating some test code in PE6.
Thanks
What are "2" and "1" referring to?hpwm can be used instead of, not at the same time as, the pwmout command on 2 (28/40 pin). However pwmout on 1 can be used simultaneously if desired. The <a href="/commands/servo">servo</a> command cannot be used at the same time as the hpwm command.
I'm in the planning stages for a project to use PWM on 4 to 6 LEDs. The PWM would be used to change the RGB LEDs color and status lights. I want the capability to PWM them for dimming and appearance of 'pulsing' separately, if possible, so I'm looking at using either a 20M2 or 20X2. I'd go with the 20X2 with 4 of the LEDs on the HPWM-capable pins and the other two on the regular PWM pins if using them simultaneously is possible. I understand that the 20M2 can't operate HPWM in single mode so in that case I'd just PWMOUT for 4 LEDs and maybe blink the other two or something. I don't have any spare 20M2/X2 to test with and not finding a definitive answer simulating some test code in PE6.
Thanks