I2c-slave

From wikipost
Revision as of 22:05, 16 March 2014 by Admin (talk | contribs) (Created page with "These code snippets and functions are intended for an I2C slave device. Functions: * listen on a set I2C device ID and issue an acknowledge bit when addressed * read incomin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

These code snippets and functions are intended for an I2C slave device.

Functions:

  • listen on a set I2C device ID and issue an acknowledge bit when addressed
  • read incoming bytes when addressed (i.e. master sends the slave a 'write')
  • detect incoming read requests (i.e. when master sends us the write/read/address sequence)
  • reply back to read requests (i.e. master sets the clock, slave sets SDA)


(code available, just not yet copied here)