<?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 Mkl17 ADC in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mkl17-ADC/m-p/647621#M39338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to read a voltage at pin 3 off of a mkl17z64 32QFN package. &amp;nbsp;that is PTE16 and the ADC channel is ADC0_SE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VDDA is connected to 3.3V.&lt;/P&gt;&lt;P&gt;VSSA is connected to GND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I enabled ADC0 in SIM.&lt;/P&gt;&lt;P&gt;I configured PortE pin 16 to ALT 0 which is ADC0_SE1.&lt;/P&gt;&lt;P&gt;I configured the registers in the ADC are set to&lt;/P&gt;&lt;P&gt;CFG1 = 0x71&lt;/P&gt;&lt;P&gt;CFG2 = 0&lt;/P&gt;&lt;P&gt;SC2 = 0&lt;/P&gt;&lt;P&gt;SC3 &amp;nbsp;= 0&lt;/P&gt;&lt;P&gt;PG = 0x8000&lt;/P&gt;&lt;P&gt;MG = 0x8000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then is set&lt;/P&gt;&lt;P&gt;SC1A = 0x01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wait til the SC1A[COCO] is set to say the conversion is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result from the conversion is FF if the voltage is greater then 0V even if it is 0.013V&lt;/P&gt;&lt;P&gt;The result from the conversion is 00 if the voltage is less then 0V even if it is -0.004V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some thing i am miss or forget to enable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2017 19:12:16 GMT</pubDate>
    <dc:creator>murraykevin</dc:creator>
    <dc:date>2017-01-26T19:12:16Z</dc:date>
    <item>
      <title>Mkl17 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mkl17-ADC/m-p/647621#M39338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to read a voltage at pin 3 off of a mkl17z64 32QFN package. &amp;nbsp;that is PTE16 and the ADC channel is ADC0_SE1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VDDA is connected to 3.3V.&lt;/P&gt;&lt;P&gt;VSSA is connected to GND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I enabled ADC0 in SIM.&lt;/P&gt;&lt;P&gt;I configured PortE pin 16 to ALT 0 which is ADC0_SE1.&lt;/P&gt;&lt;P&gt;I configured the registers in the ADC are set to&lt;/P&gt;&lt;P&gt;CFG1 = 0x71&lt;/P&gt;&lt;P&gt;CFG2 = 0&lt;/P&gt;&lt;P&gt;SC2 = 0&lt;/P&gt;&lt;P&gt;SC3 &amp;nbsp;= 0&lt;/P&gt;&lt;P&gt;PG = 0x8000&lt;/P&gt;&lt;P&gt;MG = 0x8000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then is set&lt;/P&gt;&lt;P&gt;SC1A = 0x01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wait til the SC1A[COCO] is set to say the conversion is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result from the conversion is FF if the voltage is greater then 0V even if it is 0.013V&lt;/P&gt;&lt;P&gt;The result from the conversion is 00 if the voltage is less then 0V even if it is -0.004V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some thing i am miss or forget to enable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 19:12:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mkl17-ADC/m-p/647621#M39338</guid>
      <dc:creator>murraykevin</dc:creator>
      <dc:date>2017-01-26T19:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Mkl17 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mkl17-ADC/m-p/647622#M39339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;found the solution for packages under 36 pin the reference changes from VREFH to PTE30.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 18:53:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Mkl17-ADC/m-p/647622#M39339</guid>
      <dc:creator>murraykevin</dc:creator>
      <dc:date>2017-02-06T18:53:20Z</dc:date>
    </item>
  </channel>
</rss>

