<?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>S12 / MagniV MicrocontrollersのトピックDEVKIT-S12ZVC ADC interference and wrong temperature</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DEVKIT-S12ZVC-ADC-interference-and-wrong-temperature/m-p/1423436#M18542</link>
    <description>&lt;P&gt;Using the DEVKIT-S12ZVC with ADC0 setup from processor expert.&lt;BR /&gt;&lt;BR /&gt;Problem:&lt;BR /&gt;&amp;nbsp;getting ADC channel interference, channel after is skewed if one before moves.&lt;BR /&gt;&amp;nbsp;also getting a very skewed temperature reading, 1.2V it should be 1.7-2.1 range based on the&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;formula.&lt;BR /&gt;&lt;BR /&gt;Setup:&lt;/P&gt;&lt;P&gt;10 bits resolution with a Conversion time of 57uS, with each sample taking 24ADC clocks cycles with 144.5us&lt;BR /&gt;I have 5 channels, each doing there own sample. All set to VRH_1, VRL_1 reference.&lt;BR /&gt;&lt;BR /&gt;Channels&lt;BR /&gt;&lt;BR /&gt;PAD11&lt;BR /&gt;PLO_HVI0_KWL0&lt;BR /&gt;BATS_VSUP_SENSE_VOLTAGE&lt;BR /&gt;CHIP_Temp_Sensor__or_Band_Gap&lt;BR /&gt;PAD10&lt;/P&gt;&lt;P&gt;Update**&lt;BR /&gt;&lt;BR /&gt;The ADC seems to be working now, had to set&lt;BR /&gt;CPMUHTCTL_HTE = 1; //enable internal temp sensor&lt;BR /&gt;CPMUHTCTL_VSEL = 0; //select temp sensor and not bandgap&lt;BR /&gt;&lt;BR /&gt;for the temperature sensor.&lt;BR /&gt;&lt;BR /&gt;I think this also fixed the bleed for all channels other than the last conversion affecting the first conversion on the next read.&lt;BR /&gt;&lt;BR /&gt;Still trying to figure out why I am getting bleed from the last conversion into the first conversion. The timing of all conversion is well under my start measurement call.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2022 20:05:26 GMT</pubDate>
    <dc:creator>nelson18</dc:creator>
    <dc:date>2022-03-07T20:05:26Z</dc:date>
    <item>
      <title>DEVKIT-S12ZVC ADC interference and wrong temperature</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DEVKIT-S12ZVC-ADC-interference-and-wrong-temperature/m-p/1423436#M18542</link>
      <description>&lt;P&gt;Using the DEVKIT-S12ZVC with ADC0 setup from processor expert.&lt;BR /&gt;&lt;BR /&gt;Problem:&lt;BR /&gt;&amp;nbsp;getting ADC channel interference, channel after is skewed if one before moves.&lt;BR /&gt;&amp;nbsp;also getting a very skewed temperature reading, 1.2V it should be 1.7-2.1 range based on the&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;formula.&lt;BR /&gt;&lt;BR /&gt;Setup:&lt;/P&gt;&lt;P&gt;10 bits resolution with a Conversion time of 57uS, with each sample taking 24ADC clocks cycles with 144.5us&lt;BR /&gt;I have 5 channels, each doing there own sample. All set to VRH_1, VRL_1 reference.&lt;BR /&gt;&lt;BR /&gt;Channels&lt;BR /&gt;&lt;BR /&gt;PAD11&lt;BR /&gt;PLO_HVI0_KWL0&lt;BR /&gt;BATS_VSUP_SENSE_VOLTAGE&lt;BR /&gt;CHIP_Temp_Sensor__or_Band_Gap&lt;BR /&gt;PAD10&lt;/P&gt;&lt;P&gt;Update**&lt;BR /&gt;&lt;BR /&gt;The ADC seems to be working now, had to set&lt;BR /&gt;CPMUHTCTL_HTE = 1; //enable internal temp sensor&lt;BR /&gt;CPMUHTCTL_VSEL = 0; //select temp sensor and not bandgap&lt;BR /&gt;&lt;BR /&gt;for the temperature sensor.&lt;BR /&gt;&lt;BR /&gt;I think this also fixed the bleed for all channels other than the last conversion affecting the first conversion on the next read.&lt;BR /&gt;&lt;BR /&gt;Still trying to figure out why I am getting bleed from the last conversion into the first conversion. The timing of all conversion is well under my start measurement call.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 20:05:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DEVKIT-S12ZVC-ADC-interference-and-wrong-temperature/m-p/1423436#M18542</guid>
      <dc:creator>nelson18</dc:creator>
      <dc:date>2022-03-07T20:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: DEVKIT-S12ZVC ADC interference and wrong temperature</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DEVKIT-S12ZVC-ADC-interference-and-wrong-temperature/m-p/1424086#M18543</link>
      <description>&lt;P&gt;&lt;SPAN&gt;CPMUHTCTL_HTE = 1, CPMUHTCTL_VSEL = 1 for bandagap voltage; CPMUHTCTL_HTE = 1, CPMUHTCTL_VSEL = 0 for sensor voltage.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I was missing this step which processor expert does not do.&lt;BR /&gt;Now I am getting a somewhat sensible reading of 37C at ambient 17C when I read temperature alone.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 19:35:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/DEVKIT-S12ZVC-ADC-interference-and-wrong-temperature/m-p/1424086#M18543</guid>
      <dc:creator>nelson18</dc:creator>
      <dc:date>2022-03-07T19:35:40Z</dc:date>
    </item>
  </channel>
</rss>

