Hi Xiangjun,
Thanks for your quick response.
We did connect the hall sensor connector to JP1 of this development kid MTRCKTSBNG128. We use Free Master and go File/open project, select BLDCHall9S08\MC9S12G128_BLDC_Hall. We pressed the rotary switch to start the motor, but motor didn't start, the motor is originally included in this development kid MTRCKTSBNG128 (see second picture below). Please also see Hall sensor Connector and Rotary switch cycled in the first picture below. In Freemaster screen, we click On/Off button, the motor didn't spin. We noticed on Freemaster screen, requiredSpeed showed 30,000+ rpm as a default speed, then i changed it to 3000 rpm, motor still does not spin.


However, We use Free Master and go File/open project, select \BLDCHall9S08\MC9S12G128_BLDC_Sensorless, We pressed the rotary switch to start the motor, then motor starts, requiredSpeed showed 3000 rpm as a default speed, actual speed is also 3000 rpm, very thing works beautifully. we can also use Freemaster screen to control the motor, we clicked On/Off button, the motor spined. requiredSpeed showed 3000 rpm as a default speed, actualSpeed is also 3000 rpm, I can change requiredSpeed and then actualSpeed follows the requiredSpeed. In Freemaster screen, we can also measure DCbus Voltage in real time.
But in Hall sensor mode, it was very strange in Freemaster screen, DCbus Voltage showed 0 V and DCbus Voltage can not be measured for some reasons. also, requiredSpeed showed 30,000+ rpm as a default speed.
Therefore, as a result, it seems that the dev kid works in Sensorless mode, but it didn't work in Hall sensor mode for some reasons. I checked Hall signal by scope, waveform seems normal. what did I do wrong? Do I need to re-write code with Hall Sensor to S12 microcontroller? How do I do some things to make the kid working in Hall sensor mode. Please advise.
Thanks you so much!
John