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.

INSTASPIN-BLDC: How to locate the SPI configuration for lab5b for DRV8305

Part Number: INSTASPIN-BLDC
Other Parts Discussed in Thread: TIDA-00643, DRV8305

Hello 

I am working on TIDA-00643 reference design. 

I wanted to check what are the SPI configuration in projlab5b.

How and where to locate the commands in project?

  • The SPI is configured to control the DRV8305, you can find the configuration code in hal.c and hal.h for SPI, and control codes for DRV8305 with SPI in drv8305.c and drv8305.h.

    Search "gDrvSpi8305Vars" variables in the project that is related to the DRV8305 control with SPI.

  • Thanks Yanming Luo

    I am able to locate the SPI configuration.

    Following is the configuration for IDRIVE - 

    // Write Control Register 5
    drvRegAddr = Address_Control_5;
    drvDataNew = (Spi_8305_Vars->Ctrl_Reg_05.IDRIVEP_HS) | \
    (Spi_8305_Vars->Ctrl_Reg_05.IDRIVEN_HS) | \
    (Spi_8305_Vars->Ctrl_Reg_05.TDRIVEN) | \
    (Spi_8305_Vars->Ctrl_Reg_05.CTRL05_RSV1 << 10);
    DRV8305_writeSpi(handle,drvRegAddr,drvDataNew);

    I want to know, what is the IDRIVE for DRV 8305 as per above configuration bit 

    Awaiting for the response 

    Thanks 

  • You may take a look at the datasheet of the DRV8305 that has a detailed description about this.

    Forward this thread to an expert of DRV for this question as well.