EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / Hi Ganesh,Next time when you

Hi Ganesh,Next time when you

|

Microcontroller › 8051 › Significance of * (star) in this program › Hi Ganesh,Next time when you

December 13, 2013 at 5:56 am #10731
AJISH ALFRED
Participant

Hi Ganesh,

Next time when you post the code, please don’t forget to format it in the proper way as I’ve done for you this time.

 

void lcd_disp(unsigned char C) 
{
      LCD=C; LCD_RS=1; LCD_EN=1;
      delay_ms(1);
      LCD_EN=0; 
}
 
void lcd_data(unsigned char *disp) 
{ 
     while(*disp) 
            lcd_disp(*disp++); 
}
 
The *disp is a pointer to an array that holds the character to be displayed. Initially it will point to the first charcter of the array and as you increase the pointer like (*disp++) it point to the succeeding characters.
 
Is this code working?
 
If you have any doubts, please feel free to post here.

RSS Recent Posts

  • Pnp transistor query March 5, 2026
  • H bridge current direction logic March 5, 2026
  • Sine wave oscillator schematic please? March 5, 2026
  • LM350K variable power supply March 5, 2026
  • Hello & a Request: Recommendations for obsolete Panasonic filter Capacitors. March 5, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise