Continue to Site

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.

interface a at89c51 with a jhd162a - memory map

Status
Not open for further replies.

hiteshmadnani

Newbie level 6
Newbie level 6
Joined
Feb 5, 2010
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,379
i want to interface a at89c51 with a jhd162a.but i dont have the memory map of jhd612a..please help me out...
 

Re: interfacing

i want to display "MICROCONTROLLER BASED LCD DISPLAY" And i want it in the second line....i'm facing a problem with the memory map of jhd 162a.....i am sending u a a jpg file ,which show a memory map of 8 bytes...In same format i want the memory map of JHD162a
 

Re: interfacing

ok now in lcd to set cursor position the 80h command will be added to the startin address of second line for example the previous in diagram if i want to go to the 10th position of second line,i'll just add the 80h with 4Ah
i.e 80h+4Ah=CAh.
similarly in jhd162a i'll add the 80h with C0
i.e 80h+C0h=140h
is it correct??

Added after 5 minutes:

i'll reach in the second line with the cursor at starting of it
 

Re: interfacing

ok....now if i want my charater to be displayed for 20 second ...what should i do???
 

Re: interfacing

i didn't got u actually...please explain me

Added after 1 minutes:

ok i'm sending u my code..plse check it....is it correct
DB0 EQU P1.0
DB1 EQU P1.1
DB2 EQU P1.2
DB3 EQU P1.3
DB4 EQU P1.4
DB5 EQU P1.5
DB6 EQU P1.6
DB7 EQU P1.7
EN EQU P3.7
RS EQU P3.6
RW EQU P3.5
DATA EQU P1


WAIT_LCD:
CLR EN ;
CLR RS ;
SETB RW ;
MOV DATA,#0FFh ;
SETB EN ;
MOV A,DATA ;
JB ACC.7,WAIT_LCD ;
CLR EN ;
CLR RW
RET



INIT_LCD:
CLR RS
MOV DATA,#38h
SETB EN
CLR EN
LCALL WAIT_LCD
CLR RS
MOV DATA,#0Eh
SETB EN
CLR EN
LCALL WAIT_LCD
CLR RS
MOV DATA,#06h
SETB EN
CLR EN
LCALL WAIT_LCD
RET



CLEAR_LCD:
CLR RS
MOV DATA,#01h
SETB EN
CLR EN
LCALL WAIT_LCD
RET



WRITE_TEXT:
SETB RS
MOV DATA,A
SETB EN
CLR EN
LCALL WAIT_LCD
RET



LCALL INIT_LCD
LCALL CLEAR_LCD
MOV A,#'R'
LCALL WRITE_TEXT
MOV A,#'O'
LCALL WRITE_TEXT
MOV A,#'O'
LCALL WRITE_TEXT
MOV A,#'M'
LCALL WRITE_TEXT
MOV A,#'.'
LCALL WRITE_TEXT
MOV A,#'N'
LCALL WRITE_TEXT
MOV A,#'O'
LCALL WRITE_TEXT
MOV A,#'.'
LCALL WRITE_TEXT
MOV A,#8CH
LCALL WRITE_TEXT
MOV A,#'3'
LCALL WRITE_TEXT
MOV A,#'0'
LCALL WRITE_TEXT
MOV A,#'1'
LCALL WRITE_TEXT


CLR RS
MOV DATA,#140h
SETB EN
CLR EN
LCALL WAIT_LCD



MOV A,#'M'
LCALL WRITE_TEXT
MOV A,#'r'
LCALL WRITE_TEXT
MOV A,#'.'
LCALL WRITE_TEXT
MOV A,#'S'
LCALL WRITE_TEXT
MOV A,#'U'
LCALL WRITE_TEXT
MOV A,#'R'
LCALL WRITE_TEXT
MOV A,#'A'
LCALL WRITE_TEXT
MOV A,#'N'
LCALL WRITE_TEXT
MOV A,#'J'
LCALL WRITE_TEXT
MOV A,#'I'
LCALL WRITE_TEXT
MOV A,#'T'
LCALL WRITE_TEXT
MOV A,#'K'
LCALL WRITE_TEXT
MOV A,#'O'
LCALL WRITE_TEXT
MOV A,#'S'
LCALL WRITE_TEXT
MOV A,#'T'
LCALL WRITE_TEXT
MOV A,#'A'
LCALL WRITE_TEXT
i want this msg to be displayed foe 20 sec and after that new text will be displayed waht should i right??


LCALL INIT_LCD
LCALL CLEAR_LCD
MOV A,#'R'
LCALL WRITE_TEXT
MOV A,#'O'
LCALL WRITE_TEXT
MOV A,#'O'
LCALL WRITE_TEXT
MOV A,#'M'
LCALL WRITE_TEXT
MOV A,#'.'
LCALL WRITE_TEXT
MOV A,#'N'
LCALL WRITE_TEXT
MOV A,#'O'
LCALL WRITE_TEXT
MOV A,#'.'
LCALL WRITE_TEXT
MOV A,#8CH
LCALL WRITE_TEXT
MOV A,#'3'
LCALL WRITE_TEXT
MOV A,#'0'
LCALL WRITE_TEXT
MOV A,#'2'
LCALL WRITE_TEXT


CLR RS
MOV DATA,#140h
SETB EN
CLR EN
LCALL WAIT_LCD



MOV A,#'M'
LCALL WRITE_TEXT
MOV A,#'r'
LCALL WRITE_TEXT
MOV A,#'.'
LCALL WRITE_TEXT
MOV A,#'M'
LCALL WRITE_TEXT
MOV A,#'A'
LCALL WRITE_TEXT
MOV A,#'N'
LCALL WRITE_TEXT
MOV A,#'I'
LCALL WRITE_TEXT
MOV A,#'S'
LCALL WRITE_TEXT
MOV A,#'H'
LCALL WRITE_TEXT
MOV A,#' '
LCALL WRITE_TEXT
MOV A,#'Y'
LCALL WRITE_TEXT
MOV A,#'A'
LCALL WRITE_TEXT
MOV A,#'D'
LCALL WRITE_TEXT
MOV A,#'A'
LCALL WRITE_TEXT
MOV A,#'V'
LCALL WRITE_TEXT

Added after 5 minutes:

it will display in this format
ROOM NO.301
Mr.SURANJIT KOSTA
 

Re: interfacing

After printing the above string on the LCD, wait for 20 secs (delay loop for 20 sec) and then write the next string to be displayed. Is it not simple.? Or am I not understanding your problem properly.?

I suggest you to write a subroutine to write strings on the LCD.

:D
 
Re: interfacing

hiii, I have compiled my coding in keil µversion3 and its is showing the following error...
lcd.asm(12): error A9: SYNTAX ERROR
lcd.asm(19): error A9: SYNTAX ERROR
lcd.asm(21): error A9: SYNTAX ERROR
lcd.asm(31): error A9: SYNTAX ERROR
lcd.asm(36): error A9: SYNTAX ERROR
lcd.asm(41): error A9: SYNTAX ERROR
lcd.asm(51): error A9: SYNTAX ERROR
lcd.asm(61): error A9: SYNTAX ERROR
lcd.asm(98): error A9: SYNTAX ERROR
lcd.asm(168): error A9: SYNTAX ERROR
can anyone help me...
 

Re: interfacing

thanx for ur support...u have helped me very much......the credit goes to u...
 

Re: interfacing

i have a problem...i have burn the ic....but the circuit diagram avaible is for 4 bits and my program is of 8 bits...for 4 bits a crystal of 3.57MHz is used...do i have to use crystal of another frequency....i'm attaching the ckt diagram....plz do reply
 

Re: interfacing

i'm burning my IC with SUPERPRO burner...but it is showing me some error...i'm attaching the snapshot of it......plz tell me whether it means i need a new IC...


this MANUFACTURER ID ERROR means????
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top