Post Go back to editing

Cannot speak to the control interface

Category: Hardware
Product Number: LTC4332

I am unable to talk to the LTC4332 control interface. I am using a stm32f407 using mode 0, 8 data bit,656.25 kHz Buadrate SPI configuration.
PINS - ON: high, REMOTE: low, LINK: low side of LED, SS1-SS3: high, Speed1 and Speed2: low, INT: high, VL and VH: tied to 3.3V. 



I am trying to read the WORDLENGTH register 08h, but it is not responding on MISO ( I have checked that D0 line works on logic analyzer ). I am at my wits end on what I might be doing incorrectly.

  • nSSC is the chip select for addressing the LTC4332's internal target device.  The schematic appears to suggest that it is connected to a static pull-up/pull-down jumper and I don't see an obvious means for connecting to the processor.  This pin needs to be toggled to frame the SPI transaction with the internal target device. 

    Eric

  • 	// SPI1 configuration for LTC4332 (Mode 0, 8 bits, < 2 MHz)
    	SPI_LTC4332_Init.SPI_Direction = SPI_Direction_2Lines_FullDuplex;
    	SPI_LTC4332_Init.SPI_Mode = SPI_Mode_Master;
    	SPI_LTC4332_Init.SPI_DataSize = SPI_DataSize_8b;
    	SPI_LTC4332_Init.SPI_CPOL = SPI_CPOL_Low;      // CPOL = 0 (Idle LOW)
    	SPI_LTC4332_Init.SPI_CPHA = SPI_CPHA_1Edge;    // CPHA = 0 (1st clock edge)
    	SPI_LTC4332_Init.SPI_NSS = SPI_NSS_Soft;
    	SPI_LTC4332_Init.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_256; // ≈ 1.3Mhz
    	SPI_LTC4332_Init.SPI_FirstBit = SPI_FirstBit_MSB;
    	SPI_LTC4332_Init.SPI_CRCPolynomial = 0x87;

    Actually, I am connecting it to the MCU using the middle pin.

    The SS1 - SS3 pins are also pulled up using jumpers from their headers to VL.
    I understand my photo isn't the best way to see all these connections.
    The logic analyzer is also sniffing SSC line currently.
    Also attached code for SPI configuration, but the logic analyzer reading should be more comprehensive.