AG32 has a maximum main frequency of 248 MHz, contains 128KB SRAM and 1MB Flash, and also has 2K CPLD resources. By using the high-performance processor, rich peripherals and 2K CPLD resources of AG32 MCU, an efficient and stable sensorless BLDC control solution can be realized. By rationally designing the hardware interface, implementing advanced control algorithms and optimizing the software architecture, the strict requirements of mass production of washing machines can be met.
Hardware interface
- Main frequency and storage: High main frequency of 248 MHz and zero wait state execution from Flash ensure real-time performance and efficient processing capabilities. 128KB SRAM and 1MB Flash store control algorithms and operating data.
- Timer and PWM control: 5 advanced timers can generate accurate PWM signals to control BLDC motors. Advanced timers support multiple PWM modes and dead zone control, suitable for FOC algorithms.
- ADC and current sampling:3x12-bit ADC, each ADC has 17 channels and supports sampling rates up to 3M SPS. Connect the ADC input to the current sensor and BEMF detection circuit to ensure the accuracy of signal acquisition. Used for current sampling and back electromotive force (BEMF) detection to achieve accurate motor control and state monitoring.
- DAC output:2 DACs can be used for debugging or generating analog reference signals to assist motor control and state detection.
- 2K CPLD resources: Used to implement dedicated logic control, such as PWM signal generation, state machine implementation, hardware filter, etc., to reduce the burden on MCU and improve system efficiency.
Control algorithm (sensorless FOC algorithm)
- Support floating-point operations:AG32 has a built-in floating-point unit that supports complex mathematical operations to ensure the accuracy and efficiency of the FOC algorithm.
- Current control:Current sampling is performed through ADC, and the PWM signal is adjusted in real time to achieve precise current control and motor torque control.
- Back electromotive force (BEMF) detection:BRMF detection is performed using the ADC channel, combined with the FOC algorithm to achieve sensorless control and ensure low-speed and efficient control.
Communication interface
- CAN interface:Used for robust communication with the main control unit or other controllers to ensure coordinated operation of various parts of the system.
- UART, I2C and SPI interfaces:Realize communication with sensors, peripherals and host computers to transmit control signals and status data.
- Ethernet MAC and USB FS+OTG:Used for firmware upgrades, debugging and data transmission to ensure system flexibility and maintainability.
System monitoring and protection
- Watchdog timer:Realize system fault detection and recovery to prevent system freezes or abnormal operation.
- Dual-channel comparator:Used for overvoltage and overcurrent protection to ensure safe system operation.
- RTC:Record and manage operating time and status for easy maintenance and troubleshooting.