This is a multi-part message in MIME format. ------=_NextPart_000_0013_01C0E983.9DD8E9C0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0014_01C0E983.9DD8E9C0" ------=_NextPart_001_0014_01C0E983.9DD8E9C0 Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: quoted-printable Hello I am trying to test an LCD on the parallel port of the computer. I am using the 4-bit mode of the LCD. Connecting the DB4-7 to the high 4 bitof the parallel port,and = connecting rs to bit one on the parallel port,and enable on bit two. Is the C++ code supplied right or wrong ??? please send the reply to comm@hotpop.com thanks Mohamed Eldesoky ~~~~~~~~~~~~~ Life is to try. ~~~~~~~~~~~~~ Mohamed Eldesoky ~~~~~~~~~~~~~ Life is to try. ~~~~~~~~~~~~~ ------=_NextPart_001_0014_01C0E983.9DD8E9C0 Content-Type: text/html; charset="windows-1256" Content-Transfer-Encoding: quoted-printable
Hello
I am trying to test an LCD on the = parallel port of=20 the computer.
I am using the 4-bit mode of the = LCD.
Connecting the DB4-7 to the high 4 = bitof the=20 parallel port,and connecting rs to bit one on the parallel port,and = enable on=20 bit two.
Is the C++ code supplied right or wrong ???
 
please send the reply to comm@hotpop.com
thanks
 
Mohamed = Eldesoky
~~~~~~~~~~~~~
Life is to=20 try.
~~~~~~~~~~~~~
Mohamed = Eldesoky
~~~~~~~~~~~~~
Life is to=20 try.
~~~~~~~~~~~~~
------=_NextPart_001_0014_01C0E983.9DD8E9C0-- ------=_NextPart_000_0013_01C0E983.9DD8E9C0 Content-Type: application/octet-stream; name="lcd.cpp" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="lcd.cpp" #include #include #include #include #include main () { int port=379 ; char a,b,c,a1,b1,c1; int dataout=1; delay(15); outp(port,0x30); delay(5); outp(port,0x30); delay(1); outp(port,0x30); outp(port,0x20); outp(port,0x20); outp(port,0x80); outp(port,0x00); outp(port,0xc0); outp(port,0x00); outp(port,0x10); outp(port,0x00); outp(port,0x70); a='t'; a1=a||dataout ; outp(port,a1); delay(1); b=a<<4 ; a1=b||dataout; outp(port,a1); delay(1); outp(port,0x00); outp(port,0x70); b='e'; b1=b||dataout; outp(port,b1); delay(1); c=b<<4; outp(port,c); return 0 ; } ------=_NextPart_000_0013_01C0E983.9DD8E9C0-- -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body