<?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>Classic/Legacy CodeWarrior中的主题 Re: Stimulation File for HC908QY4 using CW 5.1</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Stimulation-File-for-HC908QY4-using-CW-5-1/m-p/137220#M1002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Ok, i´ll work based on your example, thanks very much for your help.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2007 20:05:01 GMT</pubDate>
    <dc:creator>Autotecnic</dc:creator>
    <dc:date>2007-06-21T20:05:01Z</dc:date>
    <item>
      <title>Stimulation File for HC908QY4 using CW 5.1</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Stimulation-File-for-HC908QY4-using-CW-5-1/m-p/137216#M998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello everyone, i´m trying to debug one of my proyects based on HC908QY4 and using CW V5.1 special edition. I already managed to define a visualization tool with one led and one switch asociated to an output pin and one input pin of my project. That worked ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now i want to create a stimulation file to replace the switch input, but i found very litle documentation about it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In help file it talks about iodemo.abs, but i don´t know where this demo is located ???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So i used the example below, shown in the help and adapt to my project :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Define an identifier a, which is located at address 0x210*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* This identifier is 1 Byte wide.*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;def a = TargetObject.#210.B;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* After 200 000 cycles have expired, repeat 50 time */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* the code sequence specified between the keywords */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* PERIODICAl and END. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PERIODICAL 200000, 50:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50000 a = 128; /* After 50 000 cycles, write 128 at address 0x210. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 150000 a = 4;&amp;nbsp;&amp;nbsp; /* After 150 000 cycles, write 4 at address 0x210. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;END&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;10000000 a = 0; /* After 10 000 000 cycles, write 0 at address 0x210. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed 0X210 for my PortA data register (0X0) . DDRA was set to input on bit 0. Load this file in stimulation component, run .. but nothing happens. No changes in memory locations for PORTA. I also&amp;nbsp; atached a led component to the same port , but i see no change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also read this doc : \Help\pdf\Debugger_HC08.pdf but it talks nothing about this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would apreciate any detailed help on how to create a stimulation file and make it to work with my project May be a link to a working example so i can learn. i found very litle explanation on this powerfull tool. !!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by J2MEJediMaster on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-06-19&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:59 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 02:00:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Stimulation-File-for-HC908QY4-using-CW-5-1/m-p/137216#M998</guid>
      <dc:creator>Autotecnic</dc:creator>
      <dc:date>2007-06-19T02:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Stimulation File</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Stimulation-File-for-HC908QY4-using-CW-5-1/m-p/137217#M999</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;Stimulation component is not available with HC08 Full Chip simulator.&lt;/DIV&gt;&lt;DIV&gt;So you will not be able to use it at all with that connection.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you wish to stimulate input on an I/O port, you can use a command file and the corresponding simulator commands.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please refer to the manual {Install}\Help\PDF\Debugger_HC08.pdf Chapter ""Book V - Commands for general purpose debugger commands.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Refer to Chapter "Book II - HC08 Debug Connections" section "HC08 Full Chip Simulation" -&amp;gt; "Configuration Procedure" -&amp;gt; "Peripheral Modules Options" for simulator specific commands.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this 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>Tue, 19 Jun 2007 13:37:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Stimulation-File-for-HC908QY4-using-CW-5-1/m-p/137217#M999</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-06-19T13:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Stimulation File for HC908QY4 using CW 5.1</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Stimulation-File-for-HC908QY4-using-CW-5-1/m-p/137218#M1000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello, CrazyCat , thanks for your time, i understand now i must use a command file to do that.&lt;BR /&gt;Up to now i used the comand window with the input &amp;lt;x&amp;gt; &amp;lt;n&amp;gt;&amp;nbsp; command to change the state of my PORTA bit 0, and that is ok, but now i would like to make my input change&amp;nbsp; form&amp;nbsp; 0 to 1 and back to 0 with a period of 1 sec. for ex.&amp;nbsp; Don´t figure how to make the delay and in general the syntax of the file.&lt;BR /&gt;&lt;BR /&gt;Would you be so kind to post a short example of how the command file would look (syntax) and how to save and call later in my debug session ??&lt;BR /&gt;&lt;BR /&gt;Thanks again for your time.&lt;BR /&gt;&lt;BR /&gt;Sorry if i´m not to clear it´s because english is not my first language.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 22:55:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Stimulation-File-for-HC908QY4-using-CW-5-1/m-p/137218#M1000</guid>
      <dc:creator>Autotecnic</dc:creator>
      <dc:date>2007-06-20T22:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stimulation File for HC908QY4 using CW 5.1</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Stimulation-File-for-HC908QY4-using-CW-5-1/m-p/137219#M1001</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 need to use the command wait to define a delay and then either a for or while loop to implement the loop.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For example:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier" size="1"&gt;&lt;/FONT&gt;&lt;DIV class="msg_source_code"&gt;&lt;FONT face="Courier" size="1"&gt;&lt;/FONT&gt;&lt;DIV class="text_smallest"&gt;&lt;FONT face="Courier" size="1"&gt;Code:&lt;/FONT&gt;&lt;/DIV&gt;&lt;PRE&gt;&lt;FONT face="Courier" size="1"&gt;&lt;FONT size="2"&gt;DEFINE loop = 0WHILE loop &amp;lt; 1000 DEFINE loop = loop + 1  INPUTA 1  // Write 0x1 to PORTA  WAIT 10   // Wait 1 second  INPUT 0   // Write 0 to PORTA  WAIT 10   // Wait 1 Second ENDWHILE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;FONT face="Courier" size="1"&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&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>Thu, 21 Jun 2007 13:44:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Stimulation-File-for-HC908QY4-using-CW-5-1/m-p/137219#M1001</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-06-21T13:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Stimulation File for HC908QY4 using CW 5.1</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Stimulation-File-for-HC908QY4-using-CW-5-1/m-p/137220#M1002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Ok, i´ll work based on your example, thanks very much for your help.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 20:05:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Stimulation-File-for-HC908QY4-using-CW-5-1/m-p/137220#M1002</guid>
      <dc:creator>Autotecnic</dc:creator>
      <dc:date>2007-06-21T20:05:01Z</dc:date>
    </item>
  </channel>
</rss>

