<?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>S12 / MagniV MicrocontrollersのトピックRe: MC9S12DB128 Port/ATD/Coding questions.</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DB128-Port-ATD-Coding-questions/m-p/220391#M9239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some things to check, that may help in debugging.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are the VRH and VRL ATD reference voltages in spec?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the code runs, do any of the CCF bits in ATDSTAT1 get set?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the SCF flag in ATDSTAT0 get set?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the flags indicate a conversion has completed, check the contents of the ATDDRH/L registers after conversion.&lt;/P&gt;&lt;P&gt;Do these contents make sense? Do they make sense applying full scale and zero at the input pin?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ATD0CTL5 = 0xB8&lt;/P&gt;&lt;P&gt;Why does the code write a "1" to ATD0CTL5[3]? This bit is unimplemented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ATD0CTL4[[7]=SRES8. In the code this is clear for 10-bit resolution.&lt;/P&gt;&lt;P&gt;ATD0CTL5[7] = DJM. In the code this is set, for right justified, but only the ATDDRL register is used, thus the 2 most significant bits are ignored. Is this intended?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DPB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Sep 2010 18:50:54 GMT</pubDate>
    <dc:creator>DPB</dc:creator>
    <dc:date>2010-09-02T18:50:54Z</dc:date>
    <item>
      <title>MC9S12DB128 Port/ATD/Coding questions.</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DB128-Port-ATD-Coding-questions/m-p/220390#M9238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm going to apologize in advance for my lack of in depth knowledge of what's really going on here so please try and keep it simple with me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the problem that my team and I have run into. We are trying to take 3 analog signals come into pins 51, 52, and 53 which are ATD0, ATD1, and ATD2. Since we are going to be putting these signals out over a 9600 baud Zigbee we need these to come out of the TX line on pin 66.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First off though, we need to figure out what we're doing wrong with the ATD because as of right now our project will compile correctly but when running a test on it with an o-scope we're not able to see anything coming off the pin 66.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've included the .zip of the project if anyone wants to take a look, but be warned we're college students and this is our first attempt at anything like this. We've been doing research on a book that is at our library and that's what we've formed our current code off of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 14:11:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DB128-Port-ATD-Coding-questions/m-p/220390#M9238</guid>
      <dc:creator>tastypotato</dc:creator>
      <dc:date>2010-09-02T14:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DB128 Port/ATD/Coding questions.</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DB128-Port-ATD-Coding-questions/m-p/220391#M9239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some things to check, that may help in debugging.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are the VRH and VRL ATD reference voltages in spec?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the code runs, do any of the CCF bits in ATDSTAT1 get set?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the SCF flag in ATDSTAT0 get set?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the flags indicate a conversion has completed, check the contents of the ATDDRH/L registers after conversion.&lt;/P&gt;&lt;P&gt;Do these contents make sense? Do they make sense applying full scale and zero at the input pin?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ATD0CTL5 = 0xB8&lt;/P&gt;&lt;P&gt;Why does the code write a "1" to ATD0CTL5[3]? This bit is unimplemented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ATD0CTL4[[7]=SRES8. In the code this is clear for 10-bit resolution.&lt;/P&gt;&lt;P&gt;ATD0CTL5[7] = DJM. In the code this is set, for right justified, but only the ATDDRL register is used, thus the 2 most significant bits are ignored. Is this intended?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DPB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 18:50:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DB128-Port-ATD-Coding-questions/m-p/220391#M9239</guid>
      <dc:creator>DPB</dc:creator>
      <dc:date>2010-09-02T18:50:54Z</dc:date>
    </item>
  </channel>
</rss>

