Decode parallel data going to a LCD

lewisg

Senior Member
I use a device that monitors communications and outputs the signals and levels to a parallel LCD. I'd like to be able to log to SD what is displayed on the LCD along with the date and time. The person who designed the device isn't willing to give a serial data output for this purpose. So, in short, is it possible to decode parallel data going to a LCD?
 

hippy

Ex-Staff (retired)
So, in short, is it possible to decode parallel data going to a LCD?
Yes, but whether that is achievable with a PICAXE alone is a different matter. You need to latch the data and other control lines every time E goes high and then work out what the sequence of data means. Bursts of E pulses may be as short as 1us long and just 40us apart.
 

westaust55

Moderator
In the words of hippy in another current thread:

Yes, but whether that is achievable with a PICAXE alone is a different matter. You need to latch the data and other control lines every time E goes high and then work out what the sequence of data means. Bursts of E pulses may be as short as 1us long and just 40us apart.
 

lewisg

Senior Member
You guys are quick...

Bursts of E pulses may be as short as 1us long and just 40us apart.
In general does E go high once per character or once per line or screen. The text on the LCD only updates once every several seconds. Text only, all caps, no extended characters or graphics. Hex 20 - 5A.
 

hippy

Ex-Staff (retired)
E goes high for every character byte or command byte passed to the LCD in 8-bit interface mode, twice for each byte or command if using a 4-bit interface.
 

lewisg

Senior Member
The LCD is a 2x16. It has 1602-01 printed on the board, Hantronix HDM16216H-5-S00S HDM16216-5 on a sticker. I assume it to be this part. Pins 1-14 are connected via header.

So far I can't find the full datasheet.
 

nick12ab

Senior Member
The LCD is a 2x16. It has 1602-01 printed on the board, Hantronix HDM16216H-5-S00S HDM16216-5 on a sticker. I assume it to be this part. Pins 1-14 are connected via header.

So far I can't find the full datasheet.
The pinout is in the one page datasheet. You don't need a full datasheet since HD44780-compatible LCDs use standards unlike serial LCDs which could use anything.

All HD44780-compatible LCDs allow you to read from them so you can 'take control' of it by using a digital bus switch, read the data from it, then return control to the whatever-it-is. You should set the address to something outside of the display range after reading from the LCD so that if the device was starting to send data to the LCD when you took control of it, text won't briefly appear in the wrong place when you return control.
 

westaust55

Moderator
The LCD is a 2x16. It has 1602-01 printed on the board, Hantronix HDM16216H-5-S00S HDM16216-5 on a sticker. I assume it to be this part. Pins 1-14 are connected via header.

So far I can't find the full datasheet.
Not all LCD displays use the Hitachi controller. Some use the KS0066U controller chip.
I salvaged some Hantronics displays which used the KS0066U chip. See this thread where I got mine working:
http://www.picaxeforum.co.uk/showthread.php?23589-Hantronix-LCDs-Specifically-HDM20416L-1-and-similar-with-KS0066U-controller-chip
 
Top