2021-03-07 10:31 PM
Hi,
I want to interface 3-phase DC motor's hall sensor with STM32H74x MCU. I found a timer's hall sensor mode in a document but I don't have any example code to get start with it.
Can anyone please provide a reference or pseudo code for it.
Thanks in advance,
2021-03-07 11:40 PM
This is what happens when marketing has say to what is in the manual. There is no such thing as "Hall sensor mode"; there are input capture, output compare and times can be chained as master/slave. Oh and there's a marginal feature, which XORs together 3 input channels; I'm not quite sure why would that be useful but I don't do motor control.
Define in timing terms, what do you want to achieve (draw a timing diagram) and write your program accordingly.
JW