GLK12232-25-WBL / PicBASIC Pro

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
tolrtd`
LCD?
Posts: 6
Joined: Fri Mar 23, 2007 2:17 pm

GLK12232-25-WBL / PicBASIC Pro

Post by tolrtd` »

Hello,

I have been trying for a number of hours to get my GLK12232-25-WBL working with I2C using a PIC16F877A and PicBASIC Pro. The device works fine using serial communication with the computer. The default address is 0x50. I have other devices working correctly on the I2C bus - but the LCD shows no signs of communication rather than the default screen.

I have tried numerous things in my code, but basically:

Code: Select all

SCL VAR PORT C.3
SDA VAR PORTC.4

I2CWRITE SDA,SCL,$FE,$50,[254,71]
I2CWRITE is defined as:
I2CWRITE data, clock, control, {address,} [value], {label}

This should turn off the backlight. I have tried clearing the screen, sending text, etc. I have tried to change the "control" from $FE to all sorts of things. The address should be fine, but I have tried changing that as well. Does anyone have working PBP code to talk to this device in I2C?

Thank you in advance.
Raquel
Matrix Orbital
Matrix Orbital
Posts: 834
Joined: Thu Aug 19, 2004 3:37 pm
Location: MO Office

Post by Raquel »

Hello tolrtd,

Thanks for your post.
I2CWRITE SDA,SCL,$FE,$50,[254,71]
I am not sure what the $FE parameter is (control), I do not think that it is the same as the display's command prefix. What do you have for control parameter in your other devices?

Check this out and see if it helps.

Best Regards,
Raquel Malinis
Design and Development
Matrix Orbital
tolrtd`
LCD?
Posts: 6
Joined: Fri Mar 23, 2007 2:17 pm

Post by tolrtd` »

Thank you for your reply, Raquel. The $FE I have in there was one of my many trials. My other device uses $16 but that does not work either. The address of that device is $A0. Unfortunately, that BS2 link you sent does not apply to my unit. Perhaps someone will read this who has used any MO display with PicBASIC and I2C :)
maxis
LCD?
Posts: 5
Joined: Tue May 06, 2008 2:08 pm

Post by maxis »

FYI

Unless your committed to I2C, you can strap a Max232 on that
sucker, and use SerOut2 command in PicBasic. with no need
to mod the display.

Yet I suppose this is of little comfort since you have already
done that!

Just plug the data output pin line into TTL side of Max232, and corresponding output to the Rx line on display.

Using SerOut2 I am able to send all decimal, at 19.200 baud, and it
allows pacing of transmission also, so with a little experimentation,
you don't even have to use hardware flow control.

A one pin display, without much fuss, as long as you don't need more that
19.2, PBP's limit with this command.
Scott G
Post Reply