You may have a look at the f2806xhall_gpio_BLDC.h or f2803xhall_gpio_BLDC.h and BLDC_Sensored.c, the ECAP function is not used in this project since the F2803x and F2803x share the same algorithm, but F2803x doesn't have 3 ECAP, the hall input state is checked by the GPIO, and the speed calculation is based on PWM timer also. So you need to use a higher WPM frequency if you want to use this reference project to run the motor with high speed.
↧