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.

TMS320F28069F: DRV8305

Part Number: TMS320F28069F
Other Parts Discussed in Thread: TMS320F28069, DRV8305, MOTORWARE, CONTROLSUITE, DRV8301

Hello Sir,

I worked on TMS320F28069 with predriver DRV8305. I need head files and source files for DRV8305 under TMS320F28069 CCS project. For example, I need drv8305.c, drv8305.h, DRV830x_SPI.c, DRV830x_SPI.h etc. Does anyone have these C code head and source files which can include under CCS project?

Thanks,

Hao

  • Do you have MotorWare installed? It has some drv8305.c/h files you could use under \sw\drivers\drvic. There are some in controlSUITE too if you have it installed--they're in development_kits\TIDM-SERVO-LAUNCHXS\MonoMtrServo_377s_v1_00_00_00. The project they're associated with is for the F2837x, but the SPI/DRV8305 code should be pretty compatible with F2806x.

    Whitney

  • Need I include these DRV8305 files (DRV830x_SPI.h, DRV830x_SPI.c, drv8301.c, drv8301.h, and DRV8305_defs.h) for predriver DRV8305.to drive the motor spinning. I also use Simulink toolbox to generate the code to drive a PMSM. but I didn't see these DRV8305 head files and source files including in the project. Do you think I can still drive the motor spinning or not if thses DRV 8305 files not including in the project.

    Thanks,

    Hao

  • If you need to be able to access the DRV8305 registers, those files helpfully provide a driver to do so. I'm not sure what you mean when you say you didn't see the files in the project--what is the name and location of the project you are referring to? A Simulink project? Something TI wrote?

    Whitney

  • Do you mean, if I needn't access DRV8305 registers, I needn't including these DRV8305 files in the project. But MCU 28069 can still drive the motor spinning via DRV8305?

    If I use Simulink model to build my PMSM control algorithm, and then use Embedded Code to generate the code but without these DRV8305 files. I can still run the motor with DRV8305. But I cannot access to the DRV8305 registers and receive the fault values from the registers. Am I correct?

    Thanks,

    Hao

  • I believe you are correct. I suppose if the default configuration of the DRV8305 suits your application, you don't necessarily need to write to the registers, although as you've pointed out, you would be missing out on the fault information in its status registers. As far as I can tell, you could still enable it and use it without the SPI drivers.

    Whitney

  • I have last thing I want to check with you. If I don't use these DRV files (drv8305.c, drv8305.h, DRV830x_SPI.c, DRV830x_SPI.h) included in my project, I still need configure EN_GATE and WAKE signals to set DRV8305 for driving the motor spinning. Is it correct or not?

    Thanks,

    Hao

  • Yes, you need to configure GPIOs for those signals. Please refer to the DRV8305 datasheet and the example code in the packages I mentioned above.

    Whitney