<?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>CodeWarrior for MCUのトピックRe: How to simulate analog input to ADC module?</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140127#M2425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Basically you are looking a PDF, which applies to HC08/HCS08 simulator.&lt;/DIV&gt;&lt;DIV&gt;Simulation technology is different between HC(S)08 and HC12, so I would not take that document as basis for simulating HCS12 devices.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;With the current version of the HC(S)12 tools (CodeWarrior for HCS12 V4.6), the only way you can stimulate input to the A/D converter is through commands.&lt;/DIV&gt;&lt;DIV&gt;You cannot use the visualization tool in that purpose.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The dedicated commands are ATD0_SETPAD and ATD1_SETPAD.&lt;/DIV&gt;&lt;DIV&gt;These commands are briefly described in the "Debugger_HC12.pdf" manual.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The syntax is&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; ATDx_SETPAD &amp;lt;ChannelNbr&amp;gt; &amp;lt;Value&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For example to input 0.125 on ATD0 channel 1, enter command:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; ATD0_SETPAD 1 0.125&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You can use that command either directly in the Command window or use it in a command file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope that helps.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2007 17:00:09 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2007-07-16T17:00:09Z</dc:date>
    <item>
      <title>How to simulate analog input to ADC module?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140126#M2424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi! I am Korean. If some bad grammer occurs, plz understand my poor level of english.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Referring to following documentation &lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freescale.com%2Ffiles%2Fsoft_dev_tools%2Fdoc%2Ftrain_ref_material%2FQTQYPET.pdf" rel="nofollow" target="_blank"&gt;http://www.freescale.com/files/soft_dev_tools/doc/train_ref_material/QTQYPET.pdf&lt;/A&gt;, I tried to simulate analog input AD conversion.&lt;/DIV&gt;&lt;DIV&gt;But several parts that I couldn't get are there.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If it's not bothering you, would you give me some helps?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG style=": ; color: #0000ff;"&gt;1. My development information&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Freescale Codewarrior 5.7.0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Target: MC9S12DT256CPVE&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG style=": ; color: #0033FF;"&gt;2.&amp;nbsp;Questoins.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;1)&amp;nbsp;Is it posssible to simulate analog input to ADC(or ADT) module?&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; I can use visualization tool a bit. But I don't know how to input anlog signal to ADC with visualization tool. In above pdf file, they use bar instrument in which they set "Port to display" as 0x3E, which part I don't understand(refer to &lt;SPAN style="text-decoration: underline;"&gt;page 10&lt;/SPAN&gt;). Is&amp;nbsp;0x3E memory address related to analog input?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;2) What's difference between&amp;nbsp;following terms in "Port to Display" option?&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;substitue vs subscribe, variable vs expression&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;3) Do I need this command to use FCS?&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;inputa 00 (refer to &lt;SPAN style="text-decoration: underline;"&gt;page 6&lt;/SPAN&gt;). One of message from this forum, they say it's not need. It's only for S08. Is it right?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you for listening!!&lt;/DIV&gt;&lt;DIV&gt;ps)I attatched the pdf file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.freescale.com%2Ffiles%2Fcommunity_files%2FCW816COMM%2Fmsg2870_visualtoolExample.pdf" rel="nofollow" target="_blank"&gt;visualtoolExample.pdf&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-08-31&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;03:54 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 11:55:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140126#M2424</guid>
      <dc:creator>solitude</dc:creator>
      <dc:date>2007-07-16T11:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate analog input to ADC module?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140127#M2425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Basically you are looking a PDF, which applies to HC08/HCS08 simulator.&lt;/DIV&gt;&lt;DIV&gt;Simulation technology is different between HC(S)08 and HC12, so I would not take that document as basis for simulating HCS12 devices.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;With the current version of the HC(S)12 tools (CodeWarrior for HCS12 V4.6), the only way you can stimulate input to the A/D converter is through commands.&lt;/DIV&gt;&lt;DIV&gt;You cannot use the visualization tool in that purpose.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The dedicated commands are ATD0_SETPAD and ATD1_SETPAD.&lt;/DIV&gt;&lt;DIV&gt;These commands are briefly described in the "Debugger_HC12.pdf" manual.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The syntax is&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; ATDx_SETPAD &amp;lt;ChannelNbr&amp;gt; &amp;lt;Value&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For example to input 0.125 on ATD0 channel 1, enter command:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; ATD0_SETPAD 1 0.125&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You can use that command either directly in the Command window or use it in a command file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope that helps.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 17:00:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140127#M2425</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-07-16T17:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate analog input to ADC module?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140128#M2426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" id="smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks a lot.&lt;/DIV&gt;&lt;DIV&gt;It works.&lt;/DIV&gt;&lt;DIV&gt;It was so helpful.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by solitude on &lt;SPAN class="date_text"&gt;2007-07-16&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:40 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 18:39:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140128#M2426</guid>
      <dc:creator>solitude</dc:creator>
      <dc:date>2007-07-16T18:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate analog input to ADC module?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140129#M2427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;When I use that in command window, the following error happen:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Error: no such command: ATD0_SETPAD 1 0.125&lt;BR /&gt;If the command exists, open the matching component and try it again&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;What does that mean?&lt;/DIV&gt;&lt;DIV&gt;How to overcome?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 12:40:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140129#M2427</guid>
      <dc:creator>Nicklop</dc:creator>
      <dc:date>2008-06-17T12:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate analog input to ADC module?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140130#M2428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Which version of CodeWarrior are you using?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Start CodeWarrior&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Select Help -&amp;gt; About Freescale CodeWarrior&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Click on "Install Products"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - CodeWarrior version used is displayed on top in the Installed Products dialog.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Are you debugging on simulator?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Which MCU are you simulating (HC08AW60, ....)?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 18:04:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140130#M2428</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2008-06-17T18:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate analog input to ADC module?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140131#M2429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am using the Code Warrior Development Studio for Freescale HC12x 4.5. along with the evaluation board EVB9S12XEP100.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I try to put the command in the command window of simulator in the full chip simulation mode.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Anythings wrong?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 15:28:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140131#M2429</guid>
      <dc:creator>Nicklop</dc:creator>
      <dc:date>2008-06-23T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate analog input to ADC module?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140132#M2430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Command ATD0_SETPAD works in HC08&amp;nbsp;full chip simulation only.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you are debugging on the evaluation board, input AD value should come from the hardware.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 19:49:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-simulate-analog-input-to-ADC-module/m-p/140132#M2430</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2008-06-23T19:49:32Z</dc:date>
    </item>
  </channel>
</rss>

