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
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#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;
}
The code :Can u provide the code for it...
#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;
}
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....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 ?