E-block LCD

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
rmaggott
Posts: 5
Joined: Sun Feb 26, 2012 1:28 pm
Has thanked: 2 times
Contact:

E-block LCD

Post by rmaggott »

Hi all,

I am currently using the HP488 dev board.
I'm struggling with the initialization of the LCD. If there's someone with an example of the LCD display in C, if you could send it to me, it'd be much appreciated.

Thanks,
Ryan

Spanish_dude
Posts: 594
Joined: Thu Sep 17, 2009 7:52 am
Location: Belgium
Has thanked: 63 times
Been thanked: 102 times
Contact:

Re: E-block LCD

Post by Spanish_dude »

Are you trying to program it using Flowcode or using C code (with another programmer/IDE) ?
If you're using Flowcode.
- Select the LCD component
- Set PORTB for the LCD connections (somewhere in the component properties) because LCD is connected to PORTB on the HP488 dev board
- Use the init LCD functions (or something like that) to initialize the LCD
- Optional : I usually add a little delay (20ms, 100ms, ...) after the init function
- Optional : Clear screen
- Main loop
- Write stuff on LCD screen
- End loop

That's how I do it with Flowcode ;).

Nicolas

rmaggott
Posts: 5
Joined: Sun Feb 26, 2012 1:28 pm
Has thanked: 2 times
Contact:

Re: E-block LCD

Post by rmaggott »

Spanish_dude wrote:Are you trying to program it using Flowcode or using C code (with another programmer/IDE) ?
If you're using Flowcode.
- Select the LCD component
- Set PORTB for the LCD connections (somewhere in the component properties) because LCD is connected to PORTB on the HP488 dev board
- Use the init LCD functions (or something like that) to initialize the LCD
- Optional : I usually add a little delay (20ms, 100ms, ...) after the init function
- Optional : Clear screen
- Main loop
- Write stuff on LCD screen
- End loop

That's how I do it with Flowcode ;).

Nicolas
Thanks,

I'm actually using a C compiler, I've tried the trial version of flowcode and managed to get the LCD working, but I'd rather use C to do my programming in. I can't afford to purchase flowcode, and I have a C compiler for the PIC so I'm using that.

thanks though.
Ryan

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: E-block LCD

Post by DavidA »

Hi,

You can look at the C code behind any Flowcode file by going to:

Chip >> View C

This might help you out a bit more as you can look at a lot of the component C code and general Flowcode C code in the Flowcode install folder.

Post Reply