<?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 Re: How to Configure ADC? in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1597324#M22845</link>
    <description>&lt;P&gt;Actually I am using 220kiloohms and 33kiloohms&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 12:42:33 GMT</pubDate>
    <dc:creator>Charith</dc:creator>
    <dc:date>2023-02-10T12:42:33Z</dc:date>
    <item>
      <title>How to Configure ADC?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1595248#M22825</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using MPC5748G Micro for ADC Conversion. I am using a circuit with 12Volts input. I need to monitor the input to that circuit using ADC, for that I am using Voltage Divider Circuit with 3.3Volts reference. I am continuously taking the readings through ADC channel but the readings are not constant, it is varying. I am using the below configurations for ADC. Please suggest if any corrections required.&lt;/P&gt;&lt;P&gt;void ADC1_PadConfig_ChanSelect(void) {&lt;BR /&gt;SIUL2.MSCR[PD0].B.APC = 1; /* PD0 = function ADC1_P[0] = ADC 1 channel 0 */&lt;BR /&gt;ADC_1.NCMR0.B.CH0 = 1; /* Enable channel 0 for normal conversion on ADC1 */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;void ADC1_Calibration(void) {&lt;BR /&gt;uint32_t __attribute__ ((unused)) ADC1_Calibration_Failed = 1; /* Calibration has not passed yet */&lt;/P&gt;&lt;P&gt;ADC_1.MCR.B.PWDN = 1; /* Power down for starting calibration process */&lt;BR /&gt;ADC_1.MCR.B.ADCLKSEL = 0; /* ADC clock = bus clock/2 (80/2 MHz FS80) */&lt;BR /&gt;/* Note: Calibration requires it to be set at max 40MHz for best results */&lt;BR /&gt;ADC_1.CALBISTREG.B.TEST_EN = 1; /* Enable calibration test */&lt;BR /&gt;ADC_1.MCR.B.PWDN = 0; /* Power back up for calibration test to start */&lt;BR /&gt;while(ADC_1.CALBISTREG.B.C_T_BUSY); /* Wait for calibration to finish */&lt;BR /&gt;if(ADC_1.MSR.B.CALIBRTD) { /* If calibration ran successfully */&lt;BR /&gt;ADC1_Calibration_Failed = 0; /* Calibration was successful */&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;ADC1_Calibration_Failed = 1; /* Calibration was not successful */&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void ADC1_Init(void) { /* Initialize ADC1 module &amp;amp; start normal scan mode */&lt;BR /&gt;ADC_1.MCR.B.PWDN = 1; /* Power down for starting module initialization */&lt;BR /&gt;ADC_1.MCR.B.OWREN = 0; /* Enable overwriting older conversion results */&lt;BR /&gt;ADC_1.MCR.B.MODE = 1; /* Scan mode (1) used instead of one shot mode */&lt;BR /&gt;ADC_1.MCR.B.ADCLKSEL = 1; /* ADC clock = FS80 bus clock (80 MHz here) */&lt;BR /&gt;ADC_1.MCR.B.PWDN = 0; /* ADC_1 ready to receive conversation triggers */&lt;BR /&gt;ADC_1.MCR.B.NSTART = 1; /* Initiate trigger for normal scan */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void ADC1_Read_Chan_0 (void) { /* Read conversion results */&lt;BR /&gt;Result= ADC_1.CDR[0].B.CDATA; /* Read channel 0 conversion result data */&lt;BR /&gt;ResultInMv = (uint16_t) (ADC_VREF*Result/0xFFF); /* Conversion in mV */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 05:10:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1595248#M22825</guid>
      <dc:creator>Charith</dc:creator>
      <dc:date>2023-02-09T05:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Configure ADC?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1596551#M22834</link>
      <description>&lt;P&gt;Could you specify how much it is varying? Conversion accuracy level depends also on noise level and ADC input impedance, usually you can see conversion result floating a bit unless it is high precison analog design what not the case of EVB. &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="davidtosenovjan_0-1675943534472.png" style="width: 740px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210299iC5B5193EB9B24279/image-dimensions/740x87?v=v2" width="740" height="87" role="button" title="davidtosenovjan_0-1675943534472.png" alt="davidtosenovjan_0-1675943534472.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 11:52:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1596551#M22834</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2023-02-09T11:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Configure ADC?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1597280#M22842</link>
      <description>&lt;P&gt;I am giving 12V input to the voltage divider circuit having 220k as R1 and 33k as R2, the output from voltage divider is 1.565V.&lt;/P&gt;&lt;P&gt;If I read the ADC readings from the Voltage Divider which should give 1.565V(or 1565mV) I am reading in the range of 1410mV to 1540mV.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 11:03:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1597280#M22842</guid>
      <dc:creator>Charith</dc:creator>
      <dc:date>2023-02-10T11:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Configure ADC?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1597311#M22844</link>
      <description>&lt;P&gt;These are very weak resistors and it'll be apparently reason why you are facing conversion inaccuracy.&lt;BR /&gt;&lt;BR /&gt;Pay attention to following appnote, section "Input Leakage Offset Error":&lt;BR /&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN2438.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN2438.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I would recommend to use resistor divider consisting of resistors in orders units of kiloohms, not hundreds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 12:29:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1597311#M22844</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2023-02-10T12:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Configure ADC?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1597324#M22845</link>
      <description>&lt;P&gt;Actually I am using 220kiloohms and 33kiloohms&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 12:42:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1597324#M22845</guid>
      <dc:creator>Charith</dc:creator>
      <dc:date>2023-02-10T12:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Configure ADC?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1597466#M22846</link>
      <description>&lt;P&gt;Yes, I understand. These are weak resistors (i.e. high resistance). Use stronger resistors (i.e. with lower resistance).&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 16:04:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1597466#M22846</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2023-02-10T16:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Configure ADC?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1599297#M22870</link>
      <description>&lt;P&gt;If I use lower resistor values 2.2Kohms and 330ohms the ADC values is stable.&lt;/P&gt;&lt;P&gt;Can I know how to configure 10bit ADC for the same.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 05:22:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1599297#M22870</guid>
      <dc:creator>Charith</dc:creator>
      <dc:date>2023-02-15T05:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Configure ADC?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1599460#M22877</link>
      <description>&lt;P&gt;This is common topic for all kind of ADCs.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 09:00:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1599460#M22877</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2023-02-15T09:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Configure ADC?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1600189#M22881</link>
      <description>&lt;P&gt;Can You Please Help me with Configuration changes to be done in code for 10bit ADC.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 05:39:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-Configure-ADC/m-p/1600189#M22881</guid>
      <dc:creator>Charith</dc:creator>
      <dc:date>2023-02-16T05:39:11Z</dc:date>
    </item>
  </channel>
</rss>

