3 phases PWM code with 8051
Discussion in "8051 Discussion Forum" started by madengue Mar 9, 2015.
Mon Mar 09 2015, 02:02 am
Hi, can somebody tell me how to generate three PWM for a BLDC motor(3 phases) with any 8051 microcontroller(Atmel, Aduc, ...)? I've choosen DRV8332 to drive the motor.
Thanks in advance.
Charly
Thanks in advance.
Charly
Tue Mar 10 2015, 08:05 am
It looks complicated
Any advice we can give will probably be quite basic.
Start by choosing anything but an 8051, as it has no PWM hardware.
Have a look for other 8 bit micros from other families that have at least
3 PWM modules.
Check what programming software you can get hold of
and if any friends etc have experience with it.
What are you using the motor for ?
Any advice we can give will probably be quite basic.
Start by choosing anything but an 8051, as it has no PWM hardware.
Have a look for other 8 bit micros from other families that have at least
3 PWM modules.
Check what programming software you can get hold of
and if any friends etc have experience with it.
What are you using the motor for ?
madengue like this.
Wed Mar 11 2015, 10:16 am
As Phil said, 8051 without hardware PWM may not be able to perform as good as you need. To get started with implementation logic, Here is a link where three physical PWM channels of STM32 micro are used to control motor driver. His design uses sensor based motor control you can try with sensor less and see how it goes.
http://web.stanford.edu/class/ee152/projects/f13/stuart_wu/firmware.html
http://web.stanford.edu/class/ee152/projects/f13/stuart_wu/firmware.html
Powered by e107 Forum System