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.

MOTORWARE: CAN driver for MotorWare

Part Number: MOTORWARE
Other Parts Discussed in Thread: C2000WARE, C2000WARE-MOTORCONTROL-SDK, LAUNCHXL-F28069M

Tool/software:

Could anyone provide me the CAN driver for MotorWare? I need to add CAN functionality in MotorWare project. Thank you in advance.

Nuntawat.

  • There are a few CAN examples in C2000Ware. You can refer to these examples and integrate it into the labs in MotorWare.

    If you are using the latest C2000 device, you may refer to the lab for the C2000 devices in motor control SDK. The universal motor control lab is available in the current MCSDK, which can support a set of hardware kits and control algorithms for BLDC/PMSM drive. The kits include LAUNCHXL-F280025C, LAUNCHXL-F280039CLAUNCHXL-F2800137 with DRV8316REVM inverter board for low voltage motor.  The control algorithms include sensorless InstaSPIN-FOC with FAST, Sensorless-FOC with eSMO, Sensored-FOC with incremental encoder, Sensored-FOC with hall sensor.  You can refer to the device peripherals (ePWM, ADC, eQEP, or eCAP) configuration for motor control with the other C2000 devices including F2838x. The example lab also support a few communication modes like CAN.

    C2000WARE-MOTORCONTROL-SDK: https://www.ti.com/tool/C2000WARE-MOTORCONTROL-SDK

    Universal Project and Lab User’s Guide: https://www.ti.com/lit/spruj26

    Example lab project at the folder: C:\ti\c2000\C2000Ware_MotorControl_SDK_<version>\solutions\universal_motorcontrol_lab\f28002x

    or                                                         C:\ti\c2000\C2000Ware_MotorControl_SDK_<version>\solutions\universal_motorcontrol_lab\f28003x

    or                                                         C:\ti\c2000\C2000Ware_MotorControl_SDK_<version>\solutions\universal_motorcontrol_lab\f280013x

  • I don't know how to integrate C2000Ware code into MotorWare project since the writing styles and paths are different. Could you please explain? Now I'm using LAUNCHXL-F28069M with MotorWare v1.01.00.18.

  • You might refer to the following 3 documentations to modify the related parameters and device configuration codes in the files of hal.c, hal.h and user.h according to the hardware board.

    instaspin_labs.pdf at "\ti\motorware\motorware_1_01_00_18\docs\labs"

    motorware_hal_tutorial.pdf at "\ti\motorware\motorware_1_01_00_18\docs\tutorials"

    You can refer to add the UART in a lab project in the motorware_hal_tutorial.pdf guide.