Olimex Support Forum

Others => UEXT => Topic started by: zabravanko on June 02, 2016, 05:23:36 PM

Title: MOD-LCD-1x9 and Pic32
Post by: zabravanko on June 02, 2016, 05:23:36 PM
Hello,
these days I am trying to visualize random string on MOD-LCD-1x9 with Pic32 OTG board. I am using PICkit3 for programming and general purpose demo code from Olimex - https://www.olimex.com/Products/Modules/LCD/MOD-LCD-1x9/open-source-hardware .
I modify it a little and the display lights up all its segments. It is great, but now I am trying to visualize random string and I have tried a lot of times, but without result. I have observed datasheet of the PCF8576D and so I can adjust a lot of its settings, but up to now I cant send a string to MOD-LCD-1x9.

I appreciate every kind of help :)
Title: Re: MOD-LCD-1x9 and Pic32
Post by: lambda on June 02, 2016, 10:02:07 PM
Are you properly setting device select register and point register when sending a string?

I have written this code for MOD-LCD-1x9 that works reliably for me (on linux):
http://lists.omnipotent.net/pipermail/lcdproc/2015-December/014304.html

See also this post for details:
https://www.olimex.com/forum/index.php?topic=4961.0

HTH,
Harald
Title: Re: MOD-LCD-1x9 and Pic32
Post by: zabravanko on June 03, 2016, 01:02:11 PM
Thank you for your response!
Actually, I found your topic and the same internet link a few days ago, but I am not very much familiar with Linux side of the programming.
On the other hand, I have read about select register and point register in datasheet of the PCF8576D, but still I do not access them. It is a bit complicate for me. And for this reason I am looking for some kind of example.
In the past I have worked with HD44780 and know some basic methods of accessing LCD displays.
I am still on my way to sending string to MOD-LCD-1x9..  ;)
Title: Re: MOD-LCD-1x9 and Pic32
Post by: lambda on June 04, 2016, 09:29:17 AM
You need to write these registers every time you send data to the display. Otherwise it won't work.

Have a look at my code (not linux specific for most parts): The first two bytes of the buffer are permanently initialized to the values for the registers for writing the whole display RAM of the device.

HTH,
Harald