English
Language : 

PIC18FXX39 Datasheet, PDF (120/322 Pages) Microchip Technology – Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel
PIC18FXX39
void ProMPT_SetLineVoltage(unsigned char voltage)
Resources used: Hardware Multiplier; 0 stack levels
voltage range: 0 to 255
Description: Sets the line voltage for Automatic Voltage Compensation. The units for SetLineVoltage and
SetMotorVoltage must be the same for accurate operation. The values passed to SetMotorVoltage and
SetLineVoltage can be the same to disable voltage compensation.
void ProMPT_SetMotorVoltage(unsigned char voltage)
Resources used: Hardware Multiplier; 0 stack levels
voltage range: 0 to 255
Description: Sets the motor rating for Automatic Voltage Compensation. The units for SetLineVoltage and
SetMotorVoltage must be the same for accurate operation. The values passed to SetMotorVoltage and
SetLineVoltage can be the same to disable voltage compensation.
void ProMPT_SetParameter(unsigned char parameter, unsigned char value)
Resources used: 0 stack levels
parameter range:
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. This function sets the value of the
specified user defined function.
void ProMPT_SetPWMfrequency(unsigned char PWMfrequency)
PWMfrequency values: 0 or 1
Resources used: Timer2; 1 stack level
Description: This sets and changes the PWM switching frequency. Typically, this is set with the Init() function.
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.
void ProMPT_SetVFCurve(unsigned char point, unsigned char value)
Resources used: Hardware Multiplier; 0 stack level
point range: 0 to 16 (0 = 0 Hz, 1 = 8 Hz, 2 = 16 Hz……. 17 = 128 Hz)
value range: 0 to 200
Description: This sets one of the 17 modulation values (in %) for the V/F curve. Each point represents a frequency
increment of 8 Hz, ranging from point 0 (0 Hz) to point 16 (128 Hz).
unsigned char ProMPT_Tick(void)
Resources used: 1 stack level
Description: The value of the Tick timer flag becomes ‘1’ every 62.5 ms (1/16 second). This can be used for timing
applications. clearTick must be called in the timing routine when this is serviced.
DS30485B-page 120
Preliminary
 2002-2013 Microchip Technology Inc.