<?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 bandgap enable in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/bandgap-enable/m-p/506859#M31823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With ref to a mkl03z32 mcu, kds3.1 and ksdk1.3, when using the fsl_adc16 with the "Vref pair" as Voltage reference, the measure of the bandgap gives erratic measures...&lt;/P&gt;&lt;P&gt;It is so necessary to add the following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC_REGSC |= PMC_REGSC_BGBE_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC6 |= SIM_SCGC6_ADC0_MASK;&lt;/P&gt;&lt;P&gt;to make it operate.&lt;/P&gt;&lt;P&gt;Imho selecting the measure of the bandgap in the component should enable automatically the bandgap function, or at least show a warning!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2016 11:32:06 GMT</pubDate>
    <dc:creator>Lupo</dc:creator>
    <dc:date>2016-02-12T11:32:06Z</dc:date>
    <item>
      <title>bandgap enable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/bandgap-enable/m-p/506859#M31823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With ref to a mkl03z32 mcu, kds3.1 and ksdk1.3, when using the fsl_adc16 with the "Vref pair" as Voltage reference, the measure of the bandgap gives erratic measures...&lt;/P&gt;&lt;P&gt;It is so necessary to add the following code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC_REGSC |= PMC_REGSC_BGBE_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC6 |= SIM_SCGC6_ADC0_MASK;&lt;/P&gt;&lt;P&gt;to make it operate.&lt;/P&gt;&lt;P&gt;Imho selecting the measure of the bandgap in the component should enable automatically the bandgap function, or at least show a warning!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 11:32:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/bandgap-enable/m-p/506859#M31823</guid>
      <dc:creator>Lupo</dc:creator>
      <dc:date>2016-02-12T11:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: bandgap enable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/bandgap-enable/m-p/506860#M31824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The instruction SIM_SCGC6 |= SIM_SCGC6_ADC0_MASK; isn't necessary due it is already set in ADC16_DRV_Init function:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1455557857942438" data-renderedposition="86_8_1192_32" jivemacro_uid="_1455557857942438" modifiedtitle="true"&gt;&lt;P&gt;/* Enable clock for ADC. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOCK_SYS_EnableAdcClock(instance);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for PMC_REGSC |= PMC_REGSC_BGBE_MASK, it is specified in Reference Manual's section 28.1.1 ADC0 connections/channel assignment a small note at the end of the table:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="Bandgap note.jpg"&gt;&lt;IMG alt="Bandgap note.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/53293i9F3EBD8777F7325B/image-size/large?v=v2&amp;amp;px=999" title="Bandgap note.jpg" /&gt;&lt;/SPAN&gt;And when you specify A/D channel to be Bandgap (channel AD27) you only configure ADCH field for ADC0_SC1 register, so user should enable PMC bandgap independently because it is related to other module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this can help you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Isaac Avila&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:28:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/bandgap-enable/m-p/506860#M31824</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2020-11-02T13:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: bandgap enable</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/bandgap-enable/m-p/506861#M31825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Isaac, my problem is&amp;nbsp; (was with ksdk v2) the too easy use of Processor Expert that often makes me forget about hw and manuals...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 13:17:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/bandgap-enable/m-p/506861#M31825</guid>
      <dc:creator>Lupo</dc:creator>
      <dc:date>2016-02-26T13:17:37Z</dc:date>
    </item>
  </channel>
</rss>

