<?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: PGA Select Inputs in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PGA-Select-Inputs/m-p/504706#M12346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charudatta,&lt;/P&gt;&lt;P&gt;In attachment is simple ADC example code for S12ZVL.&lt;/P&gt;&lt;P&gt;So, for measuring PGA_IN0 and PGA_IN1 you may configure commands like:&lt;/P&gt;&lt;P&gt;#define PGA_ADC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //See table Analog Input Channel Select in refernce manual&lt;/P&gt;&lt;P&gt;adc0_cmdlist[0] = CMD_SEL(norm)+ OPT(1)+INTFLG_SEL(0)+VRH_SEL(1)+VRL_SEL(1)+CH_SEL(PGA_ADC)+SMP(0x14);&lt;/P&gt;&lt;P&gt;adc0_cmdlist[1] = CMD_SEL(eolw)+ OPT(2)+INTFLG_SEL(1)+VRH_SEL(1)+VRL_SEL(1)+CH_SEL(PGA_ADC)+SMP(0x14);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: SMP(0x14) refers to longest sampling time = 24 ADC Clock Cycles&lt;/P&gt;&lt;P&gt;Unfortunately, I don't have S12ZVL64/S12ZVL96/S12ZVL128 board, for now, therefore, I cannot test it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2016 14:53:48 GMT</pubDate>
    <dc:creator>RadekS</dc:creator>
    <dc:date>2016-05-10T14:53:48Z</dc:date>
    <item>
      <title>PGA Select Inputs</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PGA-Select-Inputs/m-p/504705#M12345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Currently I'm using register PGAINSEL[1:0] to select inputs for PGA.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;10 PGA_IN0 is selected as input voltage (PGAIN).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;11 PGA_IN1 is selected as input voltage (PGAIN).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue: The value getting as PGA output for the inputs given is getting skewed occasionally.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I want to configure ADC option Bits to select the PGA inputs to solve this.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I need to use&amp;nbsp; ADC option bit to select PGA inputs i.e.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ADC option bit[3:0] PGA input source selection&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are all the configurations to be made.&lt;/P&gt;&lt;P&gt;Can anyone help on this?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Charudatta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 14:38:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PGA-Select-Inputs/m-p/504705#M12345</guid>
      <dc:creator>charudattaingal</dc:creator>
      <dc:date>2016-05-06T14:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: PGA Select Inputs</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PGA-Select-Inputs/m-p/504706#M12346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Charudatta,&lt;/P&gt;&lt;P&gt;In attachment is simple ADC example code for S12ZVL.&lt;/P&gt;&lt;P&gt;So, for measuring PGA_IN0 and PGA_IN1 you may configure commands like:&lt;/P&gt;&lt;P&gt;#define PGA_ADC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //See table Analog Input Channel Select in refernce manual&lt;/P&gt;&lt;P&gt;adc0_cmdlist[0] = CMD_SEL(norm)+ OPT(1)+INTFLG_SEL(0)+VRH_SEL(1)+VRL_SEL(1)+CH_SEL(PGA_ADC)+SMP(0x14);&lt;/P&gt;&lt;P&gt;adc0_cmdlist[1] = CMD_SEL(eolw)+ OPT(2)+INTFLG_SEL(1)+VRH_SEL(1)+VRL_SEL(1)+CH_SEL(PGA_ADC)+SMP(0x14);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: SMP(0x14) refers to longest sampling time = 24 ADC Clock Cycles&lt;/P&gt;&lt;P&gt;Unfortunately, I don't have S12ZVL64/S12ZVL96/S12ZVL128 board, for now, therefore, I cannot test it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;RadekS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 14:53:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PGA-Select-Inputs/m-p/504706#M12346</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2016-05-10T14:53:48Z</dc:date>
    </item>
  </channel>
</rss>

