I am using PIC18F4620 to interface with a 16x2 LCD display using PORT A as pasted in the code below:
Code: Select all
char *text = "mikroElektronika";
void main() {
PORTA = 0;
TRISA = 0; // PORTA is output
ADCON1 = 0x0F;
CMCON = 0x07;
Lcd_Custom_Config(&PORTA,7,6,5,4,&PORTA,1,2,3); // Initialize LCD on PORTA
Lcd_Custom_Cmd(Lcd_CURSOR_OFF); // Turn off cursor
Lcd_Custom_Out(1, 1, text); // Print text at LCD
}
Thanks.
AR