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.

CCS/BOOSTXL-DRV8323RS: Motorware/PWM_Mode/SPI

Part Number: BOOSTXL-DRV8323RS
Other Parts Discussed in Thread: MOTORWARE, DRV8323

Tool/software: Code Composer Studio

Hello,

I try to controll a Brushless Motor with a DRV8323RS and F28027F and I do have a hal sensor but i dont want/cant connect it directly, because it sends it values through a I2C-BUS.

So I already have done the motorware labs and changed the user.h parameters sucessfully, but I dont know what are the motorware projects for? Are they just for changing the user.h parameters and testing the special functions? Or can they for programm the DRV8323RS? If not can you programm the DRV8323RS and how?

And now I want to use the 1 PWM Mode and I read the Datasheet, but didnt found much information so wonder me if there are any examples or other examples and if not, which pin are for the 1 PWM Mode and 3 PWM Mode?

And the DRV8323RS is controllable through SPI are there also other information and do I just have to send the DRV8323RS on message to spin and which message is that?

Thank you for you help.

  • Alexander,

    Thanks for posting on the MD forum!

    Each of the motorware Labs are for progressively checking out the needed parts of the system for full FOC operation. There is a guide inside of Motorware you can check or you can post on the C2000 forum: 

    Running lab 5B in CCS for example will allow you to input a speed command and have the DRV operate and control the motor.

    It is important to work through the labs in sequence as this prepares everything for successful operation.

    The DRV8323 datasheet does cover 1X PWM in depth in section 8.3.1.1.3 1x PWM Mode.


    The SPI control of the DRV8323RS is covered in section 8.5 Programming.


    In the programming section you will see that you can read out the device FAULTs, control the device settings, and device features. You cannot control the motor speed through SPI because this driver is only a gate driver and it needs PWM input from the C2000 or similar to operate.

    Regards,

    -Adam

  • Hello again and thanks for the answer,

    so just to clearify, the motorware projects and the f28027F are essential for running the DRV. And you can controll the DRV with a PWM signal, from another Signalgenerator (like a mcu).

    Thanks,

    Alex

  • Hello again and thanks for the answer,

    so just to clearify, the motorware projects and the f28027F are essential for running the DRV. And you can controll the DRV with a PWM signal, from another MCU?

    Is it true, you need a hall-sensor for PWM_MODE 1?

    And only if you use PWM_MODE 1, you need to shortcut R36, R37, R38?

    Now I changed in the drv8323.h file the pwm mode to (1 << 5) which should be PWM_Mode 3, but when I debug there still says its PWM_MODE 6. Do I need to change it otherwhere?

    Do i need the SPI connection to use the DRV8323rs?

    Thanks,

    Alex

  • Alexander,

    Please check the datasheet, this is well documented:

    "8.3.1.1 PWM Control Modes"


    Regards,

    -Adam