The error I am getting when I compile is that the #include <pic.h> cannot be found.
What does this portion of code mean?:
Code:
@ ((unsigned)&PORTE*8+0);
Couldn't that whole portion of code be replaced by the code below since TRISE = 0x89?:
Code:
#include<16F877A.h>
static bit LCD_RS = 0x9.0 // Register Select
static bit LCD_EN = 0x9.2 // ENable
static bit LCD_RW = 0x9.1 // R/W
#define EN_TRIG ((LCD_EN = 1),(LCD_EN = 0));
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Wed Mar 21, 2012 6:35 pm
That's because it's for the Hi-Tech C compiler. Are you using CCS or
Hi-Tech ?
If you are using the CCS compiler:
If you need an lcd driver, don't waste your time converting Hi-Tech code
to CCS. Just use the CCS compatible drivers. Either use lcd.c from the
CCS drivers directory:
I had created my own LCD header file but I am having trouble sending data to the screen that is coming from another pic and thought that my coding would probably have been the problem.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum