<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic S12ZVC Supply Voltage Measurement in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVC-Supply-Voltage-Measurement/m-p/396574#M10944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am calculating Supply Voltage (12 volts ) through the ADC0 internal channel by enabling BATS module (which connects the VSUP with ADC channel). &lt;BR /&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;MC9S12ZVCRM V1.2 Page 326 say that input Analog signal are unipolar and must be within the potential range of&amp;nbsp; VSSA to VDDA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;So accordingly &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Supply Voltage - 12,000 mVolts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;VSSA - 0,00 volts&lt;BR /&gt;VDDA - 5,000 mVolts&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Using 12 bit resolution of the ADC, it should give result correctly but that is not the case it is not giving correct answers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Am I measuring the Supply voltage correctly or need to step down the voltage or something else?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 12:26:04 GMT</pubDate>
    <dc:creator>amit_dhand</dc:creator>
    <dc:date>2015-07-09T12:26:04Z</dc:date>
    <item>
      <title>S12ZVC Supply Voltage Measurement</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVC-Supply-Voltage-Measurement/m-p/396574#M10944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am calculating Supply Voltage (12 volts ) through the ADC0 internal channel by enabling BATS module (which connects the VSUP with ADC channel). &lt;BR /&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;MC9S12ZVCRM V1.2 Page 326 say that input Analog signal are unipolar and must be within the potential range of&amp;nbsp; VSSA to VDDA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;So accordingly &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Supply Voltage - 12,000 mVolts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;VSSA - 0,00 volts&lt;BR /&gt;VDDA - 5,000 mVolts&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Using 12 bit resolution of the ADC, it should give result correctly but that is not the case it is not giving correct answers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Am I measuring the Supply voltage correctly or need to step down the voltage or something else?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;SPAN lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 12:26:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVC-Supply-Voltage-Measurement/m-p/396574#M10944</guid>
      <dc:creator>amit_dhand</dc:creator>
      <dc:date>2015-07-09T12:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: S12ZVC Supply Voltage Measurement</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVC-Supply-Voltage-Measurement/m-p/396575#M10945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;BATS already contain internal voltage divider. So, you must multiply measured value (in mV) by 9 for getting VSUP voltage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According BATS Electrical Specifications in reference manual:&lt;/P&gt;&lt;P&gt;Pin Input Divider Ratio(2)&lt;/P&gt;&lt;P&gt;RatioVSUP = VSUP / VADC=9&lt;/P&gt;&lt;P&gt;Valid for 5.5V &amp;lt; VSUP &amp;lt; 29 V&lt;/P&gt;&lt;P&gt;2. VADC: Voltage accessible at the ADC input channel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Accuracy of such measurement should be typically +/-2% (it is still without error of ADC conversion).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 13:56:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12ZVC-Supply-Voltage-Measurement/m-p/396575#M10945</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2015-07-09T13:56:33Z</dc:date>
    </item>
  </channel>
</rss>

