Ok....new question.....(I2C)
James Long
Posts: 1,181
Ok....for my next major feat....I would like to use I2C.....
Now for the question........
How fast does the Propeller communicate on the I2C network?
This is not that important..... just for information type thing.
I know there are 400kHZ I2C components .....just wondering if the Propeller communicates on the I2C network that fast....or is it throttled down.
James L
Master of questions
Now for the question........
How fast does the Propeller communicate on the I2C network?
This is not that important..... just for information type thing.
I know there are 400kHZ I2C components .....just wondering if the Propeller communicates on the I2C network that fast....or is it throttled down.
James L
Master of questions
Comments
The I2C is strictly software and 400KHz is when you hobble a cog, at least in assembler to make it go slow enough so that it's not too fast for the I2C bus.
So yes, it is throttled down [noparse]:)[/noparse] but not in the way you were asking.
*Peter*
So how fast would it run in it's present state....on it's own cog?...I know this is an estimate.....but hey I'm inquisitive.
James
Download a copy of my Propeller OS and look at the module OS_loaderInit. It includes an assembly I2C driver that is configurable to run at 400kHz or 100kHz. The link is <http://forums.parallax.com/forums/attach.aspx?a=9168>. There is one bug that I've since corrected that involves reading from devices that don't use a register address, just a device select code. There also is a bug that I'm still hunting where I2C works fine on pins with pullups on both the clock and data lines (as there is supposed to be). The boot EEPROM on pins 28/29 is treated as a special case because the Demo Board doesn't have a pullup on the clock line and that special case does work, but not if there actually is a pullup. I'll get to that maybe Sunday night or Monday.
Mike
I'll check it out.....should be interesting.
James