Microchip E-Bike Tech Q&A - How to Divide Work for Real-Time Motor Control & Communication?

Q: Which MCU does Microchip use in E-Bikes, and how does it achieve the division of labor for real-time motor control and communication?

A: The current solution uses Microchip’s 4th-generation DSC products, such as the dsPIC33CK256MP505. However, the specific number of pins and peripherals used depends on customer requirements, while the MCU core remains the same. The dsPIC33CK has a main frequency of 200MHz (100 MIPS), and it only takes a little over a dozen microseconds to run a complete Field-Oriented Control (FOC) algorithm, leaving a large amount of idle time for communication tasks.


How to Divide Work for Real-Time Motor Control & Communication?

Microchip’s dsPIC33CK series (e.g., dsPIC33CK256MP505) is a type of Digital Signal Controller (DSC) that combines the general control capabilities of an MCU and the high-speed computing capabilities of a DSP, making it particularly suitable for real-time motor control.

Why Is a Single dsPIC33CK Sufficient?

  • The dsPIC33CK has a main frequency of 200MHz and a computing efficiency of 100 MIPS.
  • It only takes a bit over a dozen microseconds to run a complete FOC algorithm, which means the execution time occupancy rate of the control loop is very low, leaving a lot of idle time for handling other tasks.
  • Due to the short time occupied by the FOC algorithm, the MCU can handle both control and communication tasks within the same chip without the need for an additional coprocessor.

Motor Control System Block Diagram for Electric Bicycles (e-Bike)

Core Logic of the System (Block Diagram + Application Scenarios)

Functional Objectives

To achieve precise motor control of electric bicycles, covering modes such as manual, electric, and pedal-assisted. It supports efficient driving (FOC algorithm), short-term acceleration (field weakening technology), and energy recovery (regenerative braking), and is adaptable to complex scenarios such as urban commuting and hill climbing. In addition, it is equipped with on-board Flash for driving data recording.

Signal Flow (From Command to Motor Drive)

  1. Input Commands: Inputs from Throttle (accelerator/speed adjustment), Brake (braking), and Sensors (e.g., temperature sensor MCP9700A, Hall current sensor, and position sensors required for sensor-based FOC, which support Hall, magnetic encoder, inductive, resolver, etc.) are processed by the dsPIC33CK256MP505 DSC (Digital Signal Controller).
  2. Control Calculation: The DSC runs algorithms such as FOC and outputs PWM signals to the MIC4604 half-bridge gate drivers, which then drive the 6 MOSFETs to ultimately control the brushless DC (BLDC) motor.
  3. Power Supply and Communication: The MCP16331 Buck Regulator converts the 18-63V input to low voltage, and the MCP1754S LDO outputs 5V/3.3V to power the control circuit; the ATA6563 CAN FD transceiver enables high-speed communication (e.g., driving data, fault feedback).

More Content Related to FOC

Related Products:

More related Microchip E-Bike Tech Q&A: