I added a PAUSE 250 between... and no. Still no joy.
I added a PAUSE 250 between... and no. Still no joy.
I didn't understand you were talking to two different devices.
I thought it was supposed to be writing the least significant digit to the right of the display,
and then the tens digit in the position to the left, on the same display.
The I2CWRITE still looks incomplete:
Code:I2CWRITE SDA,SDL,I2CDEVICESELECT,ADDRESSONDEVICE,DATA
Last edited by Art; - 16th October 2013 at 14:46.
You should post the data sheet for your single character LCDs. Very likely you need to set the new address on each LCD (one at the time) before using them on a I2C bus.
Cheers
Al.
All progress began with an idea
Al, thanks for the reply. The LCDs are dumb; I'm using a PCF8574 port expander to control the segments. I did look again at that datasheet and all seems well in that the I2C seems to be a very standard implimentation.
At this pint I'm exploring Art's assertion that its in the I2CWrite syntax - I think he's right; I just don't understand the "control byte" thing well enough to fix it. Lining up the commas...
I2CWRITE SDA, SCL, $70, ,OUTP <- my code
I2CWRITE SDA, SDL, I2CDEVICESELECT, ADDRESSONDEVICE, DATA <- Art's
Shows I've missed something. Art calls it the ADDRESSONDEVICE, but since I have no clue what the control byte would be on the chip I'm using (I read and understand the examples given for memory chips), I'm pretty sure thats where the problem lies.
Off, armed with a hint, in search of an answer.
If you are using NXP data sheet it's hard to understand address, the T I data sheet is more clear the link below to that data sheet
See page 6
http://www.google.com/url?q=http://w...0Ee8TD_UJQnvOw
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
I'm confused how the 1st I2C address is even responding.
Your device address range, dependent on which address bits are tied HI, is between $40 and $4E according the data sheet.
Verify which of your PCF8574 address select pins are pulled High and correct them on your current code because other than that it looks right.Code:01000000 = $40 ' With A2, A1, A0 all set to 0 : (bit 0 set to Write) 01001110 = $4E ' With A2, A1, A0 all set to 1 : (bit 0 set to Write)
Art, the 10ms PAUSE in the manual is referring to writing to an EEPROM that needs that Write delay because it's slow getting out of bed like me.![]()
Louie
The data sheet link passed on by Archangel is much appreciated! Way easier to read... thanks again.
LinkMTech- I have to be honest, the chips may be tha "A" version. I sandwiched the chip between the board and the LCD, so no way to tell, but I also marked each board with a correct address as I verified their function while building. I didn't think to mention the discrepancy because they work individually and it never occurred to me that the addresses could be part of the problem. It does make sense to check this out though as, of course, until the problem is found it may be anywhere.
I am at work presently and have no access to try any of these solutions for some hours, but I will give each every effort and report back soonest.
Amoque
These things are worth the time spent, they are beautiful when lit. Two are very nearly (I mean micro-smidgens different) the same size as the 128X64 GLCDS available in matching background and display color. Already I imagine a modular weather station (like a group of framed pictures) hanging on my den wall with groups of these providing clear visibility from anywhere in the room. Might even throw in a GLCD or two for graph functions. Gold foil touch sensors under glass... I tell ya boys, that's class, and I'm gonna get me some.
Bookmarks