-----Original Message-----
From: Randie Ohtsji [4555] <RemoveMErohtsjiTakeThisOuT
GLENVAN.GLENAYRE.COM>
To: spamBeGonePICLISTspamBeGone
MITVMA.MIT.EDU <TakeThisOuTPICLISTEraseME
spam_OUTMITVMA.MIT.EDU>
Date: Thursday, 23 October 1997 7:01
Subject: Re: Implementing I2C questions
>Hi Thomas,
>
>> Take the PCF8574 from Philips. It's an I2C to 8Bit parallel (and vice
versa)
>> interface chip. So you can connect the LCD to the PCF. With a little bit
of
>> code you can even derive serial clocking, most LCD-Modules need something
>> like this.
>
>Thanks for the lead. I downloaded the data sheets from Philips and called
>the local rep to get me some real data books.
>
>Do you use a second PCF chip for control signals to the LCD? (ie. r/w,
>en, rs lines)
You don't need to. Assume you are sending bits 0 - 3 to an LCD as data, bit
4 - en, bit 5 - rw, bit 6 strobe?
msb first - write the nibble 0x0d
assume active hi for enable , strobe, write
0110000 - device enabled, write enabled
0111101 - data set, still as above
1111101 - ditto - strobe hi
0111101 - ditto strobe lo
do it again from line 2
>
>What do you do for a switch matrix using I2C?
>
There's an i2c version.
<snip>
>it really is !
>
>>it will only work with I2C-ready slave devices. If I could, I would
>>really like to implement this structure with non-I2C devices. Does
>>anyone know if this is possible and what kind of hardware decoding is
>
>Take the PCF8574 from Philips. It's an I2C to 8Bit parallel (and vice
versa)
{Quote hidden}>interface chip. So you can connect the LCD to the PCF. With a little bit of
>code you can even derive serial clocking, most LCD-Modules need something
>like this.
>
>>needed. I am hoping to implement this with the PIC16F84 (the developer's
>>"fav chip")
>
>If you are only driving devices in slave mode I strongly recommend a PIC
>with hardware implemented I2C. It's much easier to get results this way
>instead of writing lots of I2C-code.
>
s/w for doing it aint that hard.
MikeS
<RemoveMEmikesmith_oz
TakeThisOuTrelaymail.net>