LCD Test
LCD Test
#include <xc.h>
//Function Prototypes
void init_LCD(void); //
Function to initialize the LCD
void LCD_command(unsigned char cmd); //Function to pass
command to the LCD
void LCD_data(unsigned char data); //Function to
write character to the LCD
void LCD_write_string(char *str);//Function to write string to the
LCD
void msdelay (unsigned int time); //Function to generate
delay
//Function Definitions
void msdelay (unsigned int time) //Function to generate delay
{
unsigned int i, j;
for (i = 0; i < time; i++)
for (j = 0; j < 275; j++);//Calibrated for a 1 ms delay in
MPLAB
}