cancel
Showing results for 
Search instead for 
Did you mean: 

BLDC using Hall-Sensors and the Standard Peripheral Libary

alexandernath9
Associate II
Posted on January 10, 2011 at 21:52

BLDC using Hall-Sensors and the Standard Peripheral Libary

2 REPLIES 2
Gigi
ST Employee
Posted on May 17, 2011 at 10:20

Ciao Alex,

you have already many helps for your issue.

First of all you have the motor control library that make use of standard library (or some time direct register access) to properly configure the timers for the PWM generation and for Hall sensor signal management.

For BLDC + HALL sensor managemenmt i refer to the STM8 MC library.

Although

the project file is not provided for the IDE that you are using you can import (or just analyse) the source code included in the MC library.

Other usefull sources of information are the esampre provided with the standard library, or with this other packages: ''

http://www.st.com/stonline/stappl/resourceSelector/app?page=resourceSelector&doctype=FIRMWARE&ClassID=1738

'', in which are present source code to configure the timers; but starting from the MC library is the suggested way.

I hope that these information can be useful to you.

Ciao

Gigi

Posted on May 17, 2011 at 10:20

Some code for BLDC and HallSensor: http://www.mikrocontroller.net/articles/Prog_bsp_timer_2_bldc_hall