[bascom] AT89S8252 and LCD 8 bit mode .... is $lcdrs working ?
Hello !
Well sory for not giving you enough data on my problem ...I'm using
AT89S8252 , 6264 SRAM , 74HC138 decoder for decoding upper 3 pins A13 ,A14,
A15 ...Decoding is working fine for RAM.....
****************************************************************************
*****************************************
My pin configuration on LCD is
****************************************************************************
*****************************************
D0~D7 -->AD0~AD7
RS o-->A0 over 74HC573 adress decoder
E (enable) --> On 74HC138(on Y1 ram is on Y0) over 74HC00 for inverting
(cause E on LCD isn't inverted like /CE on RAM) tried inverted and
noninverted ?!
nothing works !
R/W conected to ground ...(found that in archive SORY GUYS FOR BOTHERING
YOU)
Display driver on the back of LCD is
*********
SEC
KS0070B
********
Worked fine in 4 bit mode on AT89C2051
****************************************************************************
********************************************
Ok obviously i'm trying to make display work in 8 bit mode .
****************************************************************************
*******************************************
PROGRAM
****************************************************************************
*******************************************
$ramstart = &H0000
$ramsize = &H2000
$crystal = 12000000
$lcd = &H2000
$default Xram
Config Lcd = 16 * 2
Config Lcdbus = 8
Display On
Cls
Wait 1
Lcd "DELA"
Cls
Wait 1
Lcd "DELA"
Dim X As Byte Code below was for testing XRAM ....works great
Dim Y As Byte
Dim Z As Iram Byte
Dim Count As Xram Byte
X = 136
Y = 1
For Count = 1 To 8
X = X + Y
P1 = X
Next
End
****************************************************************************
*****************************************
Right now I don't feel like writing my own assembly code for programing
LCD since I bought BASCOM 8051 just cause of easy DISPLAY and I2C programing
. Anybody had similar experiences ? I tried evrything I could .....Checked
all conections at least 20 times and right now I'm realy disappointed
.....LCD worked fine on port in 4 bit mode ...Could it be my cable ? It's
about 25 cm long ?
There's another problem my Bascom $lcdrs statement for connecting RS to
other address line isn't recognized in compiler ....(doasn't turn blue and
doasn't compile even though I BOUGHT BASCOM !!! ) Realy
disappointed....Anybody have similar experiences ?????
****************************************************************************
*****************************************
Thank you for your help ---->Gregor Skrt
----- Original Message -----
From: "(ALJ-1108) Inc." <alj1108@yahoo.com>
To: <bascom@grote.net>
Sent: Saturday, February 22, 2003 12:02 PM
Subject: Re: [bascom] Is R/W pin on LCD conected to R/W on CPU ?
> Hello there,
> Wondering which Bascom are you using and wondering if
> you have the PEN enabled or not...
> Most displays will work off the port pins in 4bit mode
> (Bascom 8051 and Bascom AVR).You will have to decode
> the address and data buss to use it otherwise...
> Aaron
>
> --- Gregor Skrt <gregor.skrt@volja.net> wrote:
> > I tried to connect LCD to data bus and use $LCD
> > statement.
> > Problem is that I don't know if this kind of LCD
> > connection requires conection of R/W pin to uP R/W
> > pin ....
> > LCD just doasn't work..(works fine on port)
> >
> > Gregor Skrt
>