On the contrary, helps me understand it a bit better.
I have the LCD connected to a small solderless breadboard with 4 jumper wires +ve, GND, SDA and SCL. I have 5K6 resistors pulling SLC and SDA lines high. The breadboard is connected to the EasyPIC5 board via port C as C3 and C4 correspond to the i2C pins on the 18F4580 I'm using. When powered up the GLCD displays "ByVAC I2C", presumably confirming the mode it's set to (I've sought confirmation from the developer). I've created the following code based on the info in the above post
Code:
; config settings 18F2550/4550/18F4580, running @ 40Mhz using 10mhz crystal
ASM
__CONFIG _CONFIG1H, _OSC_HSPLL_1H
__CONFIG _CONFIG2L, _PWRT_ON_2L
__CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
__CONFIG _CONFIG3H, _PBADEN_OFF_3H
__CONFIG _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L
ENDASM
DEFINE I2C_HOLD 1
DEFINE OSC 40
ADCON1 = $0F
clear
SDA var PORTC.4
SCL VAR PORTC.3
main:
I2Cwrite SDA, SCL, $68,["hello"]
pause 1000
Goto main
This compiles OK but when squirted to the PIC the screen is not affected and still displays the "Byvac" message. -
Here's me thinking that it would be as easy as using LCDOUT.....
Bookmarks