Page 1 of 1

Converting EB005 display control to I2C

Posted: Sun Jun 23, 2013 3:16 am
by Brendan
I've been struggling trying to get an I2C interfaced display working (posted elsewhere), as I'm clearly missing something in the LCD driver datasheet. This is for a PIC-based test jig where the display is interfaced via I2C.

Looking at an alternative route, the on-board display driver chip (Sitronix ST7032i) is evidently code-compatible with the HD44780 that I understand is used on the E-Blocks EB005.

I would therefore like to edit the code / Flowcode (V5) to make use of the provided EB005 display driver functions, but converting the parallel (4-bit) output to suit the preordained 8-bit I2C of the tested product. If relatively straightforward I'd be extremely grateful for guidance.


Many thanks in advance.

Brendan.

Re: Converting EB005 display control to I2C

Posted: Sun Jun 23, 2013 9:08 am
by medelec35
Hi Brendan.
Programming Tips & Tricks is not for questions or technical support.
It's only for people who are posting tips,tricks and sharing their working Flowcharts.
So I have moved your post to a more relevant part of the forums.

Martin

Re: Converting EB005 display control to I2C

Posted: Sun Jun 23, 2013 12:06 pm
by Brendan
Oops... My bad, and apology :oops:

Thanks Martin :)


All the best,

Brendan

Re: Converting EB005 display control to I2C

Posted: Sun Jun 23, 2013 5:10 pm
by Brendan
My original issue has now been resolved and the I2C display now working in native Flowcode (after a critical header byte value was corrected :roll: )

My particular thanks to Jac (Kersing) for taking the time to dig out and PM some well-written example 'C' code :D


All the best,

Brendan

Re: Converting EB005 display control to I2C

Posted: Sun Jul 14, 2013 4:59 pm
by bercioiu
interesting!
Can you share with us the hardware and flowcode settings? I'm looking for something like that for a long time.
Thanks!

Re: Converting EB005 display control to I2C

Posted: Wed Aug 14, 2013 11:44 pm
by Brendan
Sorry for the (very) late reply.

Here's the code that worked to produce just a one-liner in the LCD (which was enough for the test exercise).

Not entirely clean and slick, but got the job done and off my back :D


All the best,

Brendan

Re: Converting EB005 display control to I2C

Posted: Wed Aug 14, 2013 11:59 pm
by bercioiu
It is not so late, it's only one day after a month :-)
Thank you for your reply, I thought you made a custom code for the LCD and we can use LCD natively in Flowcode ...
Any way, thank you again!