Page 1 of 1

Simple project does not run

Posted: Sun Jan 30, 2011 2:39 pm
by Bobw
I was trying to display a degree symbol on my LCD, since the Ascii codes did not work I wrote a small program to run through the entire library so I could see what code it wants. It runs fine on the simulator, compiles and loads into the 16F88 but does not run. What did I miss?
degree.fcf
(5.5 KiB) Downloaded 351 times
Bob

Re: Simple project does not run

Posted: Sun Jan 30, 2011 3:05 pm
by Jan Lichtenbelt
Dear Bob,

It can be that character set of the LCD differs from the ASCI characters. You have to look at the datasheet of the LCD. If you use the E-block EB005 you will find the datasheet at:
http://www.matrixmultimedia.com/datashe ... 5-30-3.pdf

on page 4.

I hope this helps you.

Jan Lichtenbelt

Re: Simple project does not run

Posted: Sun Jan 30, 2011 3:22 pm
by Bobw
Jan,
I have the data sheet for the display. Code should be 11111101 (not sure the ASCII value).
I have written other sample programs that work fine, except this one. I played around with one that does work trying different ASCII values but the results were not what was expected. I know I am missing something really simple.
Bob

Re: Simple project does not run

Posted: Sun Jan 30, 2011 4:15 pm
by Bobw
Wrote a new flowcode for it and it runs fine??????? Code is ASCII 223
Go figure.
Bob

Re: Simple project does not run

Posted: Sun Jan 30, 2011 4:25 pm
by medelec35
You have done two things wrong.
1) Missed out display start component.
2)Clock speed is wrong. Since you have got config set to internal osc and osccon=0x70; then you need to set osc speed to 8000000 (8MHz)
Have corrected Flowchart for you. I believe best symbol for degrees will be when DEG = 223

Edit Did not see your post about 223 as I was typing and checking results, so we both agree then.

Re: Simple project does not run

Posted: Sun Jan 30, 2011 4:36 pm
by Bobw
I went back and looked at my original that did not work and saw my mistake.
I should post this one under some of the demo programs. I have seen many post with people looking for the proper code for various LCDs. It kind of has the added bonus of letting you actually see the character on the display.
Thanks for helping.

Bob