Hello! I'm using the P89LPC935FA microcontroller. I have written a program which involves calculation in floating numbers. While trying to compile it, I got a error message which I haven't been able to resolve. Below is the message: FATAL ERROR L210: I/O ERROR ON INPUT FILE: EXCEPTION 0021H: PATH OR FILE NOT FOUND FILE: C:\KEIL\C51\LIB\C51FPS.LIB Target not created. Could you please help. Ade
a guess: you are using the eval. Floating point is not included in the eval. Also, waaaay too many '51 apps are done with floating point, for which the '51 is singularily a bad choice. Use scaling instead of floating point, you will run faster and cheaper. Erik
Dear Erik, Yes you are right, I'm using the evaluation board. I'm quite a novice and I'm just beginning to learn the tricks. If I may ask, what do you mean by scaling? I have successfully used the below strategy to avoid floating point numbers. e.g representing 1.09 as 109/100. I however need the result to be in floating point as the figure is supposed to be used to control a servo motor so I'll be using figures like 1.02, 1.14 e.t.c. Is there a way of solving this problem?
I however need the result to be in floating point as the figure is supposed to be used to control a servo motor how (e.g RS232), and in which format (e.g. ASCII) do you send it to the servo motor control? Erik
If I may ask, what do you mean by scaling? I have successfully used the below strategy to avoid floating point numbers. e.g representing 1.09 as 109/100. that IS "scaling" Erik
I'm sending pulses(PWM) to the servo using one of the ports on the microcontroller. In order to control the servo, the pulse width will vary between 1ms and 2ms with an interval of 0.02ms.
View all questions in Keil forum