We are controlling a brushless motor with the nRF52840. This motor has an integrated motor controller, feedback is only:
- Single Encoder Pulse (no A / B or even Z)
- Directional Pin (which is actually not feedback because this pin is used to control the motor direction, but still this pin indicates the motors spinning direction)
Based on these two pins, I would like to configure a counter which shall count up / down without the use of an Interrupt.
Currently we solve this by issuing an interrupt on the rising edge of the encoder pulse. In the ISR we query for the level of the directional pin and adjust the counter accordingly.
It appears to me, that QDEC is made for regulator A / B / Z encoder and not something like this.
Has someone an approach for an interrupt-less solution?
Thanks