Other Parts Discussed in Thread: USB2ANY
Hi,
We use BQ79600EVM as the base device which is connected to two stack BQ79718EVMs. BQ79600 is powered by 5V supply from MCU and BQ79718s are powered by 30V DC supply. We connect MCU SPI port to USB2ANY pins.
After auto-addressing according to the datasheet, we tried to read back device address stored in DIR0_ADDR 0x306.
If single read command is used, we successfully read base and stack device address one by one.
Read BQ79600 device 0: command: 0x80 0x00 0x03 0x06 0x00 0xD6 0x7E response: 0x00 0x00 0x03 0x06 0x00 0xD7 0xA0
Read BQ79718 device 1: command: 0x80 0x01 0x03 0x06 0x00 0xD7 0x82 response: 0x00 0x01 0x03 0x06 0x01 0x17 0x9C
Read BQ79718 device 2: command: 0x80 0x02 0x03 0x06 0x00 0xD7 0xC6 response: 0x00 0x02 0x03 0x06 0x02 0x57 0xD9
However, when we failed to use stack read command to read stack device address DIR0_ADDR 0x306.
Read stack: command: 0xA0 0x03 0x06 0x00 0xD1 0x84 response: 0x7F 0xFF 0xFF 0xFF 0xFF 0xFF... ...
After sending read command, we wait for ~160 us and then SPI-RDY becomes High, then we start to read the data.
Besides, after reading a series of 0xFF back, SPI_RDY always stays LOW until sending a COMM_Clear 10ms later.
This also happens in auto-addressing step
After sending stack read command and 200us delay, we read 0xFF 0xFF 0xFF 0xFF, and SPI_RDY is always LOW
Any ideas? Looking forward to you answer. Thanks in advance.