السلام عليكم انا عندي مشكلة في مشروع LCD مع 16f877a pic
lcd lmb16abc
انا منفذ المشروع عملي علي بريدبورد لكن LCD لا تظهر الا مربعات سوداء
هذا هو الكود علي mickroc
bit LCD_EN at RB0_bit;
sbit LCD_RS at RB1_bit;
sbit LCD_D4 at RB4_bit;
sbit LCD_D5 at RB5_bit;
sbit LCD_D6 at RB6_bit;
sbit LCD_D7 at RB7_bit;
sbit LCD_EN_Direction at TRISB0_bit;
sbit LCD_RS_Direction at TRISB1_bit;
sbit LCD_D4_Direction at TRISB4_bit;
sbit LCD_D5_Direction at TRISB5_bit;
sbit LCD_D6_Direction at TRISB6_bit;
sbit LCD_D7_Direction at TRISB7_bit;
void main() {
TRISB = 0x00;
TRISD = 0x00;
PORTB = 0x00;
PORTD = 0x00;
LCD_Init();
LCD_Cmd(_LCD_CLEAR);
LCD_Cmd(_LCD_CURSOR_OFF);
Lcd_Out(1,1,"LCD 4-bit");
while(1)
{
PORTD = ~PORTD;
Delay_ms(1000);
} }
|
صورة المشروع هاردوير
http://obrazki.elektroda.pl/8250643200_1367693836.jpg
ساعدونا الله يخليكم