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?