<?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 MPC5644A eQADC ch 128 not returning valid temperature sensor value in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eQADC-ch-128-not-returning-valid-temperature-sensor/m-p/429644#M1065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;I am trying to get the MCU temperature on an &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SPC564A70L7&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;TTSENS_CODE(TLOW)&lt;/SPAN&gt; is 0x1647(-40C)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;TTSENS_CODE(THIGH)&lt;/SPAN&gt; is 0x1D61(150C)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;V&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;BG_CODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(T&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOW) is 0xF7F&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;Temperature sensor is ch 128 and returns values roughly 0x16A0 at room temperature/normal running.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;Bandgap is ch 45 and returns values roughly 0x1000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;When temperature formula is applied (MPC5644ARM pp 1231), (TTSENS_CODE(T) X B) calculates to a value less than TTSENS_CODE(TLOW) which should be impossible. The reading from ch 128 when bandgap adjusted is below the -40C value. What is wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;eQADC is calibrated and works just fine reading various internal voltage and the bandgap.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 15:15:47 GMT</pubDate>
    <dc:creator>williamtroyjr</dc:creator>
    <dc:date>2015-04-21T15:15:47Z</dc:date>
    <item>
      <title>MPC5644A eQADC ch 128 not returning valid temperature sensor value</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eQADC-ch-128-not-returning-valid-temperature-sensor/m-p/429644#M1065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;I am trying to get the MCU temperature on an &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SPC564A70L7&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;TTSENS_CODE(TLOW)&lt;/SPAN&gt; is 0x1647(-40C)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;TTSENS_CODE(THIGH)&lt;/SPAN&gt; is 0x1D61(150C)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;V&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;BG_CODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(T&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOW) is 0xF7F&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;Temperature sensor is ch 128 and returns values roughly 0x16A0 at room temperature/normal running.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;Bandgap is ch 45 and returns values roughly 0x1000.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;When temperature formula is applied (MPC5644ARM pp 1231), (TTSENS_CODE(T) X B) calculates to a value less than TTSENS_CODE(TLOW) which should be impossible. The reading from ch 128 when bandgap adjusted is below the -40C value. What is wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: courier new,courier;"&gt;eQADC is calibrated and works just fine reading various internal voltage and the bandgap.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 15:15:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eQADC-ch-128-not-returning-valid-temperature-sensor/m-p/429644#M1065</guid>
      <dc:creator>williamtroyjr</dc:creator>
      <dc:date>2015-04-21T15:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5644A eQADC ch 128 not returning valid temperature sensor value</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eQADC-ch-128-not-returning-valid-temperature-sensor/m-p/429645#M1066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the TTSENS_CODE(T) X B gives you value below TTSENS_CODE(TLOW), then the calculated temperature must be below TLOW. This can happen, I think. Take into account the TSENS accuracy, also the ADC accuracy itself.&lt;/P&gt;&lt;P&gt;Hard to say, Are you sure the TLOW is -40?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have upload the MPC5644A TSENS calculation example on &lt;/SPAN&gt;&lt;A class="jive-link-wiki-small" data-containerid="11363" data-containertype="14" data-objectid="104692" data-objecttype="102" href="https://community.freescale.com/docs/DOC-104692"&gt;https://community.freescale.com/docs/DOC-104692&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 09:00:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eQADC-ch-128-not-returning-valid-temperature-sensor/m-p/429645#M1066</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2015-04-22T09:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5644A eQADC ch 128 not returning valid temperature sensor value</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eQADC-ch-128-not-returning-valid-temperature-sensor/m-p/429646#M1067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                I reviewed the sample and verified that the formula I implemented is working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TSENS_CODE(T)&lt;STRONG&gt;B can be reduced to VTSENS(T)&lt;/STRONG&gt;VBG_CODE(TLOW)/VBG_CODE(T) thereby eliminating the need to sample for VREF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the TSENSE  low constant stored at FFFEC000. I get a value which appears incorrect. The high constant and bandgap values appear correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FFFEC000(TSENS_TCCR0) -&amp;gt; $DD615627 which corresponds to: 150C with TSENS_CODE(THIGH) of $1D61 and -40C with TSENS_CODE(TLOW) of $1627.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FFFEC004(TSENS_TCCR1) -&amp;gt; $0F7FXXXX which is $F7F for VBG_CODE(TLOW)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FFFEC000(TSENS_TCCR0) -&amp;gt; $9C891541 which corresponds to: 145C with TSENS_CODE(THIGH) of $1C89 and 25C with TSENS_CODE(TLOW) of $1541.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FFFEC004(TSENS_TCCR1) -&amp;gt; $0FAAXXXX which is $FAA for VBG_CODE(TLOW)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value you read for TLOW is $1541 for 25C. I read $1627 for -40C. This is impossible! The lower the temperature, the lower the voltage not higher. I believe the value you are reading is correct. The value I am reading is clearly wrong. Where there chips with incorrect TLOW temperature constant manufactured for STM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a discovery board made by STMicro called SPC564A-DISC containing an SPC564A70L7 chip. The specs on the chip are 150Mhz, 150C to -40C, 1.5MB Flash and 128KB SRAM. Otherwise it is the same as a MPC5644A. Freescale’s and STM’s reference manuals are equivalent for the eQADC and temperature sensor sections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are in the process of producing the first 5 vehicle controllers using an SPC5644AMLU1 chip. I hope that chip contains correct TSENSE constants. I will adjust my code to handle the faulty SPC564A70L7 chip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, my query has been answered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;William A Troy Jr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DHTE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 18:46:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5644A-eQADC-ch-128-not-returning-valid-temperature-sensor/m-p/429646#M1067</guid>
      <dc:creator>williamtroyjr</dc:creator>
      <dc:date>2015-04-22T18:46:09Z</dc:date>
    </item>
  </channel>
</rss>

