This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

pfintf and putchar

Dear Colleagues,
I want to work with printf and putchar but I have not had luck. Anybody can help me what is wrong on the below code. I am trying to prove the two functions printf and putchar wiht the simplest code I imagined, but the uVision still generates errors.

ERROR:
*** FATAL ERROR L210: I/O ERROR ON INPUT FILE: EXCEPTION 0021H: PATH OR FILE NOT FOUND FILE: C:\ARCHIVOS DE PROGRAMA\KEIL\C51\LIB\C51FPS.LIB
Target not created

//practice code for printf y putchar
#include<reg922.h>
#include<stdio.h>
//**************
char putchar (char k){
P0=k; //put the value on Port 0
return k;
}

void main(){
int a;
float c=3.1416;
printf("RESULTS: \n"); for(a=1;a<4;a++){ c+=0.2; printf("value of PI: %f \n",c); } }

Parents Reply Children
No data