пример из Mikrobasic for PIC, качаете демо, читаете хелп и через 5-50-500 минут имеете желаемое

'(*
' * Project name:
' lcd_demo
' * Copyright:
' © mikroElektronika, 2005 - 2006
' * Revision History:
' 20050312:
' - initial release.
' * Description:
' This code demonstrates displaying text on LCD (4 bit interface)
' and use of LCD library procedures and functions.
' * Test configuration:
' MCU: PIC16F877A
' Dev.Board: EasyPIC3
' Oscillator: HS, 8.000 MHz
' Ext. Modules: None
' SW: mikroBasic v5.0 or higher
' * NOTES:
' None
' *)
program Lcd_demo
main:
Lcd_Init(PORTB) ' Initialize LCD connected to PORTB
Lcd_Cmd(LCD_CLEAR) ' Send command to LCD "clear display"
Lcd_Cmd(LCD_CURSOR_OFF) ' Send command cursor off
Lcd_Out(2,1,"PLEASE WAIT") ' Print txt to LCD, 2nd row, 1st column
end.