Brushless motor algorithm

At one time Atmel had several application notes documents available on their web site on interfacing/driving DC brushless motors, both sensored and sensorless. The ATmega8 chip is/was one of the most common uC chips used in this kind of application.