Hello,
I am trying to use the lcd.h header, with a PIC16F887, and xc8.
The code compiles fine, but the lcd will only power up, giving solid blocks on the first line.
The code is directly copied from the tutorial with the following changes.
#define _XTAL_FREQ 20000000
#define RS RB2
#define EN RB3
#define D4 RB4
#define D5 RB5
#define D6 RB6
#define D7 RB7
#include <xc.h>
#include "lcd.h";
TRISB = 0x00;
ANSELH = 0x00;
I have checked the connections, and all are ok. I suspect that port b is not working for some reason, but I have studied the datasheet, and can’t see that I have missed anything.
Can anyone please help?
Regards
Bob.