I try to avoid doing Math in any I2CREAD or I2CWRITE statement. Do it first and keep the statements as clean as possible. Always do what the book says. It says use a particular kind of variable, then use a particular kind of variable. It doesn't say Math is allowed, and doesn't show you examples with Math - so don't do it.
You DON'T need PAUSEs for READING - you can do that at top speed. You DO need them for writing - the EEPROM Datasheet will tell you how much is required.




Bookmarks