This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UCD9222/UCD7242 programming with I2C - receives NACK for every command after PAGE

Other Parts Discussed in Thread: UCD9222, UCD7242

Hi,

I am trying to configure UCD9222 connected to UCD7242. I have fully functional and tested I2C with clock stretching as long as 25ms. 

The initial commands for VIN setup are properly acknowledged by UCD9222. 

The immediate command after VIN setup is PAGE which also is acknowledged but all the later commands after PAGE receive NACK.

Please suggest if my approach is mistaken.

Thanks,

Pawan

  • Configuration Programming of UCD Devices.pdfIn Fusion GUI, you can export a PMBus script to configure the device. Follow the script and it should work.

    Alternatively, you can export a data flash file from an online device. It is an image of the data flash. You can use it to program other devices. This method is faster in programming. Please refer to the attached file.

    The clock stretching time should be up to 35ms.

    Regards,

    Zhiyuan  

  • Many thanks Zhiyuan Hu. Is it possible to share the data flash file source as I need to understand every bit of Power Management and the many ways of doing it. I really appreciate your time

    Thanks,
    Pawan Ghotikar
  • The data flash file is exported from your device using Fusion GUI. It is under File->Export...

    Regards,

    Zhiyuan

  • Alright now I get it.
    I am using I2C driver on FPGA. If I am using command-based configuration (PMBus-based configuration) I understand that I need to use normal mode. But as I see the data streaming, especially for block write commands, becomes a tedious and lengthy procedure taking up lot of look up table (LUT) memory. Can you suggest other feasible approaches except for Fusion GUI, if any ? If not, can you direct me to a sample configuration specifically for UCD9222? I have to make a configuration LUT and stream it on I2C using Write command and read for verify.

    Thanks,
    Pawan Ghotikar
  • Please refer to the previously attached document, Section 6.4.2.1 and Section 9.5, Microcontroller Writes Data Flash, Normal Mode Scheme.

    Writing data flash file requires shorter I2C transactions. But you will need to first use Fusion GUI to program the device, then export a data flash file from an online device. The exported data flash file can be used to program other devices.

    Regards,
    Zhiyuan