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.

Parallel Port 0 and Pin 0 in Keil Simulation

Status
Not open for further replies.

bianchi77

Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,313
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Activity points
9,442
I have a simulation in Keil,

Why are the pins not blinking together with P0 ?

Thanks
P0.jpg
 

Code:
#define  LCD_DataPortL P0
.
.
.
.
.
void Lcd_Write_Com( int  DH)	 //ÃüÁî
{	
    LCD_RS=0;
	LCD_CS =0;	 
	LCD_DataPortH=DH>>8;	
	LCD_DataPortL=DH;		
	LCD_WR=0;
	LCD_WR=1;
	LCD_CS =1;	
}
.
.
.
.
.
.
void lcd_write_color(char hh,char ll)	//·¢ËÍÑÕÉ«Êý¾ÝΪÌá¸ßËٶȸß8λµÍ8λ·Ö±ð´«µÝ	
{
    LCD_RS=1;
	LCD_CS =0;	  				
	LCD_DataPortH=hh;	
	LCD_DataPortL=ll;					
	LCD_WR=0;
	LCD_WR=1;
	LCD_CS =1;	
}


---------- Post added at 12:42 ---------- Previous post was at 12:41 ----------

Can u provide the code for it...
The code :
Code:
#define  LCD_DataPortL P0
.
.
.
.
.
void Lcd_Write_Com( int  DH)	 //ÃüÁî
{	
    LCD_RS=0;
	LCD_CS =0;	 
	LCD_DataPortH=DH>>8;	
	LCD_DataPortL=DH;		
	LCD_WR=0;
	LCD_WR=1;
	LCD_CS =1;	
}
.
.
.
.
.
.
void lcd_write_color(char hh,char ll)	//·¢ËÍÑÕÉ«Êý¾ÝΪÌá¸ßËٶȸß8λµÍ8λ·Ö±ð´«µÝ	
{
    LCD_RS=1;
	LCD_CS =0;	  				
	LCD_DataPortH=hh;	
	LCD_DataPortL=ll;					
	LCD_WR=0;
	LCD_WR=1;
	LCD_CS =1;	
}
 

You are using 8051 micro controller right...
Have you used pull resistors for port 0
 

You are using 8051 micro controller right...
Have you used pull resistors for port 0
I don't think pull up resistors will help, since I can't see output signal in those pins on simulation and on a real chip....
so how can I make the P0 pin runing together with Port P0 ?
 

I don't think pull up resistors will help, since I can't see output signal in those pins on simulation and on a real chip....
so how can I make the P0 pin runing together with Port P0 ?

I moved it to P3 and it's ok...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top