Post Go back to editing

Silicon Error - SPI SCLK_M on wrong pin with SECONDARY_I2C_ENBL

Category: Hardware
Product Number: ADAU1463

The Secondary I2C Master Register SECONDARY_I2C_ENBL setting moves SPI master control port signal SCLK_M from pin 34 (MP2) to pin 30 (MP24). This setting should only move the I2C signals to SCL2_M and SDA2_M, but it also moves the SPI SCLK signal in error. All other SPI master control port signals - SS_M MOSI_M MISO_M - remain on the correct pins.

Although the data sheet says, "Note that only one of the two protocols can be used at a time," there is no expectation that SCLK_M will move, and no documentation of this.

My test hardware is a custom board that brings pins 30 through 35 to a header, along with the /WP signal of the SPI EEPROM and the /RESET signal for the SigmaDSP. This allows an 8-channel logic analyzer to view all relevant signals simultaneously. My design depends upon the I2C Master 2 pins functioning, because all DAC, ADC, and A2B chips are attached there. The SELFBOOT EEPROM is on SPI Master.

STEPS TO REPRODUCE SILICON ERROR:

1. Create a project in SigmaStudio+ 2.4.0 - preferably one which uses the I2C Master 2 pins. Use Link-Compile-Download to confirm that it functions when running on the hardware platform.

2. Use "Write Latest Compilation Through DSP" and note that the logic analyzer shows pins 30, 32, 33, and 35 have activity. The SPI SELFBOOT EEPROM write fails, since the chip does not see any SCLK_M activity from pin 34.

3. Without any further Link Compile or Download activity (which would alter the firmware), use SigmaStudio+ ADAU1463 Settings to toggle the SECONDARY I2C Master Enable at the bottom of the MULTIPURPOSE 1 page. Now use "Write Latest Compilation Through DSP" again and note that the logic analyzer shows pins 32, 33, 34, and 35 have activity as documented and as expected for proper operation.

4. You should be able to repeat the "Write Latest Compilation Through DSP" functions as many times as needed, while toggling the SECONDARY_I2C_ENBL setting, to witness the SPI master control port SCLK_M signal move between pins 34 (MP2) and 30 (MP24). It should not do this according to the data sheet documentation.

While it's theoretically possible that this is not a silicon error, it would require the "Write Latest Compilation Through DSP" firmware to be bit-banging the SPI master control port pins direcly, without the hardware peripheral engaged. I suspect that such bit-banging is not actually possible with SigmaDSP. Instead, I'm sure that the hardware SPI master control port peripheral is being used, and that the silicon routes the SPI SCLK_M signal to the wrong pin when I2C master 2 is selected.

Bottom line: There is no way to use the SPI master control port in firmware that has the I2C Master 2 port enabled. The only time the SPI master control port works is during SELFBOOT, before SECONDARY_I2C_ENBL gets set.

Parents
  • I understand now. I'm glad you found a workaround. Yes, you are correct. This behavior is because, internally, there is only one clock line in the M* port hardware block. The secondary I2C concept is, admittedly, a bit of a hack and definitely an architectural afterthought. The 146x parts are derivatives of the 145x parts with some minor extensions to improve I/O. Most of these just bring internal signals out to new pins with minor new control logic. To do this "properly" would have meant ripping up the M* port block, which was outside the scope of the project at the time. Sorry for the inconvenience.

    Ken

    *We avoid using the name used in the original data sheet now.

  • If I understand everything correctly, the stock firmware used by SigmaStudio and SigmaStudio+ should always set SECONDARY_I2C_ENBL to 0, at least for SPI-connected EEPROM, so that Write and Check of the SELFBOOT memory will succeed.

    As it stands, I must manually toggle that setting when I Write the latest compiled firmware through the DSP, and then I must remember to restore it to enable the Secondary I2C before using SigmaStudio for further development.

Reply
  • If I understand everything correctly, the stock firmware used by SigmaStudio and SigmaStudio+ should always set SECONDARY_I2C_ENBL to 0, at least for SPI-connected EEPROM, so that Write and Check of the SELFBOOT memory will succeed.

    As it stands, I must manually toggle that setting when I Write the latest compiled firmware through the DSP, and then I must remember to restore it to enable the Secondary I2C before using SigmaStudio for further development.

Children
No Data

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.