LCD Routine... How it works?

Status
Not open for further replies.
Joined
Jul 25, 2012
Messages
1,192
Helped
171
Reputation
342
Reaction score
162
Trophy points
1,343
Activity points
0
Hello!

I got this code which sends string to LCD. I want to know wheather the characters of a string are sent to the LCD one by one or is it sent at once.

i.e., if I have a string "Hello!" is it sent as H e l l o. display one char at a time. or is the whole string pushed at once?

Code:
void lcd_data_str(char str[50]) //Function to send string
{ 
int p;
for (p=0;str[p]!='\0';p++)
{
lcd_data_str_pin = str[p];
rw = 0;
rs = 1;
en = 1;
delay(1);
en = 0;
}
return;

I'm asking this because I want to write my own LCD library in C and ASM.
 


void lcd_data_str(char str[50]) //Function to send string
{
}
This is not the way to pass the address of an array to a function.
Read "How to pass base address of an array to a function " and String handling from a C book.
 


The LCD will display one char at a time.
It'll not push the whole string at once.
It can be possible with Graphical LCD.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…