I'm currently designing a simple project using a PIC to control the brightness of two separate LED's. Because they are power LEDs I need extra power management IC's in between but I have all that sorted already so you can just think about the PWM directly controlling the brightness.
My question is what is the simplest PIC I can use to do this easily? Ideally I would like to use a 8-pin PIC due to space constraints but no 8 pin PICs that I can see from Microchips selection tool have more than 1 PWM channel. I was looking at the Half-Bridge ability of the ECCP module, but I think I'm right in saying this would not be useful to me if I wanted both LEDs to be on over 50% duty cycle (70% and 90% for example).
So, given that the PICs entire life will be spent doing PWM and looking for 2 inputs to change, to change the duty cycle which could be done with interrupts, would the best way be to use the 1 PWM channel, and a 'software PWM' that I program as described in the sticky thread at the top. Would this work fine without being a total pain to program?
Any other thoughts or advice is greatly appreciated.
My question is what is the simplest PIC I can use to do this easily? Ideally I would like to use a 8-pin PIC due to space constraints but no 8 pin PICs that I can see from Microchips selection tool have more than 1 PWM channel. I was looking at the Half-Bridge ability of the ECCP module, but I think I'm right in saying this would not be useful to me if I wanted both LEDs to be on over 50% duty cycle (70% and 90% for example).
So, given that the PICs entire life will be spent doing PWM and looking for 2 inputs to change, to change the duty cycle which could be done with interrupts, would the best way be to use the 1 PWM channel, and a 'software PWM' that I program as described in the sticky thread at the top. Would this work fine without being a total pain to program?
Any other thoughts or advice is greatly appreciated.