Hi, LongJie,
关于PWM分辨率,对于KV31, PWM驱动时钟是BUS CLOCK, 只有40MHz, 周期是0.025us. 如果PWM频率是200Khz, 则分频数是200, 分辨率只有不到8 bits.
我推建你用KV5x 或 KV4x 系列, 其PWM 模块用eFlexPWM, 它的特点是可以用32倍小数分频。 KV4 PWM可以达到260ps的分辨率。
The Kinetis KV4x MCU family is a member of the Kinetis V
series and provides a high-performance solution for 3-phase
BLDC, PMSM and ACIM motor control as well as Digital Power
Conversion. Built upon the ARM® Cortex®-M4 core operating at
150 MHz with DSP and floating point unit, features include; dual
12-bit analog-to-digital converters with 240ns conversion time,
up to 30 PWM channels for support of multi-motor systems,
eFlexPWM module with 260ps resolution for digital power
conversion applications, programmable delay block, memory
protection unit, dual FlexCAN modules and 64 to 256 KB of flash
memory. KV4x MCUs are offered in 48LQFP, 64LQFP, and
100LQFP packages. All Kinetis V series MCUs are supported by
a comprehensive enablement suite from Freescale and thirdparty
resources including reference designs, software libraries
and motor configuration tools.
这是KV系列的website:
ARM Cortex-M0+/M4/M7 Cores|Kinetis V MCUs|NXP
BR
XiangJun Rong