This is from my tesis ,is a v/f motor control ,for the v/f scale i need to scale the modulus of the pwm,but i need to use a float operation for decimal results
The problem is when i use the operation ./ this is the code:
(is a mr32 8 bits microcontroler)
#include <hidef.h> /* for EnableInterrupts macro */
#include "derivative.h" /* include peripheral declarations */
#include "sinetables.h"
unsigned char TableIndex = 0;
int leer=1;
int ADC_IN;
int i=1;
float ADC_FLOT;
float k;
if(ADC_IN<0X2FC){
k=1;}
if(0x2FC<=ADC_IN<=0x9F2){
k=ADC_IN*9/.17820;
k=-k+1.38585;
}
if(ADC_IN<0X9F2){
k=0.1;}
PVAL1 =k * PHASE_A[TableIndex];
PVAL3 =k * PHASE_B[TableIndex];
PVAL5 =k * PHASE_C[TableIndex];
leer=PCTL1_LDOK;
PCTL1 |= 0x02; /* Load new PWM values */
TableIndex++; /* Update Table Index */
if (TableIndex == 64)
{
TableIndex = 0; /* Reset Table Index */
}
}
when I compiling te code warrior display tihs message:
Link Error : L1822: Symbol _FSFLOAT in file C:\Documents and Settings\COMPAC\Mis documentos\SENOFRECVAR307\SENOFRECVAR307_Data\Standard\ObjectCode\main.c.o
is undefined
Link Error : L1822: Symbol _FDIV_RC in file C:\Documents and Settings\COMPAC\Mis documentos\SENOFRECVAR307\SENOFRECVAR307_Data\Standard\ObjectCode\main.c.o
is undefined
Link Error : L1822: Symbol _FNEG in file C:\Documents and Settings\COMPAC\Mis documentos\SENOFRECVAR307\SENOFRECVAR307_Data\Standard\ObjectCode\main.c.o
is undefined
Link Error : L1822: Symbol _FADD_RC in file C:\Documents and Settings\COMPAC\Mis documentos\SENOFRECVAR307\SENOFRECVAR307_Data\Standard\ObjectCode\main.c.o
is undefined
Link Error : L1822: Symbol _FUFLOAT in file C:\Documents and Settings\COMPAC\Mis documentos\SENOFRECVAR307\SENOFRECVAR307_Data\Standard\ObjectCode\main.c.o
is undefined
Link Error : L1822: Symbol _FMUL in file C:\Documents and Settings\COMPAC\Mis documentos\SENOFRECVAR307\SENOFRECVAR307_Data\Standard\ObjectCode\main.c.o
is undefined
Link Error : L1822: Symbol _FSTRUNC in file C:\Documents and Settings\COMPAC\Mis documentos\SENOFRECVAR307\SENOFRECVAR307_Data\Standard\ObjectCode\main.c.o
is undefined
Link Error : Link failed
I must to installing codewarrior libraris
from were?