Searching \ for '[PIC]: LCD with PIC' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/io/lcd/pic.htm?key=lcd
Search entire site for: 'LCD with PIC'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: LCD with PIC'
2002\01\02@175806 by Tal Bejerano - AMC

flavicon
face
hi to all

I'm connecting a lcd display thru parallel port.
my problem is, the lcd's ASCII char table is shifted, I see English fine,
but my country language chr's I see in "gibberish".

I found that the manufacturer "shift" the chr's to other address. our
alphabet char. start in ASCII 128 and finish on ASCII 154. the factory
somehow program it to start from ASCII 160 to 186.

can a PIC can solve it?
is it possible to program a program that shift the chars when it "see" other
ASCII's?

I know it's a strange question, but maybe someone can help me.....:-(

Thanks

Tal

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\01\02@184917 by Christian Dorner

flavicon
face
Hi!

> I'm connecting a lcd display thru parallel port.
> my problem is, the lcd's ASCII char table is shifted, I see English fine,
> but my country language chr's I see in "gibberish".
>
> I found that the manufacturer "shift" the chr's to other address. our
> alphabet char. start in ASCII 128 and finish on ASCII 154. the factory
> somehow program it to start from ASCII 160 to 186.

You don't told us which kind of display and design of your "interface". So i
think you speak about a 44780 compatible display with a zero part interface.
(just connect to data and control lines)

In this case your software do all the communication/protocol. I think the
simple way to solve this is to exchange the char your pc will output befor
it sends to the display.

Try something like "if char>=ascii(160) and char<=ascii(186) then
char=char - ascii(160-128)" (you have to adapt this to your programming
language, of course)


> can a PIC can solve it?

Yes. But in this case i would prefer a serial communication between the PC
and the PIC. The pic running a code that handles the serial link, char
replacement and display communication.

If you still want to use the parallel port of your pc, you can even use a
eprom (with a map programmed in it) to replace chars (if you use 8Bit
communication for the display). You can simply connect the 8 datalines from
the PC to the Addresslines of the Eprom and the Datalines (of the EProm) to
the Display. (Don't forget the RS line)

> is it possible to program a program that shift the chars when it "see"
other
> ASCII's?

There are probably 101 way's to solve this. ;-)

cu, Christian

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\01\02@185130 by Patrick J

flavicon
face
Yes; just about any pic can easily do this.
Just subtract 28 from the ascii that is sent from the parallelport
and send the result to the LCD - easy ! The 'tricky' part might
be to handle the handshaking if the display requires it.

/PJ

{Quote hidden}

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\01\02@223943 by ards, Justin P

flavicon
face
or "AND" it with 1101 1111 in the PC
Justin

-----Original Message-----
From: Patrick J [spam_OUTinfoTakeThisOuTspamDATECH.SE]
Sent: Thursday, 3 January 2002 07:50
To: .....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU
Subject: Re: [PIC]: LCD with PIC


Yes; just about any pic can easily do this.
Just subtract 28 from the ascii that is sent from the parallelport
and send the result to the LCD - easy ! The 'tricky' part might
be to handle the handshaking if the display requires it.

/PJ

> I'm connecting a lcd display thru parallel port.
> my problem is, the lcd's ASCII char table is shifted, I see English fine,
> but my country language chr's I see in "gibberish".
>
> I found that the manufacturer "shift" the chr's to other address. our
> alphabet char. start in ASCII 128 and finish on ASCII 154. the factory
> somehow program it to start from ASCII 160 to 186.
>
> can a PIC can solve it?
> is it possible to program a program that shift the chars when it "see"
other
> ASCII's?

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...