Creating an I2C Command

Creating an I2C Command

Communication Protocols Technique

This technique can be used in any GreenPAK with I2C

The I2C generator allows a user to make an I2C signal based on logic generators. It consists of two logic generators acting as SDA and SCL lines. The user can combine predefined I2C primitives to generate the needed waveform and choose an SCL frequency: 1k, 2.5k, and 5 kHz for the GreenPAK Advanced Development Platform and 1k, 2.5k, 5k, 10k, 20k, 50k, 100k, 200k, 400k, 1000 kHz for the GreenPAK Pro Development Platform.

To create an I2C signal using the I2C Generator:

  1. Select the Debug button.
  2. Select I2C generator on the SDA input of the I2C block.
  3. Go to Signal Wizard by clicking EDIT.
  4. Select PIN#8 as SCL and set the speed of the clock.
  5. Choose Read or Write composite commands.
  6. Open composite command and set the Slave address and Word address. For a “Read” command set byte count. For a “Write” command set data to write.

Figure A I2C Write Command

 

Figure B I2C Read Command

 

< Previous: Power Backup Management  |   Table of Contents   |   Next: Changing Your Design with I2C >