Hi @Karthik DM,
Besides the microcontroller, what other devices are you using to drive the BLDC motor?
For example, motor driver with integrated power stage, or gate drivers with discrete power stage.
In both cases, you can implement a peak current control monitoring the voltage across the shunt resistor (Rs). This power resistor must be connected in a common point with the three low-side power source.
The shunt resistor voltage is compared to a reference voltage (Vref) that is proportional to the target current (Ipk-target) with the following equation:
Vref = Rs x Ipk-target
I hope these info can help you.
"If you feel a post has answered your question, please click ""Accept as Solution"""