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.

LAUNCHXL-F28069M: Example of PWM + ADC with drivers approach (not structs)

Part Number: LAUNCHXL-F28069M
Other Parts Discussed in Thread: C2000WARE, DRV8301, MOTORWARE, CONTROLSUITE

Hi

When looking in the examples:

e:\ti\c2000\C2000Ware_1_00_03_00\device_support\f2806x\examples\c28\

I found only structs examples 

I am looking for drivers approach example that implements PWM+ADC in order to control two boostxl drv8301 three phases inverters 

I looked at 

e:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\src\

e:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\boards\boostxldrv8301_revB\f28x\f2806xF\src\

and

e:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_motion\boards\boostxldrv8301_revB\

but these approachs are too complex. I don't need FOC or Motion, juste a simple configuration of ADC synchronized on PWM in order to drive the 2 inverters

Thank you for your help

  • Hello,

    We don't have drivers for the F2806x in C2000Ware, but the F2802x is similar enough that you should be able to port its drivers (or use the F2806x drivers from MotorWare which are also very similar). You can check out the example:

    C2000Ware_1_00_03_00\device_support\f2802x\examples\drivers\adc_temp_sensor\

    It's using the the PWM to trigger ADC conversions on the internal temperature sensor. It should be fairly straightforward to disable the temp sensor and convert an external signal instead.

    Whitney

  • Thank you for the reply

    But I want to gain time not to develop a driver lib

    So I will stick with the struct approach to configure the PWM and ADC

    Can you answer my second question about any example that configures (with the Struct approach for 69M) the interface of the DRV8301

    don't point the Motorware examples since they are far more complex because they introduce lot of variables to implement the identification of the motor, the FOC, the sensorless...

    I only need to have a proper config of I/O, ADC and PWM to connect and control the inverter DRV8301 that connects on the top of the LaunchXL

    Thanks

    Lotfi

  • You shouldn't need to develop a driverlib--the F2806x drivers in MotorWare under sw/drivers are already complete and can be used even without using the rest of MotorWare.

    Regarding a non-MotorWare example that specifically uses the DRV8301 and the F2806x, the only one I know of is in controlSUITE under:

    controlSUITE\development_kits\DRV830x-HC-C2-KIT_v105

    As you might guess from the name, the software was written with a different kit than the LaunchPad/BoosterPack in mind, but parts of it may still be relevant.

    Whitney

  • Dear Whitney

    Thanks a lot for giving me the info about MotorWare sw/drivers

    As you said I found the HAL specific to the BoosterXL DRV8301 / 8305 that uses the driverlib of  under sw/drivers

    file:///E:/ti/motorware/motorware_1_01_00_18/sw/modules/docs/api/f2806x/html/boostxldrv8301__rev_b_2f28x_2f2806x_2src_2hal_8c.html

    e:\ti\motorware\motorware_1_01_00_18\sw\modules\hal\boards\boostxldrv8301_revB\f28x\f2806x\src\hal_2motors.c

    e:\ti\motorware\motorware_1_01_00_18\sw\modules\hal\boards\boostxldrv8305_revA\f28x\f2806x\src\hal_2motors.c

    This is the config I need because it contains all the proper initialisation of the GPIO / ADC / PWM

    but I have to extract from the HAL routines, the config...

    the controlsuite example e:\ti\controlSUITE\development_kits\DRV830x-HC-C2-KIT_v105\InstaSPIN_BLDC\

    cannot be used unfortunately because the hardware is not the one of the BoostXLDRV8305 or 8301 (to have the right config)

    Though it is the approach that I would prefer, if it were with the BoostXL DRV8301.

    Thank you for your kid help.

    Best regards

    Lotfi