Microchip logo
  • All
  • Products
  • Documents
  • Applications Notes

AN899

Title:
Brushless DC Motor Control Using PIC18FXX31 MCUs
Name:
AN899
Date:
03/14/2004
Author:
Padmaraja Yedamale
Description:
The PIC18F2331/2431/4331/4431 family of microcontrollers
have peripherals that are suitable for motor
control applications. These peripherals and some of
their primary features are:
• Power Control PWM (PCPWM)
- Up to 8 output channels
- Up to 14-bit PWM resolution
- Center-aligned or edge-aligned operation
- Hardware shutdown by Fault pins, etc.
• Quadrature Encoder Interface (QEI)
- QEA, QEB and Index interface
- High and low resolution position
measurement
- Velocity Measurement mode using Timer5
- Interrupt on detection of direction change
• Input Capture (IC)
- Pulse width measurement
- Different modes to capture timer on edge
- Capture on every input pin edge
- Interrupt on every capture event
• High-Speed Analog-to-Digital Converter (ADC)
- Two sample and hold circuits
- Single/Multichannel selection
- Simultaneous and Sequential Conversion
mode
- 4-word FIFO with flexible interrupts
In this application note, we will see how to use these
features to control a Brushless DC (BLDC) motor in open
loop and in closed loop. Refer to the Microchip application
note, “AN885, Brushless DC (BLDC) Motor
Fundamentals” (DS00885), for working principles of
Brushless DC motors and basics of control. Also, to
obtain more information on motor control peripherals and
their functions, refer to the PIC18F2331/2431/4331/4431
Data Sheet (DS39616).
Keywords:
BLDC Motor, Motor Control, PIC18FXX31, Open-loop Control, Closed Loop Control
 
Application Notes & Source Code
 Last Updated
Size
 
  AN899
  03/14/2004
  607KB
  AN899 Source Code - Brushless DC Motor Control Using PIC18FXX31 MCUs
  02/22/2005
  37KB
Silicon Products