Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Graphical Lcd (JHD12864E) PROBLEM

Status
Not open for further replies.

madhusudan.pes

Newbie level 1
Joined
Jan 9, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
India
Activity points
1,293
Hello Everyone,
i am facing problem in reading the disply data ram of jhd12864e. I am using at89s8252. My code is giving various type of results. Sometimes right & sometimes wrong. My code is given below. Plz suggest me for right reading the display data ram of lcd.

;-------------------------------------------------------------------------------------
; READ SUBROUTINE
;-------------------------------------------------------------------------------------
read : mov p0,#0ffh ; make p0 as input port
cjne r2,#00h,read2
setb cs1
; 1st read
read1: setb rw ; rw =1 for read
setb rs ; rs = 1 , stored data in display data ram latched into o/p reg.

clr e ; e = 0 for L-H pulse

setb e ; e = 1 for H-L pulse



setb rw ; 2nd read for mpu reads the latched data
setb rs
clr e ; e = 0 for L-H pulse

setb e ; e = 1 for H-L pulse


clr a
mov a,p0
clr rw
clr rs
nop
;nop
clr cs1
clr cs2
ret

read2: setb cs2
sjmp read1
;---------------------------------------------------------------------------------------
Plz suggest me.
Thank u.
 

Designer_Electronics

Newbie level 5
Joined
Sep 16, 2010
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,341
i use JHD12864E Graphic LCD interface with pic18f4420 , but i have a strange phenomna , i have my (0,0) point at 63H address ,
kindly advise is it the problem of LCD itself (but i try 2 LCDs)? or how to adjust the refernce point to left upper side.
iam using MicroC S/W.

wait your reply
Thanks
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top