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.

LPC 21XX Problem in interfacing lcd And led

Status
Not open for further replies.

bondkicha

Newbie level 4
Joined
Jul 22, 2010
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
india
Activity points
1,316
I have a problem in interfacing lcd and led in same port(i.e port 0).When i am using lcd alone it works.i connected lcd to (PO.4-P0.7).. when i connect led to( p0.8-p0.15),the lcd is not working..
any one please help me
 

How the LED is connected?
GPIO pin can source and sink 4mA current.
Publish circuit and code.
 

here is the code and proteus design
Code:
#include <lpc21xx.h>
#include "delay.h"
#include "Lcd_Header_LPC21xx.h"


int main(void)
{
	
		PINSEL0 = 0x00000000;
		IO0DIR |= 0xFFFFFFFF;
		IO0CLR |=(1<<1);
		lcd_init();
	
		while(1)
		{
			lcd_cmd(0x80) ;
			lcd_string(" WEL 2  LPC213X") ;
			lcd_cmd(0xC0) ;
			lcd_string("   LCD DISPLAY") ;
			delay(10000);
		}
}
dsn.JPG
 

Hi bondkicha
In your circuit diagram there is no connection between the vcc, vdd, vee.
You shoud provide the power supply to that
hear how you are operating the lcd by 4 bit only right?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top