msanwer
Newbie level 2
hi dear,
i am new to pic and ccs compiler. i write a code for lcd interfacing and simulating on the proteus. lcd showes nothing. guide me please what and where is the error? the code is as following;
kind regards
msanwer
i am new to pic and ccs compiler. i write a code for lcd interfacing and simulating on the proteus. lcd showes nothing. guide me please what and where is the error? the code is as following;
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 #include "C:\Program Files\PICC\lcd1.h" #define LCD_RS_PIN PIN_C0 #define LCD_RW_PIN PIN_C1 #define LCD_ENABLE_PIN PIN_C2 #define LCD_D4 PIN_C3 #define LCD_D5 PIN_C4 #define LCD_D6 PIN_C5 #define LCD_D7 PIN_C6 //End LCD module connections //#include <16F877A.h> #use delay(crystal=20000000) #include <lcd1.c> void main(){ set_trix_c(0x00); lcd_init(); // Initialize LCD module while(TRUE){ lcd_putc('\f'); lcd_gotoxy(4, 1); // Go to column 4 row 1 lcd_putc("PIC16F877A"); delay_ms(2000); } }
kind regards
msanwer