PropBasic I2C Routines
train nut
Posts: 70
Has anyone out there written any routines in propbasic to handle I2C operations to EEPROM? The manual is not very specific about the variables.
Ben
Ben
Comments
Ben
[Edit] I just looked at the code generated by I2CWRITE and it does indeed send just the lower eight bits of your variable. If you look carefully you'll see that the value to write is moved into __temp3 and then shifted left by 24 bits. This moves the lower eight bits to the MSB bits position (31..24); this is required to send the bits MSB first.
Thanks again
Ben
I know this was a year ago, but what ya up to? Are you doing something with the propeller for model railroad?
G
Its too bad Parallax dosent have a Prrop1 chip in a smaller package with less I/O.
It would make a great DCC decoder with sound.