View previous topic :: View next topic |
Author |
Message |
Stig
Joined: 13 May 2014 Posts: 13 Location: Belgium
|
CCS forum "Please just a little Help" |
Posted: Thu May 29, 2014 12:05 pm |
|
|
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
|
|
Posted: Thu May 29, 2014 1:21 pm |
|
|
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
|
|
Posted: Thu May 29, 2014 2:07 pm |
|
|
Yes Sir, I'm using LCD 40*2. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19520
|
|
Posted: Thu May 29, 2014 3:02 pm |
|
|
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
|
|
Posted: Fri May 30, 2014 2:35 am |
|
|
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 ... |
|
|
Stig
Joined: 13 May 2014 Posts: 13 Location: Belgium
|
|
Posted: Fri May 30, 2014 2:41 am |
|
|
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
|
|
Posted: Fri May 30, 2014 3:45 am |
|
|
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...... |
|
|
|