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.
sample LCD code for PIC
This is a long shot but try this?
#define LCD_DATA PORTA
#define LCD_STROBE() ((LCD_EN = 1),(LCD_EN=0))
/* write a byte to the LCD in 4 bit mode */
void
lcd_write(unsigned char c)
{
DelayUs(40);
LCD_DATA = ( ( c >> 4 ) & 0b00111100 );
LCD_STROBE();
LCD_DATA...
mtc-c162dprn-2n
Hi, i've tried the above codes but failed to get the LCD to work. All it does is to show black boxes on the 1st line and nothing on the second line (exactly the same if i were to simply plug in 5 v into the lcd module without any u-controller). I'm guessing its due to the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.