VREFBUF and motor control
Hi; this question is pretty much the same as another version of it I find on the forums, but it was never answered, so I would like to try asking again.
I’m working through a design that will use an stm32u595 for motor control, and the STSPIN233 as my driver. I will be using three current sense amplifiers on my low-side shunt resistors; each of these need a bias voltage to offset the shunt resistor voltages.
For past prototypes, I worked with an stm32F4, which doesn’t have this nifty VREF+ pin or VREFBUF capability - so I simply used VDDA to create a bias voltage, and used it for my ADC. VDDA itself was drawn from VDD through a ferrite PI filter. I suppose all of this is sort of “lo-fi”, but it worked - I was able to get a motor to turn using FOC.
The stm32u5 is considerably more complex by comparison, so I’ve been trying to teach myself what VREF+/VREFBUF is, and why I might want to use it. Claude, infuriatingly, vacillates from thread to thread in its advice - sometimes it says “Oh you have to use this, there’s too much error if you don’t”, other times it says “Well, you got this working once without VREFBUF, so you’re fine not using it here”. It is hyperbolic and confident in both cases, which is frustrating for trying to learn how to use something new.
I wonder, then, if a human might be able to offer some insight. The other note above points out that dev boards don’t show VREFBUF being used, and rather just relying on VDDA as the ADC reference voltage. I’m curious why this might be, or if anyone might have insight as to when/how VREFBUF is intended to be used, whether it is appropriate in this case, etc. It seems to add some complexity to my design (which is new to me), and I’m trying to understand how far afield I’m getting here, being prodded by AI chatbot help.
Thanks!
