Yes there is file. You can edit it. There is example on forum cale LCD-AnyPIn, or something like that. But always have backup if you edit it.
You can find it in few places.
in PBP3 instalation folder there is few files .lib.
eg
pbppi14e.lib
Files correspond to PIC family.
For LCD look in that file for
Code:
btfsc LCDINITFLAG ; Has lcd been inititalized?
goto lcdout1 ; Yes
movlw 15100 >> 8 ; Wait at least 15ms
movwf R0 + 1
movlw low 15100
call PAUSEUSL
movlw 33h ; Init lcd
movwf R3 ; Save char
call lcdloop ; Send init
movlw 4200 >> 8 ; Wait at least 4.1ms
movwf R0 + 1
movlw low 4200
call PAUSEUSL
call lcdloop ; Send init (33) again
movlw 100 ; Wait at least 100us
call PAUSEUS
call lcdloop ; Send init (33) one more time
if ((LCD_BITS) == 8)
if ((LCD_LINES) == 1)
movlw 30h ; 8-bit mode, 1 line, 5x7 font
else
movlw 38h ; 8-bit mode, 2+ lines, 5x7 font
endif
else
movlw 22h ; Send init to 4-bit mode
movwf R3 ; Save character
call lcdloop ; Set interface to 4-bit mode
if ((LCD_LINES) == 1)
movlw 20h ; 4-bit mode, 1 line, 5x7 font
else
movlw 28h ; 4-bit mode, 2+ lines, 5x7 font
endif
endif
call lcdoutcom ; Send function set
movlw 0ch ; Display on, no cursor, no blink
call lcdoutcom
movlw 01h ; Display clear
call lcdoutcom
movlw 06h ; Lcd entry mode set, increment, no shift
call lcdoutcom
bsf LCDINITFLAG ; Set to initialized
movf R3 + 1, W ; Get saved char back (again)
goto lcdout1
lcdoutcom bsf LCDCDFLAG ; Set for command
everything between is LCD initialization.
In .lib files, there is bunch stuff that is optionally compiled. If you want to see just stuff that your code uses(there are again some optionally parts included) look for file .LST in your project folder.
And also search for same stuff as in lib. And you will se what PBP is doing in background.
Bookmarks