Cordless phone LCD puzzle

picaxester

Senior Member
I want to use those nice little LCDs (3x16)
that come in cordless phones in my PICAXE projects but I can't find a data sheet, so I made a crappy program to record the data on 4
of the 8 pins of the LCD. The 4 that I
believe are the I/O pins.
The others I think have to do with the power
supply, ground, +3v, -3v and something else.
Heres a pic:
http://images.turds.multiply.com/image/3/photos/7/orig/1/LCD%20testing.JPG?et=ICvx74KSH%2CtfGbyytt1Nhg

Heres the program:

setfreq m8

b0 = pins

for b1 = 0 to 255
do until b0 <> pins
loop

write b1, pins

b0 = pins
next b1

download:

do until pin2 = 1 'download botton
loop

for b2 = 0 to 255
read b2, b1
b0 = 0
bit0 = bit9
bit1 = bit8
bit2 = bit15
bit3 = bit14

sertxd (bit0, bit1, bit2, bit3, 13, 10)
next b2

goto download


And this is what it recorded:
A = input 1 (Green wire)
B = input 0 (Green wire)
C = input 7 (White/Green wire)
D = input 6 (White/Green wire)
-A---B---C---D-
«00»«00»«00»«01»
«00»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«00»«00»«00»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«00»«00»«00»«00»
«00»«00»«00»«01»
«00»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«00»«01»«00»«00»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«00»«00»«00»«00»
«00»«00»«00»«01»
«00»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«00»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«00»«00»«00»
«00»«00»«00»«01»
«00»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«00»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«00»«00»«00»
«00»«00»«00»«01»
«00»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«00»«01»«00»
«01»«01»«01»«01»
«00»«00»«00»«01»
«00»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«00»«01»«00»«00»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«00»«01»
«00»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»
«00»«01»«01»«01»
«00»«01»«00»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«01»«01»«01»
«01»«00»«01»«00»
«01»«01»«00»«01»
«01»«01»«00»«01»
«01»«01»«00»«01»

I think
A is maybe a Data/Instruction pin,
B is maybe a clock pin,
C is maybe a data pin and
D is maybe a chip select pin.

What do you think? :)


eric
 

manuka

Senior Member
Eri: I seem to continually ponder Picaxing diverse LCDs such as these,although your 16x3 is one I've not run across in fire sale abundance. Your pix fails to show details, but is it akin to the DOG type &quot;Display On Glass&quot; type shown =&gt;<A href='http://www.avrcard.com/products/playground_lcd.htm ' Target=_Blank>External Web Link</a> ? Stan
 

hippy

Technical Support
Staff member
I'm not sure it will be possible to capture a data stream to an LCD using a PICAXE as it will be too slow to capture any fast transitions even at 8MHz; the Write probably puts 2mS+ in the way and limits sampling to just 500Hz. Even parallel driving of an LCD from a PICAXE would be too fast for another PICAXE to capture accurately.

Without a complete and accurate picture of what's happening on the connections it would be difficult to even guess at what comms protocol is being used, let alone what data and commands are being sent. Even with a high-speed logic analyser it could be a tough job, and a lot of effort for a part which may be proprietary and hard to obtain elsewhere.

I won't say don't do it, but I think you do need to consider how much effort you are putting in versus what you are getting out of it and what usefulness it will bring if you do decode its workings. Of course, I don't always practice what I preach, and like 'an impossible challenge' myself :)

If you can provide further details on anything identifying the LCD and through track tracing identify the chip the LCD connects to, others may have better luck at finding useful information from that direction.
 

picaxester

Senior Member
Thanks for the replays :)

Is all glass but with a driver chip in it.

I know it's a long shot but they would be really cool to use and the phone they come in are easy to come by and cheap. The LCD is small but very easy to read.
Heres another crappy pic:
http://images.turds.multiply.com/image/4/photos/7/orig/2/LCD%20testing%202.JPG?et=XFxsBtLATCEfPb9REtIULw
This is the type of phone that they come in:
http://66.230.222.40/pics/uniden-dxi3286.jpg

Would it be a bit faster if the peek/poke commands were used?
Like this:

setfreq m8

b0 = pins

for b1 = $50 to $7F
do until b0 &lt;&gt; pins
loop

poke b1, pins

b0 = pins
next b1

download:

do until pin2 = 1 'download botton
loop

for b1 = $50 to $7F
peek b1, b0
sertxd (bit1, bit0, bit7, bit6, 13, 10)
next b1

goto download

Thanks :)
 

hippy

Technical Support
Staff member
Faster, but probably still around 2kHz sampling. If it's an SPI bus it could be running at anything up to 1MHz.
 

Michael 2727

Senior Member
Photo tips, if your camera can't do Macro shots, try putting your gadgets on a flatbed scanner. Anything 1 inch or so above the glass will be out of focus, but flatter things work better than most cameras.
<b>Be careful not to scratch the glass </b>
Also if you have a cheapie web cam you can usually adjust the focus by rotating the lens in or out, they are only good for very close shots of single components e.g. 1/2 inch across. A bit fiddly this way but can work.
And get Irfan View or something to resize the pictures, a 420Kb picture is about 300Kb of wasted internet space. Those bytes will all run out one day, mark my words.
 

picaxester

Senior Member
I just under clocked the phone lol
But before I can test it I need to fix your terminal program, yep, I broke it again. oops lol
I can't find where to &quot;deleting the registry tree&quot;
http://www.rev-ed.co.uk/picaxe/forum/Topic.asp?topic_id=7282&amp;forum_id=31&amp;Topic_Title=Sending%2BNumbers%2BThrough%2BThe%2BTerminal&amp;forum_title=PICAXE+Forum
 

hippy

Technical Support
Staff member
Make sure you've downloaded the latest ( <A href='http://homepage.ntlworld.com/the.happy.hippy/picaxe/aiterm.zip?20070728' Target=_Blank>External Web Link</a> ). I thought I'd fixed the registry issues, but perhaps I've missed something.
 

picaxester

Senior Member
It works again, thanks you :)

I changed the crystal in the phone from a 3.5795453mhz to 1.8432mhz but it still can't keep up.
The only crystal that I have thats lower than 1.8432mhz is a watch crystal and that didn't work.
 
Top