March 28, 2024, 10:33:14 PM

MOD-LCD-1x9 and Pic32

Started by zabravanko, June 02, 2016, 05:23:36 PM

Previous topic - Next topic

zabravanko

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 :)

lambda

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

zabravanko

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..  ;)

lambda

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