PIC18FXX39
DS30485A-page 114
Preliminary
2002 Microchip Technology Inc.
14.3
Software Interface
A sine table, stored in the ProMPT kernel, is used as
the basis for synthesizing the DC bus using the PWM
modules. The table values are accessed in sequence
and scaled based on the frequency or the speed at
which the motor is intended to run. The intended fre-
quency input can be from an A/D channel or a digital
value.
Parameters in the ProMPT modules can be accessed
using the pre-defined Application Program Interface
(API) methods. A list of the APIs is given in
For example, to run the motor at 40 Hz, the user would
invoke the PromMPT_SetFrequency API:
i = ProMPT_SetFrequency(40);
where i is an unsigned character variable. In this case,
if i = 0 on return, the command has been successfully
executed. If the frequency input is out of range, or if
there is an error in setting the frequency, i is returned
with a value of FFh.
Similarly, to check the frequency set by the ProMPT
kernel, use the ProMPT_GetFrequency API:
i = ProMPT_GetFrequency(void);
where i is an unsigned character variable. Upon return
from the ProMPT kernel, i will contain the frequency
value in the ProMPT kernel.
14.3.1
THE V/F CURVE
The ProMPT kernel contains a default V/F curve stored
in memory. The default curve is linear, as shown in
Figure 14-2. Table 14-1 shows the data points used to
construct the curve.
Users may require a different V/F curve for their appli-
cation, based on the load on the motor, or based on the
characteristics of the motor used. The curve can be
changed in the application program using the API
method SetVFCurve(X,Y), where X is the frequency
and Y is the level of modulation of the DC bus voltage.
As a rule, in customizing the curve, the input frequency
corresponding to the point on the V/F curve that gives
100% modulation should match the motor’s rated fre-
quency. Similarly, full modulation should occur at the
motor’s rated input voltage. (See Figure 14-2 for
details.)
Examples of the characteristics for V/F curves for typi-
cal motor applications are shown in Section 14-2
14.3.2
PARAMETERS DEFINED BY THE
ProMPT API METHODS
Frequency: The frequency (in Hz) of the supply
current for steady state motor operation.
Modulation: The level of modulation (in percentage)
applied to the DC supply voltage by the PWM through
the H-bridge to produce AC drive current.
Acceleration rate: The rate of increase of motor
speed, achieved by ramping up the supply frequency.
Expressed in Hz/s.
Deceleration rate: The rate of decrease of motor
speed, achieved by ramping down the supply
frequency. Expressed in Hz/s.
Boost: The mode for starting a stopped motor by vary-
ing the supply current frequency and modulation until
steady state speed is reached. Boost is defined in
terms of a frequency, a starting and ending modulation,
and a time interval for the transition between the two.
PWM Frequency: The sampling rate (in kHz) at which
the PWM module operates.
FIGURE 14-2:
DEFAULT V/F CURVE FOR
THE ProMPT KERNEL
TABLE 14-1:
DATA POINTS FOR THE
DEFAULT V/F CURVE
Frequency (Hz)
% Modulation
00
814
16
28
24
42
32
57
40
71
48
86
56
100
64
110
72
133
80
133
88
133
96
133
104
133
112
133
120
133
128
133
0
25
50
75
100
125
150
0
20406080
100
120
140
Input Frequency (Hz)
V
o
lt
ag
eM
odula
tion
(
%
)
frated of motor
should equal f at
100% modulation
Vrated of motor
should equal
at 100% modulation
相关PDF资料
PIC18LF8680T-I/PT IC PIC MCU FLASH 32KX16 80TQFP
PIC16F1936-I/SO IC PIC MCU FLASH 512KX14 28-SOIC
PIC18F24K20-I/SO IC PIC MCU FLASH 8KX16 28SOIC
PIC18LF8585T-I/PT IC PIC MCU FLASH 24KX16 80TQFP
XF2J-3024-11 CONN FPC 30POS 0.5MM SMT
PIC18LF6525T-I/PT IC PIC MCU FLASH 24KX16 64TQFP
PIC18LF8621T-I/PT IC PIC MCU FLASH 32KX16 80TQFP
PIC18F8620T-E/PT IC PIC MCU FLASH 32KX16 80TQFP
相关代理商/技术参数
PIC18F4539T-E/PT 功能描述:8位微控制器 -MCU 24KB 1408 RAM 32 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F4539T-I/ML 功能描述:8位微控制器 -MCU 24KB 1408 RAM 32 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F4539T-I/PT 功能描述:8位微控制器 -MCU 24KB 1408 RAM 32 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F4550EPT 制造商:Microchip Technology Inc 功能描述:
PIC18F4550-I/ML 功能描述:8位微控制器 -MCU 32kBF 2048RM FSUSB2 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F4550-I/P 功能描述:8位微控制器 -MCU 32kBF 2048RM FSUSB2 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F4550-I/PT 功能描述:8位微控制器 -MCU 32kBF 2048RM FSUSB2 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F4550T-I/ML 功能描述:8位微控制器 -MCU 32kBF 2048RM FSUSB2 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT