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: HALL SENSOR INTERFACING ON EQEP MODULE

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

Hello there,

I have designed the DRV8301 drive board and using it with LAUNCHXL-F28069M .

I want to spin a BLDC motor on Hall sensors at lower speeds, So I added the patch to the main program :

  gHallState = (~HAL_readGpio(halHandle,GPIO_Number_20) & 0x1) << 2;
  gHallState += (~HAL_readGpio(halHandle,GPIO_Number_21) & 0x1) << 1;
  gHallState += (~HAL_readGpio(halHandle,GPIO_Number_23) & 0x1);

The above defined GPIO20,GPIO21, GPIO23 are QEP pins on the LAunch pad.

Do I need to add any module or I can simply fetch the data as GPIO for HALL sensor Input?