Can a DC motor be controlled with PWM while micro controller execute other operations?

Thread Starter

thar07

Joined Jan 3, 2015
71
Can a DC motor be controlled with PWM while micro controller execute other operations?


I want to run the DC at a constant speed ( Using PWM,30% duty cycle while micro controller doing other things.
 

tshuck

Joined Oct 18, 2012
3,534
Yup.


If you want to ask if a specific microcontroller can generate a PWM signal in hardware, thus freeing the processor to execute other instructions, a part number is in order - or, you can do what the rest of us will do and look at the datasheet.
 

MaxHeadRoom

Joined Jul 18, 2013
28,698
I am more familiar now with the Picmicro line, they have ECCP modules which are specific to PWM motor control, where several other modules or processes can operate simultaneously.
Max.
 

GopherT

Joined Nov 23, 2012
8,009
how?
Can I do with it 8051 ?
The 8051 does not have an on board Pwm module. You will have to find a different Microcontroller or bit-bang a Pwm. If you use the timers on the 8051, you can have a few hundred instruction lines between interupts to adjust the Pwm delays.
 
Top