Can I connect nFault pin to 3.3v though? According to the datasheet, the schematic shows it is connected to VP3VOUT, my understanding that is Vref, correct?
That's the reason I wanted more than 0.58v.
The V3P3OUT pin on the DRV8825 is a 3.3V supply pin for convenient use when you have no other source of 3.3V in your circuit. It's a built-in linear voltage regulator that takes VM (in your case, 12V) and regulates it down to 3.3V and outputs it on that pin. In your case, you say you have a separate SPX1117 3.3V regulator, so you don't need to use V3P3OUT (and should leave it unconnected). You don't
have to use V3P3OUT for VREF. In fact, VREF can come from anywhere, so long as it is an appropriate voltage and is stable and noise-free enough (for instance, you probably wouldn't want to take VM and divide it down for VREF). Realise that the datasheet schematics are often
suggestions, not requirements.
(BTW, note that if you are now thinking of ditching the SPX1117 and using V3P3OUT to power other things, the datasheet says V3P3OUT can only provide a maximum of 1 mA of output current, so it is
not a general-purpose 3.3V power supply and you can't do that.)
As for VREF voltage, it is
only needed for the AVREF & BVREF pins. Forget the notion that VREF is used by or required for anything else. The datasheet explains how VREF is used:
The PWM chopping current is set by a comparator which compares the voltage across a current sense resistor connected to the xISEN pins, multiplied by a factor of 5, with a reference voltage. The reference voltage is input from the xVREF pins.
In other words, the voltage dropped across the current sense resistors by the motor current passing through them (i.e. the measured difference in voltage level between GND and at the ISENA/ISENB pins) is multiplied by 5 and compared to VREF. If it's greater, then the DRV8825 will reduce the motor current; if lower it can increase the motor current.
Yes, you can connect nFAULT to 3.3V. In fact, because it's an
open-drain output (as is nHOME) it doesn't really care what voltage is connected to it, because all it is capable of doing is switching whatever's connected to that pin to ground. It could be 3.3V, it could be 5V, whatever. (Although in reality, the datasheet states a maximum of 7V on all digital pins, so don't connect it to 12V, for instance.)