1 Reply Latest reply on Oct 12, 2018 12:24 AM by SrinathS_16

    I2C  driver of RTC (DS1307)for FX2LP

    siac_2560096

      i need sample code for RTC

        • 1. Re: I2C  driver of RTC (DS1307)for FX2LP
          SrinathS_16

          Hello,

           

          FX2LP I2C acts only as a master. You can connect the DS1307 device as a slave on the I2C bus. To communicate to the DS1307, you can use the EZUSB_WriteI2C() or the EZUSB_ReadI2C() APIs that come with the EZUSB.LIB library file. The source of the library file containing the definition of these APIs is present as part of the CY3684 DVK at the following location.

          C:\Cypress\USB\CY3684_EZ-USB_FX2LP_DVK\1.1\Target\Lib\LP\i2c.c

          C:\Cypress\USB\CY3684_EZ-USB_FX2LP_DVK\1.1\Target\Lib\LP\i2c_rw.c

           

          Best regards,

          Srinath S