pwm + shift register + tri-color LED
Tue May 08 2012, 01:57 pm
@ Miguelito
its looking like difficult to generating 3 different pwms using a shift registers
shift register output is controlled by the clock pin
if u change the clock frequency then it will change the frequency of all pwms
so it is not possible with shift registers
its better u change a micro controller that has sufficient pins
its looking like difficult to generating 3 different pwms using a shift registers
shift register output is controlled by the clock pin
if u change the clock frequency then it will change the frequency of all pwms
so it is not possible with shift registers
its better u change a micro controller that has sufficient pins
Tue May 08 2012, 02:22 pm
Nop, there's no 3 pwm.
And not with hardware pwm.
PWMing the OE pin only of the shift register might achieved my desire.
And not with hardware pwm.
PWMing the OE pin only of the shift register might achieved my desire.
Wed May 09 2012, 01:03 am
There are 3 tri-color LEDs actually ( I only show you one to simplify the situation) and needs 9 pins for them, and my mcu couldn't cater them all. And sooner, it will be 5 tri-color LEDS.
I think, i should use SPI protocol for this. What do you think?Miguelito
I think you should have mentioned the other LEDs in your first post.
What might work for one LED may not be expandable to five.
I think you should add another C8051F387 as a slave to drive the LEDs.
Wed May 09 2012, 07:10 am
Sorry for not mentioning that earlier in my post.
Anyway, thank you all for your time in answering my questions.
Anyway, thank you all for your time in answering my questions.
Thu May 10 2012, 01:21 am
you can use any small microcontroller to do this job.. not really a big controller.
Powered by e107 Forum System