Bah! Still not having much luck here,
I have the LCD routines working, and changed the LCD_anypin file as follows:
Code:
;===============( DO NOT Change anything below this line )====================
;----[Virtual LCD Port --- 4bit mode]-----------------------------------------
ASM
LCD_Port_HNIB macro ; Port definition for LCD High Nibble
Vbit LCDCDFLAG, _LCD_RS ; Select Command/Data register
Vpin 4, _LCD_DB4 ; Put the High Nibble on the bus
Vpin 5, _LCD_DB5
Vpin 6, _LCD_DB6
Vpin 7, _LCD_DB7
PulseLow _LCD_E, 5 ; pulse the Enable Pin for 2 us
endm
;-----------------------
LCD_Port_LNIB macro ; Port definition for LCD Low Nibble
Vpin 0, _LCD_DB4 ; Put the Low Nibble on the bus
Vpin 1, _LCD_DB5
Vpin 2, _LCD_DB6
Vpin 3, _LCD_DB7
PulseLow _LCD_E, 5 ; pulse the Enable Pin for 2 us
endm
ENDASM
Since I'm only using a single display, hopefully that's all that is needed to enable the E pin for 5us.
Still the display coming on at all after startup is hit & miss.
It seems to come on straight after programming with the pickit2 (when powered by the pickit2,
but doesn't want to come on when powered by any other means (or even by the pickit2 when not being programmed).
Bookmarks