Permanent magnet brushless motors source program, and current double closed-loop speed control of brushless DC motor, position detection with Hall sensors, debugged, the effect is very good, waveforms and gaps in the theory is unlikely, but not DA output CCS from the oscilloscope can be used to view waveforms, I hope are helpful to students of DC Brushless motor.