<div dir="ltr"><div>Volne navazuji...</div><div><br></div><div>Jednak je k mani v Ref manualu tato formuka:</div><div><br></div>VDDA = 3 V x VREFINT_CAL / VREFINT_DATA<div> Where:</div><div>• VREFINT_CAL is the VREFINT calibration value </div><div>• VREFINT_DATA is the actual VREFINT output value converted by ADC<br></div><div><br></div><div>A druhak je v registru k mani flag o tom, zda je uz reference ready.</div><div><br></div><div>Z toho by uz melo jit dopocitat i Vref :)</div><div><br></div><div>PK</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-18 21:14 GMT+01:00 Jan Waclawek <span dir="ltr"><<a href="mailto:konfera@efton.sk" target="_blank">konfera@efton.sk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">>Dne 18.2.2016 20:18, Jaroslav Buchta napsal(a):<br>
>> Tohle jste zohlednil?<br>
>><br>
>> The TSVREFE bit in the ADC_CCR register must be set to enable the<br>
>> internal reference voltage (and also the Temperature sensor). This<br>
>> reference voltage must be enabled only if its conversion is required.<br>
>ano<br>
>> The internal reference voltage is factory measured and the result of<br>
>> the ADC conversion is stored in a specific data address : the<br>
>> VREFINT_Factory_CONV byte.<br>
>><br>
>zatim ne .chystam se na to ,ale pripadal mi ten rozdil moc velkej na<br>
>chybu v kalibraci .<br>
<br>
</span>Co nie, nepovolujete TSVREFE, alebo nepouzivate tu factory calibration?<br>
<br>
Mimochodom, v DS je pomerne rozsiahly elaborat na temu tej referencie<br>
(nepozeram do 'L16x ale 'L15x, ale to by malo byt to iste), oplati sa<br>
postudovat a porozmyslat. Napriklad taky TVREFINT Internal reference<br>
startup time typ.2 max.3 ms - nie je to bohvieako popisane, ale povedal by<br>
som, ze tolkoto treba pockat po povoleni TSVREFE a pred konverziou. Alebo<br>
vobec to, ake napatie ta referencia ma mat, nie je to celkom 1.2V (aj ked<br>
ani 1.5V nie to je fakt). Alebo TS_vrefint - ak mam byt uprimny, myslim<br>
si, ze popis nie je adkvatny a je matuci, ale pokusil by som sa pre<br>
konverziu tej referencie nastavit ten typicky sampling time.<br>
<br>
wek<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
HW-list mailing list  -  sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
<a href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a><br>
<a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
</div></div></blockquote></div><br></div>