Page 1 of 1

E-block LCD

Posted: Tue Mar 06, 2012 4:18 pm
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

Re: E-block LCD

Posted: Tue Mar 06, 2012 4:48 pm
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

Re: E-block LCD

Posted: Tue Mar 06, 2012 8:54 pm
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

Re: E-block LCD

Posted: Wed Mar 07, 2012 11:03 pm
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.