I used Code Warrior Processor Expert Generated a MC9S12ZVML64MKH project to test the Phase voltage of BLDC, I configure all the function as attached file, but I got a static value while the phase voltage changed. Can anybody help me find the reason?
Thanks...
Original Attachment has been moved to: test.zip
Hi Ray,
I shortly checked your code and unfortunately I do not see any obvious issue there.
The code should measure voltage at HS1 pin (pin49) divided by 6.
I didn’t test it till now.
Which voltage did you connect to HS1 pin?
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------