Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Special symbols on LCD with PIC16F877A in CCS C Compiler

Status
Not open for further replies.

john120

Banned
Joined
Aug 13, 2011
Messages
257
Helped
11
Reputation
22
Reaction score
10
Trophy points
1,298
Activity points
0
Hello guys I am writing a program in ccs c which will display a percantage of calculations made but I have a great problem to display for example 10% on the lcd.

for example how can I collect this for the lcd to print out 52%:

delay_ms(500);
printf(lcd_putc,"\f52");
delay_ms(500);


thx
 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
15,217
Helped
4,958
Reputation
9,938
Reaction score
4,784
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
129,217
A single '%' is usually reserves as a format specifier but if you use two together "%%" printf usually prints one of them untouched. So printf(lcd_putc,"\f52%%"); should work. I can't check with CCS but that's how it normally works.

Brian.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top