CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

CCS forum "Please just a little Help"

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Stig



Joined: 13 May 2014
Posts: 13
Location: Belgium

View user's profile Send private message Yahoo Messenger MSN Messenger

CCS forum "Please just a little Help"
PostPosted: Thu May 29, 2014 12:05 pm     Reply with quote

Hello everybody,

I could not show that stuff on LCD.

Could someone tell me what must I do to display this signs of percent " % " and this degree " ° " in LCD.

for example:
Code:

Printf(lcd_putc,"Temp= %f[Degree sign]C",Temperature); --------> %

Printf(lcd_putc,"D= %f[percent sign]",Duty); ----------> °


Thank you

Stig
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Thu May 29, 2014 1:21 pm     Reply with quote

it may not be able to display those symbols.
What is the model of the display?
_________________
Google and Forum Search are some of your best tools!!!!
Stig



Joined: 13 May 2014
Posts: 13
Location: Belgium

View user's profile Send private message Yahoo Messenger MSN Messenger

PostPosted: Thu May 29, 2014 2:07 pm     Reply with quote

Yes Sir, I'm using LCD 40*2.
Ttelmah



Joined: 11 Mar 2010
Posts: 19520

View user's profile Send private message

PostPosted: Thu May 29, 2014 3:02 pm     Reply with quote

No, the _model_ of the LCD. The actual part number. Different LCD's have different character generator ROM's, so display different characters. The full model number would tell us if your display has this character. Otherwise it becomes necessary to load a custom character.

The commonest American character generator has the degree symbol as code 0xDF, so can be displayed with '\xDF', however this may not work if yor generator does not use this standard.
Stig



Joined: 13 May 2014
Posts: 13
Location: Belgium

View user's profile Send private message Yahoo Messenger MSN Messenger

PostPosted: Fri May 30, 2014 2:35 am     Reply with quote

Hello Sir;

I'm talking about a LCD who exist in Proteus Simulator (40*2) ..... how I could display them [ % ] and [ ° ].

should be there's code ascii or something like that ... Sad
Stig



Joined: 13 May 2014
Posts: 13
Location: Belgium

View user's profile Send private message Yahoo Messenger MSN Messenger

PostPosted: Fri May 30, 2014 2:41 am     Reply with quote

Thank you Ttelmah .... more explanation if you have, after that last comment.... because I'm working with Proteus...

Stig
Ttelmah



Joined: 11 Mar 2010
Posts: 19520

View user's profile Send private message

PostPosted: Fri May 30, 2014 3:45 am     Reply with quote

The answer then is go and ask on a Proteus forum.

Read the sticky at the top of this forum, and understand you are doing nothing to help yourself design hardware, or learn about the PIC.

Isis (the Proteus simulator), unfortunately does not mimic the real world very well. There are hundred (possibly thousands) of tiny differences in PIC's, that it does not simulate. Then the same applies to LCD's. The authors will have attempted to simulate one LCD, when there are probably at least a thousand variants, even on just this one size, that will differ with tiny details in their timings, and larger details like the character generator. You can completely design a circuit in Isis, and as soon as you go to the real world, then find it doesn't work, and you have to start again. 90% of the time spent using Proteus, is wasted.
Even worse, other things like RF noise, decoupling , clocks etc., are not simulated at all, with it accepting what you tell it, even if the real chip would not work.

Save yourself a lot of bother, and get a real chip, and don't come back here till you have......
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group