LCD JHD162A dtn

Status
Not open for further replies.

dsider

New Member
Hi, i am new in uC programming, i want to use the LCD to display a clock signal from my AT89C52 uC, i found the datashet for JHD162A dtn, but the tut, does not have the instructions used to set chars on LCD panel, I understand the most functions of pins, but, Can someone explain me, what is the use of the RS pin?, and, Can you give me an example to set a single char on the module?, that is everything, from there, I can make my own path to master the LCD module p ), was a joke!!!.

Thank you, from Mexico to the world.
 
the RS pin determines how the signal in the d0-d7 is interpreted by the lcd controller . if rs is high the data is interpreted as a command to the controller or otherwise data (or opposite ? ) ..hava a look at nigel lcd tut: for more info.
 
Many many, thank you!!!

Then thank you very much that they answered my post, already I found something very good in the page 8052.com

Pues muchas gracias a los que contestaron mi post, ya encontré algo muy bueno en la página 8052.com, thank you!!!
 
/*----------------------------------------------------------------
-----------------SEND A CHARACTER TO LCD-------------------------
-----------------------------------------------------------------*/
void Lcd_Send(unsigned char a)
{
Select_DataRegister;
Write_Lcd;
Data_Lcd(a);
Set_Enable;
delay(30);
Clear_Enable;
delay(30);
}

/*----------------------------------------------------------------
------------FUNCTION TO INITIATE LCD -----------------------------
-----------------------------------------------------------------*/
void Init_Lcd(void)
{
char init[10];
int i;
init[0] = 0x01;
init[1] = 0x38;
init[2] = 0x0c;
init[3] = 0x06;
init[4] = 0x80;
Select_InstructionRegister;
Write_Lcd;
for(i=0;i<5;i++)
{
Data_Lcd(init);
Set_Enable;
delay(30);
Clear_Enable;
delay(30);
}
}

i have done LCD interfacing with parallel port and avr microcontroller. The above codes are the working ones

for LCD with parallel port refer page61 of
MY EXPERIENCE IN PARALLEL PORT INTEFACING
you can get it from yahoo group-booksbybibin
http://groups.yahoo.com/group/booksbybibin/

comments about this book
http://www.booksbybibin.blogspot.com/
 
Ok

I already understand that code, tnks very much.
Just another question, where do you write that C code?
Which compiler or editor is used for program that?

I undestand C code now, but where can I found that SW?

-----------------------
Muy bien, ya entendí ese código, muchas gracias.
Solo otra pregunta, ¿En dónde escribes ese código de C?
¿Cuál compilador o editor es usado para programar eso?

Si entiendo el códigode C ahora, pero ¿dónde encuentro ese software?

******
Thank you very much, muchas gracias
 
TNkx

Ok, thanks im already making the download, thanks bro!!!

Esta bien, gracias, ya estoy haciendo la descarga, gracias hermano!!!!
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…