2013-05-10 05:35 AM
Hi,
There is a STM32F303 pin for VREF+ of DAC and ADC (in common). I would have suspected that this reference voltage input does adjust the conversion function in such a way that Vout max of DAC (i. e. digital FFFhex) = Vref+ andOutput value of ADC at input of Vref+ = FFFhex.But I can't find any formula in the reference manual for the ADC conversion function. The only formula I could find is one for the DAC at page 306 of the reference manual which does look suspicious:
DACoutput = V
DDA* (DOR/4095)This seems to me to be a special case where Vref+ input pin is connected to VDDA. Has anyone experience with the ADC / DAC and could help me with that topic? #stm32f303 #adc #dac #vref+
2013-05-10 09:43 AM
Yes, the documentation is not entirely helpful, in many case the VDDA is bonded to VREF+. The only reasonable purpose of providing VREF to the DAC would be as that DACoutput = VREF * DOR / 4095
It surely wouldn't take much effort to prove on a part with separate supplies for VDDA and VREF+. I think there have been complaints about not quite touching the rails (ie 0x000 and 0xFFF)2013-05-12 11:19 PM
6.1.1 Independent A/D and D/A converter supply and reference voltage
To improve conversion accuracy, the ADC and the DAC have an independent power supply which can be separately filtered and shielded from noise on the PCB.The ADC and DAC voltage supply input is available on a separate VDDA pin. An isolated supply ground connection is provided on the VSSA pin.
100-pin package connections
To ensure a better accuracy on low-voltage inputs and outputs, a separate external reference voltage can be connected on VREF+.
VREF+ is the highest voltage, represented by the full scale value, for an analog input (ADC) or output (DAC) signal.
64-pin and 48-pin package connections
On these packages, the VREF+ and VREF- pins are not available, they are internally connected to the ADC voltage supply (V
DDA
) and ground (V
SSA
) respectively
...2014-10-01 02:21 AM
2014-10-01 02:31 AM
So if I'm using the 48-pin package I can't use the internal reference ( ~1,2 v) for DAC output. Is that correct or have I misunderstood?
I don't think the pin count makes a difference, VREF+ != VREFINT