<?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 Analog to Digital Multiplex in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Analog-to-Digital-Multiplex/m-p/224636#M9283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to understand how the ADC works when you select multiplex. It is the ATDCTL5 CD, CC, CB, CA settings that confuse me. The datasheet does not help.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the table for selecting the channels (I think)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="5326_5326.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119628iF1BADD23C541373A/image-size/large?v=v2&amp;amp;px=999" role="button" title="5326_5326.png" alt="5326_5326.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MultiplexTable.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40082i34A212D8DB10DB6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="MultiplexTable.png" alt="MultiplexTable.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I want to the ADC conversion on channels AN2,AN3 and AN8. How do I select them. Looks like you can only select one analog channel.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jul 2013 04:50:51 GMT</pubDate>
    <dc:creator>rayhall</dc:creator>
    <dc:date>2013-07-26T04:50:51Z</dc:date>
    <item>
      <title>Analog to Digital Multiplex</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Analog-to-Digital-Multiplex/m-p/224636#M9283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to understand how the ADC works when you select multiplex. It is the ATDCTL5 CD, CC, CB, CA settings that confuse me. The datasheet does not help.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the table for selecting the channels (I think)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="5326_5326.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119628iF1BADD23C541373A/image-size/large?v=v2&amp;amp;px=999" role="button" title="5326_5326.png" alt="5326_5326.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MultiplexTable.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40082i34A212D8DB10DB6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="MultiplexTable.png" alt="MultiplexTable.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I want to the ADC conversion on channels AN2,AN3 and AN8. How do I select them. Looks like you can only select one analog channel.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2013 04:50:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Analog-to-Digital-Multiplex/m-p/224636#M9283</guid>
      <dc:creator>rayhall</dc:creator>
      <dc:date>2013-07-26T04:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Analog to Digital Multiplex</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Analog-to-Digital-Multiplex/m-p/224637#M9284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ATD module is simply.&lt;/P&gt;&lt;P&gt;You could configure sequence to measure:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;One result at one channel (MULT=x, [S8C..S1C]=1)&lt;/LI&gt;&lt;LI&gt;Multiple results at one channel (MULT=0, [S8C..S1C]&amp;gt;1)&lt;/LI&gt;&lt;LI&gt;One result at multiple channels (MULT=1, [S8C..S1C]&amp;gt;1)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If FIFO=0, results will be stored into ATDDR0 ... ATDDRn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;OL style="list-style-type: upper-alpha;"&gt;&lt;LI&gt;If you want measure AN2,AN3 and AN8 in one sequence, you can set: &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;MULT=1&lt;/P&gt;&lt;P&gt;sequence lenght [S8C..S1C]=7&lt;/P&gt;&lt;P&gt;start from AN2 [CD..CA]=2&lt;/P&gt;&lt;P&gt;When sequence ended, you can read AN2 result in ATDDR0, AN3 result in ATDDR1 and AN8 result in ATDDR6. This sequence could run in Continuous Conversion Sequence Mode (SCAN=1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: upper-alpha;"&gt;&lt;LI&gt;If you want measure AN2,AN3 and AN8 in one sequence, you can use also wrap around feature: &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;MULT=1&lt;/P&gt;&lt;P&gt;sequence lenght [S8C..S1C]=5&lt;/P&gt;&lt;P&gt;start from AN8 [CD..CA]=8&lt;/P&gt;&lt;P&gt;wrap around AN8 [WRAP3..WRAP0]=8&lt;/P&gt;&lt;P&gt;When sequence ended, you can read AN8 result in ATDDR0, AN2 result in ATDDR3 and AN3 result in ATDDR4. This will offer shorter conversion time of sequence (measured just 5 channels). This sequence could run in Continuous Conversion Sequence Mode (SCAN=1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: upper-alpha;"&gt;&lt;LI&gt;Next option is measure every channel separately and drives sequence by user software:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;MULT=x,&lt;/P&gt;&lt;P&gt;[S8C..S1C]=1&lt;/P&gt;&lt;P&gt;ASCIE=1&lt;/P&gt;&lt;P&gt;SCAN=0&lt;/P&gt;&lt;P&gt;In interrupt routine (end of conversion) we start new conversion (write into ATDCTL5) with new channel AN2-AN3-AN8-AN2-AN3-… [CD..CA]=x&lt;/P&gt;&lt;P&gt;When sequence ended (in interrupt routine), you can read every result in ATDDR0 register.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 13:54:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Analog-to-Digital-Multiplex/m-p/224637#M9284</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2013-08-07T13:54:58Z</dc:date>
    </item>
  </channel>
</rss>

