cancel
Showing results for 
Search instead for 
Did you mean: 

stm32g031 spi

SGian.1
Senior

Hi there !

here i'm for another question, are a day i'm go crazy with the SPI interface . I try to comunicate with MC33HB2000EX 10 A H-bridge, SPI programmable brushed DC motor driver. The datasheet write that:

Immagine 2026-01-17 160313.pngImmagine 2026-01-17 160349.pngImmagine 2026-01-17 160422.png

So i configure my SPI :

Immagine 2026-01-17 160630.png

and when i send data with 

uint16_t spiData=0x2000;
uint16_t spiRxData = 0x0000;

i reset the CS pin

HAL_SPI_TransmitReceive_IT(&hspi1,(uint8_t*)&spiData,(uint8_t*)&spiRxData,1);

i wait the callback function and i set the CS pin 

no one data come out from MISO and i put on my analaizer and i don't understand why the clock start to logic high and no from logic low i don't know if is the real problem 

Immagine 2026-01-17 162826.png

 

I hope someone can help me 

Thank you 

Sergio

0 REPLIES 0