In this video we enhance a Simulink model to allow the reading of hall sensors after processor reset to get the initial position of the rotor.
We discuss about:
- How to build a special initialization routine to read the halls once in the beginning
- How to use StateFlow programming
- How to mix the direct read of GPIOs with ISR based on hall transition readings
NOTE: Chinese viewers can watch the video on YOUKU using this link