Problem displaying float on lcd interfaced with pic18F4550 using proteus and mikroc

Status
Not open for further replies.

ederelk

Newbie level 4
Joined
Nov 20, 2010
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,333
hello everybody, im new . this forum has been helping me a lot lately. this is my problem, im trying to display floating point on the lcd i have interfaced with my PIC18F4550 in proteus usin this code

void main(){
har buf[15];
lcd_init(); // initialization of lcd
Lcd_Cmd(_LCD_CLEAR);
sprintf(buf, "%12e", 1.156);

Lcd_Out(1,1,buf); // display float number from array to lcd*/
}
it compiles fine but in the proteus simulation it does no work it gives me a lot of error masseges.please help me!

---------- Post added at 21:34 ---------- Previous post was at 21:31 ----------

this is the code

void main(){
char buf[15];
lcd_init(); // initialization of lcd
Lcd_Cmd(_LCD_CLEAR);
sprintf(buf, "%12e", 1.156);

Lcd_Out(1,1,buf); // display float number from array to lcd*/
}
 

The Lcd_Out cannot print float?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…