ings
Member level 4
- Joined
- Sep 8, 2014
- Messages
- 78
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 6
- Activity points
- 988
i build also this project but when i m modify the configuraion of pin of LCD he doesnt work in isis i m modify
with
I dont know why in your configurtion you aven't define al the pin?
Code:
// LCD display ports etc
#define LCDdata LATE // data port
#define LCDdataEnable TRISE
#define RS LATBbits.LATB15 // RS bit in LCDstatus
#define RW LATDbits.LATD5 // read/write bit in LCDstatus
#define E LATDbits.LATD4 // enable bit in LCDstatus
#define Eenable TRISDbits.TRISD4
#define ERSenable TRISDbits.TRISD5
#define RWenable TRISBbits.TRISB15
Code:
#define LCDdata LATE // data port
#define LCDdataEnable TRISE
//#define RS LATBbits.LATB15 // RS bit in LCDstatus
#define RW LATDbits.LATD5 // read/write bit in LCDstatus
//#define E LATDbits.LATD4 // enable bit in LCDstatus
//#define Eenable TRISDbits.TRISD4
//#define ERSenable TRISDbits.TRISD5
#define RWenable TRISBbits.TRISB15
#define RS LATDbits.LATD0
#define E LATDbits.LATD1
#define LCD_D4 LATDbits.LATD2
#define LCD_D5 LATDbits.LATD3
#define LCD_D6 LATDbits.LATD4
#define LCD_D7 LATDbits.LATD5
#define ERSenable TRISDbits.TRISD0
#define Eenable TRISDbits.TRISD1
#define LCD_D4_Direction TRISDbits.TRISD2
#define LCD_D5_Direction TRISDbits.TRISD3
#define LCD_D6_Direction TRISDbits.TRISD4
#define LCD_D7_Direction TRISDbits.TRISD5