Discussion in "8051 Discussion Forum" started by    Miguelito    Apr 26, 2012.
Tue May 08 2012, 01:57 pm
#11
@ 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
Tue May 08 2012, 02:22 pm
#12
Nop, there's no 3 pwm.
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
#13


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
#14
Sorry for not mentioning that earlier in my post.

Anyway, thank you all for your time in answering my questions.
Thu May 10 2012, 01:21 am
#15
you can use any small microcontroller to do this job.. not really a big controller.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am
ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm
Robertgurse
Wed Apr 24 2024, 02:43 pm
Richardedils
Wed Apr 24 2024, 04:07 am
Malcolmaccek
Wed Apr 24 2024, 01:21 am