Page 1 of 1

Set First PWM as 'PWM Channel 1'

Posted: Sun Sep 08, 2013 11:02 am
by medelec35
When First PWM component is added then can it default to 'PWM Channel 1' and not 'PWM Channel 2'
Then perhaps the next added PWM component can be automatically set to 'PWM Channel 2' but still allow manual channel selection if necessary.

Re: Set First PWM as 'PWM Channel 1'

Posted: Mon Sep 09, 2013 12:23 pm
by Benj
Hi Martin,

This should be easy enough to do. Would you want the second PWM to always default to channel 2 or should it first check to see if the first PWM uses channel 1? This may be a little more involved.

Re: Set First PWM as 'PWM Channel 1'

Posted: Mon Sep 09, 2013 12:40 pm
by medelec35
Benj wrote:ould you want the second PWM to always default to channel 2 or should it first check to see if the first PWM uses channel 1? This may be a little more involved.
Hi Ben,
perhaps if Ch1 not in use you could still have ch2 default to Channel 2.
Reason is logically, if to deliberately use CCP2 and not ccp1, then I believe there should be a reference to the number 2 rather than Reference to channel 1.

If you think about it as a user and not developer, would would your preference be?