home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1997 / ARCHIVE_97.iso / discs / mag_discs / volume_08 / issue_06 / risc_os / IIC < prev    next >
Text File  |  1988-09-28  |  885b  |  27 lines

  1. ; > &.Doc180.IIC
  2.  
  3. Title:          IIC/1
  4. Description:    This document describes the IIC module in RISC OS 2.00
  5.  
  6. A module "IIC" in RISC OS 2.00 allows reading and writing to IIC devices
  7. which may be attached to podules, as well as to the internal CMOS RAM/clock
  8. chip.
  9.  
  10. SWI IIC_Control (&240)
  11. ----------------------
  12.  
  13. in:     R0 = device address (bit 0 set => read operation, clear => write)
  14.         R1 -> data block
  15.         R2 = length of data block
  16.  
  17. out:    V=0 => successful operation; all registers preserved; for a read
  18.                operation, the data block is updated
  19.         V=1 => error; R0 -> error block; for a read operation, data block
  20.                possibly partly updated
  21.  
  22. Possible errors to-date
  23. -----------------------
  24. "No acknowledge from IIC device", error number &20300: the device failed to
  25. acknowledge, either to the device address, or during the data transfer.
  26.  
  27.