Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

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*/
}
 

john blue

Advanced Member level 3
Joined
Jun 7, 2007
Messages
821
Helped
213
Reputation
430
Reaction score
204
Trophy points
1,323
Activity points
4,749
The Lcd_Out cannot print float? :)
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top