I2C N&Volts 8/02
Archiver
Posts: 46,084
Why didn't they use the I2C commands to do the EEPROM
communications. Is this because these statements are not available
on the BS2, or is you approach more efficient for other reasons.
thanks
Mike
communications. Is this because these statements are not available
on the BS2, or is you approach more efficient for other reasons.
thanks
Mike
Comments
a BS2.
For those interested, I have successfully bit bashed I2C on a BS2 (which
doesn't have built in I2C commands, like the BS2p).
I've managed to write to, and read from, a 24LC02 2kb EEPROM.
Details are at http://www.lennard.net.nz/ click on Circuit Ideas, then
select I2C.
The page is still being constructed, and I will hopefully add the code to
the page by the end of today (NZ time).
cheers,
Ben.
--
http://www.lennard.net.nz/
Ben Lennard, NCEE, Dip EE
Web Hosting and Electronics R&D
Hm: +64 4 972 7567
Mb: +64 21 536 627
87 Spencer Street
Crofton Downs
Wellington
New Zealand
"To the optimist, the glass is half full. To the pessimist, the glass is
half empty. To the engineer, the glass is twice as big as it needs to be."
No animals were harmed in the transmission of this email, although the
Dog next door is living on borrowed time, let me tell you! Those of you
with an overwhelming fear of the unknown will be gratified to learn that
there is no hidden message revealed by reading this warning backwards.
> From: "lightningshack" <MikDolan54@a...>
> Reply-To: basicstamps@yahoogroups.com
> Date: Thu, 29 Aug 2002 19:55:05 -0000
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] I2C N&Volts 8/02
>
> Why didn't they use the I2C commands to do the EEPROM
> communications. Is this because these statements are not available
> on the BS2, or is you approach more efficient for other reasons.
>
> thanks
> Mike
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and Body
> of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
use of I2C on the other BS2 series BASIC Stamps.
-- Jon Williams
In a message dated 8/29/02 3:11:53 PM Central Daylight Time,
MikDolan54@a... writes:
> Why didn't they use the I2C commands to do the EEPROM
> communications. Is this because these statements are not available
>
[noparse][[/noparse]Non-text portions of this message have been removed]
Interesting timing this...
I haven't even read the article in Nuts and Volts on I2C on a BS2, and have
come up with my own solution.
The code is now on my web site http://www.lennard.net.nz/
Click on circuit ideas, then I2C.
Will be interesting to see the differences in the Nuts and Volts article and
how I did it. N & V probably better, considering somewhat of a difference
in experience... :-)
I can see I2C being very useful in freeing up more pins. Example, I will be
working on getting an HD44780 based LCD display down to only 4 pins needed
to connect to the BS2 (5 if you need to control RW), using a PCF8574 I2C to
Parallel port IC.
Cheers,
Ben, Windy Wellington, New Zealand.
--
http://www.lennard.net.nz/
Ben Lennard, NCEE, Dip EE
Web Hosting and Electronics R&D
Hm: +64 4 972 7567
Mb: +64 21 536 627
87 Spencer Street
Crofton Downs
Wellington
New Zealand
"To the optimist, the glass is half full. To the pessimist, the glass is
half empty. To the engineer, the glass is twice as big as it needs to be."
No animals were harmed in the transmission of this email, although the
Dog next door is living on borrowed time, let me tell you! Those of you
with an overwhelming fear of the unknown will be gratified to learn that
there is no hidden message revealed by reading this warning backwards.
> From: Ben <ben@l...>
> Reply-To: basicstamps@yahoogroups.com
> Date: Fri, 30 Aug 2002 08:15:41 +1200
> To: <basicstamps@yahoogroups.com>
> Subject: Re: [noparse][[/noparse]basicstamps] I2C N&Volts 8/02
>
> Speaking of I2C and EEPROMs, I have had some success with this recently, on
> a BS2.
>
> For those interested, I have successfully bit bashed I2C on a BS2 (which
> doesn't have built in I2C commands, like the BS2p).
>
> I've managed to write to, and read from, a 24LC02 2kb EEPROM.
>
> Details are at http://www.lennard.net.nz/ click on Circuit Ideas, then
> select I2C.
>
> The page is still being constructed, and I will hopefully add the code to
> the page by the end of today (NZ time).
>
> cheers,
>
> Ben.
> --
> http://www.lennard.net.nz/
> Ben Lennard, NCEE, Dip EE
>
> Web Hosting and Electronics R&D
>
> Hm: +64 4 972 7567
> Mb: +64 21 536 627
> 87 Spencer Street
> Crofton Downs
> Wellington
> New Zealand
>
> "To the optimist, the glass is half full. To the pessimist, the glass is
> half empty. To the engineer, the glass is twice as big as it needs to be."
>
> No animals were harmed in the transmission of this email, although the
> Dog next door is living on borrowed time, let me tell you! Those of you
> with an overwhelming fear of the unknown will be gratified to learn that
> there is no hidden message revealed by reading this warning backwards.
>
>
>
>
>> From: "lightningshack" <MikDolan54@a...>
>> Reply-To: basicstamps@yahoogroups.com
>> Date: Thu, 29 Aug 2002 19:55:05 -0000
>> To: basicstamps@yahoogroups.com
>> Subject: [noparse][[/noparse]basicstamps] I2C N&Volts 8/02
>>
>> Why didn't they use the I2C commands to do the EEPROM
>> communications. Is this because these statements are not available
>> on the BS2, or is you approach more efficient for other reasons.
>>
>> thanks
>> Mike
>>
>>
>> To UNSUBSCRIBE, just send mail to:
>> basicstamps-unsubscribe@yahoogroups.com
>> from the same email address that you subscribed. Text in the Subject and
>> Body
>> of the message will be ignored.
>>
>>
>> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>>
>>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and Body
> of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>