WE ARE FACING PROBLEM WITH BLDC MOTER CONTROL WITH HALL SENSOR ,
WHEN WE ARE RUNNING BLDC MOTER WITH HALL SENSOR WITH MULTILINK UNIVERSAL FX SERIES
IN DEBUG MODE MOTER IS RUNNING FINE WITH ACCELATOR FROM 0 TO 3.2V, AS SOON AS WE
REMOVE THE TOOL AND WHEN ACCELATOR IS ZEOR MOTER START,
PLEASE SUGGEST WHAT TO
We observe when we connected debugger PTB4 IS HIGH SIDE DRIVE (PWM_BH)FTM2_CH4 IS WORKING GOOD.
After reset the debbuger and power supply, and switch ON SUPPLY ,we found that When we touch fingure to the pin of PTB4 this become ON . WHY AND HOW TO RESOLVE PLEASE SUGGEST
Hi,
For KE02, the PTB4 is multiplexed with NMI, I suppose that after reset, the chip enters NMI ISR.
Pls connect a pull-up resistor to the PTB4 pin.
Secondly, I suggest you clear the NMIE bit with the line:
SIM->SOPT&=~(1<<1);
Pls have a try
BR
XiangJun Rong
Hi,
Can you clarify your question?
Do you mean that after the probe is disconnected, the motor will not start?
what is the the part number you are using?
If you toggle a LED, are you okay? do you check if the the chip has entered ISP mode?
BR
XiangJun Rong
The motor is working fine when debugging with Multilink FX Programmer but when debug session terminated and board is reset by powering off and on, the motor do not start with ADC input (Accelerator).
NXP part No Used: MKE02Z64VLD4
Yes, The LED toggle is happening on disconnecting debugger but Hall Sensor PWM Capture mode not working (motor not turning) but if we manually change the position by hand a little, it starts rotating.
Hi,
Based on your remark "Yes, The LED toggle is happening on disconnecting debugger but Hall Sensor PWM Capture mode not working (motor not turning) but if we manually change the position by hand a little, it starts rotating.", the LED toggling means that the application code is running. After you change the position manually, the motor spinning means that your application code has issue.
The basic architecture of BLDC control with Hall sensor is that the hall sensor signals trigger interrupt, in the ISR of hall sensor, read the 3 hall signal state, then determine the PWM on/off with the motor specified direction. because the motor does spin after start-up, ISR is not fired, so motor does not spin.
After the speed/direction is set, the code should read the 3 hall state in main loop, then switch PWM without ISR.
Pls check your code
Hope it can help you
BR
XiangJun Rong