measure VrefINT and VBAT onStm32f407vgtx
Hi all
I am facing some issue related to measurement of VREFINT and VBAT which is IN17 and IN18 respectively,
My ADC1 configuration is 12 bit resolution, 3cycles sample, one shot and software conversion.
I ran few tests as follows
1.vref which is 2.95 (VDD) and vin is selected as channel IN17 and I am getting 414 in my DR register. (vrefint bit is clear in CCR)
2.vref which is 1.21 (VrefINT) and vin is selected as channel IN17 and I am getting 1702 in my DR register. (vrefint bit is Set in CCR)
3.vref which is 2.95 (VDD) and vin is selected as channel IN18(VBAT) and I am getting 420 in my DR register. (vrefint bit is clear in CCR).
4.vref which is 1.21 (VrefINT) and vin is selected as channel IN18 and I am getting 1679 in my DR register. (vrefint bit is Set in CCR).
help me where I am wrong.
B.R
