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.

TMS320F2800157-Q1: What is the most effective method for reading the output of three digital Hall sensors in a BLDC motor when any one of the Hall sensors produces a logic high output?

Part Number: TMS320F2800157-Q1
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE-MOTORCONTROL-SDK, C2000WARE

What is the TI recommendation to read the digital Hall sensor output of BLDC motor? 

---------------------------------------------------------------------------------------------------------------------------------------

The scenario is:

When any one hall sensor (ex. Hall sensor 1) gives rising edge (or logic 1) that time (In ISR probably) i have to observe the other Two hall sensors logic levels (Hall sensor 2 and Hall sensor 3) to determine the position of the ROTOR. 

So, to achieve this scenario kindly suggest what is the best approach recommended by TI? and which microcontroller module i can use to achieve this above observation pattern for digital hall sensor outputs? 

----------------------------------------------------------------------------------------------

If you suggest eCAP module then, kindly give how and what i have to configure to implement this observation pattern? how can i read 3 hall sensors at a time when one hall sensor gives rising edge?
------------------------------------------------------------------------------------------------


Kindly, At the end kindly provide good example projects (Sysconfig) for BLDC control with digital hall sensors outputs.


  • You can use GPIO_readPin() to get the status of the Hall sensors output, and use eCAP to count the time.

    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.

    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