Simple project does not run

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Bobw
Posts: 157
Joined: Sat Jan 22, 2011 10:39 pm
Location: Michigan
Has thanked: 6 times
Been thanked: 27 times
Contact:

Simple project does not run

Post 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 360 times
Bob

User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Re: Simple project does not run

Post 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

Bobw
Posts: 157
Joined: Sat Jan 22, 2011 10:39 pm
Location: Michigan
Has thanked: 6 times
Been thanked: 27 times
Contact:

Re: Simple project does not run

Post 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

Bobw
Posts: 157
Joined: Sat Jan 22, 2011 10:39 pm
Location: Michigan
Has thanked: 6 times
Been thanked: 27 times
Contact:

Re: Simple project does not run

Post by Bobw »

Wrote a new flowcode for it and it runs fine??????? Code is ASCII 223
Go figure.
Bob

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: Simple project does not run

Post 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.
Attachments
degree_Modified.fcf
(5.5 KiB) Downloaded 345 times
Martin

Bobw
Posts: 157
Joined: Sat Jan 22, 2011 10:39 pm
Location: Michigan
Has thanked: 6 times
Been thanked: 27 times
Contact:

Re: Simple project does not run

Post 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

Post Reply