MSPM0G3507: Hall Input Mode Position Control

Part Number: MSPM0G3507

Tool/software:

Hi,

I've been using the QEI mode on TIMG8 to autonomously track encoder counts for position control. We're now evaluating if this functionality could be replicated for three hall sensors so we could use this same setup for brushless motors. It seems to me the XOR function in hall input mode can be used to track the transitions whenever a hall edge occurs. What I'm struggling with is a method for incrementing or decrementing based on the direction the motor is rotating. The best answer I have now the XOR triggering an interrupt that manages the direction by tracking the previous hall state vs the new hall state.

It'd be great to come up with a solution that operates autonomously without any software intervention, even if it requires some kind of logic circuit external to the processor. It'd be even better if it was some peripheral configuration with no external hardware, to match the functionality of the QEI, but I'm aware that might not be possible.

Thanks in advance.