中国电子技术网

设为首页 网站地图 加入收藏

 

[原创] Cypress PSoC 4 MCU可配置平台马达控制解决方案

关键词:Arm Cortex-M0+ MCU PSoC

时间:2020-01-21 10:53:08       来源:中电网

Cypress公司的PSoC® 4 MCU是可升级和可配置的平台架构,具有Arm® Cortex™-M0+ CPU,是可编程嵌入系统控制器,包括有可编程和可配置模拟和数字区块以及灵活自动布线.PSoC 4100S+是PSoC 4平台架构的一员,组合了微处理器和标准通信和定时外设,容性触模检测系统(CapSense),具有业界最好的性能,可编通用连续时间和开关电容模拟区块以及可编程连接性.PSoC 4平台的32位MCU子系统的Arm Cortex-M0+ CPU工作频率48MHz,单周期乘法器.集成了有读加速器的多达128KB闪存,多达16KB SRAM和8路DMA可编模拟引擎.此外,还集成了两个运算放大器,12位1Msps SRA ADC,单斜率10位ADC,两个电流DAC(IDAC)以及两个低功耗比较器,主要用在马达控制.本文介绍了PSoC® 4 MCU主要特性,框图,以及马达控制评估板CY8CKIT-037主要特性,无传感器马达控制代码案例框图,单个并联无传感器FOC马达控制代码案例框图和步进马达控制代码案例框图,评估板CY8CKIT-037硬件框图,电路图,材料清单和PCB设计图.

PSoC® 4 is a scalable and reconfigurable platform architecture for a family of programmable embedded system controllers with an Arm® Cortex™-M0+ CPU. It combines programmable and reconfigurable analog and digital blocks with flexible automatic routing. PSoC 4100S Plus is a member of the PSoC 4 platform architecture. It is a combination of a microcontroller with standard communi-cation and timing peripherals, a capacitive touch-sensing system (CapSense) with best-in-class performance, programmable general-purpose continuous-time and switched-capacitor analog blocks, and programmable connectivity. PSoC 4100S Plus products will be upward compatible with members of the PSoC 4 platform for new applications and design needs.

PSoC® 4 MCU主要特性:

32-bit MCU Subsystem
■48-MHz Arm Cortex-M0+ CPU with single-cycle multiply
■Up to 128 KB of flash with Read Accelerator
■Up to 16 KB of SRAM
■8-channel DMA engineProgrammable Analog
■Two opamps with reconfigurable high-drive external and high-bandwidth internal drive and Comparator modes and ADC input buffering capability. Opamps can operate in Deep Sleep low-power mode.
■12-bit 1-Msps SAR ADC with differential and single-ended modes, and Channel Sequencer with signal averaging
■Single-slope 10-bit ADC function provided by a capacitance sensing block
■Two current DACs (IDACs) for general-purpose or capacitive sensing applications on any pin
■Two low-power comparators that operate in Deep Sleep low-power modeProgrammable Digital
■Programmable logic blocks allowing Boolean operations to be performed on port inputs and outputsLow-Power 1.71-V to 5.5-V Operation
■Deep Sleep mode with operational analog and 2.5-mA digital system currentCapacitive Sensing
■Cypress CapSense Sigma-Delta (CSD) provides best-in-class signal-to-noise ratio (SNR) (>5:1) and water tolerance
■Cypress-supplied software component makes capacitive sensing design easy
■Automatic hardware tuning (SmartSense™)LCD Drive Capability
■LCD segment drive capability on GPIOsSerial Communication
■Five independent run-time reconfigurable Serial Communication Blocks (SCBs) with re-configurable I2C, SPI, or UART functionality
Timing and Pulse-Width Modulation
■Eight 16-bit timer/counter/pulse-width modulator (TCPWM) blocks
■Center-aligned, Edge, and Pseudo-random modes
■Comparator-based triggering of Kill signals for motor drive andother high-reliability digital logic applications
■Quadrature decoderClock Sources
■4 to 33 MHz external crystal oscillator (ECO)
■PLL to generate 48-MHz frequency
■32-kHz Watch Crystal Oscillator (WCO)
■±2% Internal Main Oscillator (IMO)
■32-kHz Internal Low-power Oscillator (ILO)True Random Number Generator (TRNG)
■TRNG generates truly random number for secure key gener-ation for Cryptography applicationsCAN Block
■CAN 2.0B block with support for Time-Triggered CAN (TTCAN)Up to 54 Programmable GPIO Pins
■44-pin TQFP (0.8-mm pitch), 48-pin TQFP (0.5-mm pitch), and 64-pin TQFP normal (0.8mm) and Fine Pitch (0.5 mm) packages
■Any GPIO pin can be CapSense, analog, or digital
■Drive modes, strengths, and slew rates are programmable PSoC Creator Design Environment
■Integrated Development Environment (IDE) provides schematic design entry and build (with analog and digital automatic routing)
■Applications Programming Interface (API) component for all fixed-function and programmable peripherals Industry-Standard Tool Compatibility
■After schematic entry, development can be done with Arm-based industry-standard development tools

图1.PSoC® 4 MCU框图

马达控制评估板CY8CKIT-037

The CY8CKIT-037 is used for PSoC 4 solution evaluation for motor control application. The kit supports BLDC (BrushLessDirect Current) motors, PMSM (Permanent Magnetic Synchronous Motors) and stepper motors. We provide example projects including single-shunt and sensorless FOC (Field Oriented Control), sensored BLDC control, sensorless BLDC control and stepper motor control example projects.

CY8CKIT-037 Evaluation Kit Overview

The motor control system can be separated into two parts: the driver board and the controller board. The CY8CKIT-037 Motor Control EVK is the driver board, which contains the DC/DC power circuit, dual H-bridge circuit, motor current and bus voltage sampling and processing circuit, protection circuit, user configuration circuit, and connectors to the controller board. The controller board receives the signals, implements the proper algorithm to process them, and then generates control signals to the driver board to run the motor. Figure 3-1 shows the EVK board and its general description. CY8CKIT-037 EVK is the driver board; the CY8CKIT-042 kit works as the controller board. They are interfaced with Arduino-compatible connectors.

图2.马达控制评估板CY8CKIT-037外形图

图3.CY8CKIT-037 EVK插入CY8CKIT-042 Pioneer Kit图例

图4.无传感器马达控制代码案例框图

图5.单个并联无传感器FOC马达控制代码案例框图

图6.步进马达控制代码案例框图

BLDC马达控制的PSoC 4解决方案

Easily design different BLDC motor control systems
Reference design: supports simple to advanced BLDC motor implementations;  including FOC (Field Oriented Control), sensored and sensorless BLDC motor control  implementation
Kit: one development kit to prototype four different BLDC motor control techniques
Tool: PSoC Creator IDE allows concurrent hardware and software design
Reduce cost with the most integrated BLDC motor control solution
PSoC 4 integrates MCU and opamps
PSoC 4 operating range of 1.71-5.5V eliminates the need for an onboard regulator
PSoC 4 solution simplifies dual shunt FOC design by eliminating one current shunt and one opamp
Simplify design of advanced motor control systems
The solution provides the advanced FOC (Field Oriented Control) algorithm
PSoC 4 enables reliable 5V design without external components
Perform hardware-based commutation using high reliability programmable hardware to offload CPU

评估板CY8CKIT-037包括:

Motor Control EVK board
AC-DC 24 V/2.0 A power adapter
Screwdriver
A BLDC motor (BLY172S-24V-4000) with sinusoidal back electromotive force
USB-A to mini-B Cable
Configuration Jumpers
Fuse
Quick start guide

图7.评估板CY8CKIT-037硬件框图

图8.评估板CY8CKIT-037电路图(1)

图9.评估板CY8CKIT-037电路图(2)

图10.评估板CY8CKIT-037电路图(3)

图11.评估板CY8CKIT-037电路图(4)

图12.评估板CY8CKIT-037电路图(5)

图13.评估板CY8CKIT-037电路图(6)
评估板CY8CKIT-037材料清单:




无负载元件表:


图14.评估板CY8CKIT-037 PCB布局图(1):顶层

图15.评估板CY8CKIT-037 PCB布局图(2):底层
详情请见:
https://www.cypress.com/file/141156/download
https://www.cypress.com/file/458026/download
以及https://www.cypress.com/file/396611/download
CY8CKIT-037 MOTOR CONTROL EVK Schematic.pdf
002-20489_PSOC_4_PSOC_4700S_FAMILY_DATASHEET_PROGRAMMABLE_SYSTEM-ON-CHIP_PSOC.pdf
002-19966_PSOC_R_4_PSOC_4100S_PLUS_DATASHEET_PROGRAMMABLE_SYSTEM-ON-CHIP_PSOC.pdf
CY8CKIT-037 Board Design Files.zip
CY8CKIT-037_PSoC_4_Motor_Control_Evaluation_Kit_Quick_Start_Guide.pdf

  • 分享到:

 

猜你喜欢