Hi i'm a beginner in MCUs world . i'm facing some issues ... in LPC17XX datasheet there are 6-output general purpose PWM available in LPC1768 I'm planning to use 7 PWM pin to control the speed of 7 BLDCs by ESCs but i need one more PWM pin .(i need them separately)
sometimes it happen that some more pin of a kind are required separately(i mean asynchronous) do you have any idea how to solve this problem ? by the way this micro has one specialized motor control PWM can i use it for 7th one ? i may also need some more PWM pins for 2 or 3 DC motors (synchronous) .
I've found out that one expanding way is using multiplexers for synchronous buses . one more way that i saw pple used with arduino was Latch method and shift register method ( in this method they use 74Hc595 ).... but they have their own difficulty ....
Because PWM is a hardware feature of the chip, you cannot change it.
If you need more pins with hardware PWM capability, then you will just have to search for a different chip which has that hardware.
Or you can add external hardware; particularly for motor control, there are chips which can do the PWM for you...
Or you may be able to do the PWM in software - eg, using a timer interrupt to give the timing
can you suggest some chips for PWM control of motor as you mentioned in HARDWARE expansion?
something like ICL8038 ?
Have a look at LPC1549, in the 100 pin QFP package I'm using 24 PWM outputs (using the SCT blocks)
you are right but changing the chip is actually cleaning the problem itself not solving it .
Having other people doing the studying is not learning...
Sometimes solving the problem is about picking the right part, not hogtying yourself to decisions that complicate later ones..
Eh????
But your problem is that fact that your chip has insufficient PWM pins for your requirement.
So you chose the wrong chip!
As explained, there is no way to change that; so choosing a different chip - which does meet your requirements - is the solution to your problem!
IF U CANT CHANGE HOUR CHIP ADD ANOTHER SO U GET MORE PWMS. JUST NEED SOMETHING LIKE I2C OR SPI OR PARRALEL (HA HA) SO THE CHIPS TALK TO EACH OTHER.