English
Language : 

PIC18F4539 Datasheet, PDF (120/322 Pages) Microchip Technology – Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel
PIC18FXX39
unsigned char ProMPT_GetBoostTime()
Resources used: 1 stack level
Range of values: 0 to 255
Description: Returns the time in seconds for Boost mode.
unsigned char ProMPT_GetDecelRate()
Resources used: 1 stack level
Range of values: 0 to 255
Description: Returns the current deceleration rate in Hz/second.
unsigned char ProMPT_GetFrequency(void)
Resources used: 1 stack level
Range of values: 0 to 127
Description: Returns the current output frequency in Hz. This may not be the frequency commanded due to Boost or
Accel/Decel logic.
unsigned char ProMPT_GetModulation(void)
Resources used: Hardware Multiplier; 1 stack level
Range of values: 0 to 200
Description: Returns the current output modulation in %.
unsigned char ProMPT_GetParameter(unsigned char parameter)
Resources used: 1 stack level
Description: In addition to its pre-defined API methods, the ProMPT kernel allows the user to custom define up to 16
functions for control or communication purposes not covered by the ProMPT APIs. These parameters are used to com-
municate with motor control GUI evaluation tools, such as Microchip’s DashDriveMPTM. This method returns the current
value of any one of the parameters.
unsigned char ProMPT_GetVFCurve(unsigned char point)
Resources used: Hardware Multiplier; 1 stack level
Description: This function returns one of the 17 modulation values (in %) of the V/F curve. Each point represents a
frequency increment of 8 Hz, ranging from point 0 (0 Hz) to point 16 (128 Hz).
void ProMPT_Init(unsigned char PWMfrequency)
Resources used: 64 Bytes RAM; Timer2; PWM1 and PWM2; High Priority Interrupt Vector; Hardware Multiplier; fast
call/return; FSR 0; TBLPTR; 2 stack levels
PWMfrequency values: 0 or 1
Description: This function must be called before all other ProMPT methods, and it must be called only once. This
routine configures Timer2 and the PWM outputs.
When PWMfrequency is ‘0’, the module’s operating frequency is 9.75 kHz. When PWMfrequency is ‘1’, the module’s
operating frequency is 19.53 kHz.
Note: Since the high priority interrupt is used, the fast call/return cannot be used by other routines.
DS30485A-page 118
Preliminary
 2002 Microchip Technology Inc.