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.

SPI from BQPL76536

Other Parts Discussed in Thread: BQ76PL536, MSP430FR5969, MSP430F5529

I am using a msp30fr5969 MCU as a master and it's connected to BQ76PL536 EVM board as the slave. I am trying to display voltages to the LCD screen but can't seam to get the SPI communication working. I am using code from a similar project using msp4305529 and the same EVM board (the entire code can be found in the last link. I only use parts of it)

When I attempt to discover the BQ device, it gets stuck in the following loop:

while(bq_pack_address_discovery() != NUMBER_OF_BQ_DEVICES){

//BQ devices not discovered -> broken communication

//Turn On LED to indicate failure
BQ76PL536_LED_PxOUT |= OUT_BQ_LED;

//Retry to SPI comm with the BQ76PL536 devices after 1000 MCLCK cycles
__delay_cycles(1000);

}

I have the EVM connected to 6 cells and when I use the GUI that comes with the EVM, it says they all are charged (which means they should be detected when connected to the microcontroller). When I use my microcontroller to get the voltage values on the EVM, it says there are no devices connected. The same thing happens wether the microcontroller is connected to the EVM or disconnected completely. I am using 6 lines to connect the two devices (CS, CLK, MOSI, MISO, Power, Ground).

Any ideas as to why it keeps saying no devices are detected?

The code used in this project comes from the last link (the project using msp430 F5529) in which I use the SPI folder and BQ76PL536 folder

BQ76PL536

http://www.ti.com.cn/cn/lit/ds/symlink/bq76pl536.pdf

MSP430fr5969

http://www.ti.com/lit/ds/symlink/msp430fr5969.pdf

similar project using msp430F5529

http://www.ti.com/lit/an/slaa478/slaa478.pdf

**Attention** This is a public forum