I2C serial and expansion


Author Message
rhamer
Senior Member

Joined: 06/06/2011
Location: Australia
Posts: 174
Posted: 08:19am 29 Jun 2011      

  jebz said   I think for a lot of the parallel applications a PFC8574 I2C expander would be good. A whole byte can be output at once. The addressing on I2C allows many PFC8574s to exist on the same bus for display, keyboard and other I/O. A DS1307 on the same I2C bus would allow maintenance of the time even with power breaks.

The stamp has a number I2C modules that can be plugged on with little difficulty. The syntax used seems quite clear and usable -
I2CIN 1, 80, [A]
I2COUT 1, 80, [C]
Variables A&C can even be strings like you'd send to a LCD display.

Don's got a heap of PFC8574s in stock.

interesting, can't use [B ] it's bold


I thought about that kind of approach to get really low speed serial.

You set 8 bits then clock them out with another line. Then do the reverse for the other direction. The off board device (probably another PIC) would buffer it and handle the real serial.

Takes heaps of I/O lines and I could probably write faster, but better than nothing.

Anyway, hopefully it won't come to that, and Geoff the Genius can figure it out.

Regards

Rohan
Rohan Hamer
HAMFIELD Software & Hardware Solutions

Makers of the Maximite Expander.

http://www.hamfield.com.au