<?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>8-bit MicrocontrollersのトピックNewbie - definition watch and delay</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Newbie-definition-watch-and-delay/m-p/140165#M5540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've just got myself a demo9s08qg8 board and it looks just dandy, I'm having a couple of problems though and wondered if someone could help?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've got some definitions set up such as;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#define SW1 PTAD_PTAD2&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;so I can refer to SW1 which works fine, but how can I watch this while debugging? Seems it won't let me&amp;nbsp;add user definitions to the data watch window?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also, I just set up a simple delay function for roughly 500mS.&amp;nbsp; Is there a trace time function in CW or some way of setting the delay exactly?&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;sorry for the dumb questions&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Rich&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2006 04:24:42 GMT</pubDate>
    <dc:creator>RichT</dc:creator>
    <dc:date>2006-06-20T04:24:42Z</dc:date>
    <item>
      <title>Newbie - definition watch and delay</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Newbie-definition-watch-and-delay/m-p/140165#M5540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've just got myself a demo9s08qg8 board and it looks just dandy, I'm having a couple of problems though and wondered if someone could help?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've got some definitions set up such as;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;#define SW1 PTAD_PTAD2&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;so I can refer to SW1 which works fine, but how can I watch this while debugging? Seems it won't let me&amp;nbsp;add user definitions to the data watch window?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also, I just set up a simple delay function for roughly 500mS.&amp;nbsp; Is there a trace time function in CW or some way of setting the delay exactly?&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;sorry for the dumb questions&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Rich&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 04:24:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Newbie-definition-watch-and-delay/m-p/140165#M5540</guid>
      <dc:creator>RichT</dc:creator>
      <dc:date>2006-06-20T04:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie - definition watch and delay</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Newbie-definition-watch-and-delay/m-p/140166#M5541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello Rich,&lt;/P&gt;&lt;P&gt;If its a 500 ms Delay, you can just find the exact time by analyzing the instructions you use and flow of the program ( ex How many times a particular instruction is executed ).&lt;/P&gt;&lt;P&gt;Reciprocal of the bus frequency is the time for one Cycle.&lt;/P&gt;&lt;P&gt;If an instruction uses&amp;nbsp;3 cycles, time taken for execution is (3 * time for one Cycle ).&lt;/P&gt;&lt;P&gt;I dont know much about the IDE method to calculate.&lt;/P&gt;&lt;P&gt;Raghu Sorab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 19:33:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Newbie-definition-watch-and-delay/m-p/140166#M5541</guid>
      <dc:creator>RaghuSorab</dc:creator>
      <dc:date>2006-06-20T19:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie - definition watch and delay</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Newbie-definition-watch-and-delay/m-p/140167#M5542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Raghu &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks, thats much as I thought, though I would have thought something as 'sophisticated' as CW would have trace time functions etc built in. (MPLAB has a nice stopwatch function which does similar too)&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Does anyone know how to set up a watch for SW1 after using #define SW1 PTAD_PTAD2?&amp;nbsp;&amp;nbsp;&amp;nbsp; I don't want to have to scroll through the data window looking for the port pin, I just want to add SW1 to the data2 window etc.&amp;nbsp; It would be fine doing it the hard way for just one or two pins, but not lots.&amp;nbsp; I just get an error&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Rich&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 20:00:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Newbie-definition-watch-and-delay/m-p/140167#M5542</guid>
      <dc:creator>RichT</dc:creator>
      <dc:date>2006-06-20T20:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie - definition watch and delay</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Newbie-definition-watch-and-delay/m-p/140168#M5543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;For the 500ms delay, I would suggest using the Timer to generate precise delays, instead of counting instruction cycles, which is very tedious and inprecise.&lt;BR /&gt;&lt;BR /&gt;Use Processor Expert to create a TimerInt bean fixed at 500ms or variable according to yout needs.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Alex&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 23:42:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Newbie-definition-watch-and-delay/m-p/140168#M5543</guid>
      <dc:creator>alex_spotw</dc:creator>
      <dc:date>2006-06-20T23:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie - definition watch and delay</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Newbie-definition-watch-and-delay/m-p/140169#M5544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Alex&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;Use Processor Expert to create a TimerInt bean fixed at 500ms&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;hhhm.&amp;nbsp; I'll have to have a read up on these. Thanks&lt;/DIV&gt;&lt;DIV&gt;Any ideas on the watch window?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Rich&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2006 00:57:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Newbie-definition-watch-and-delay/m-p/140169#M5544</guid>
      <dc:creator>RichT</dc:creator>
      <dc:date>2006-06-21T00:57:33Z</dc:date>
    </item>
  </channel>
</rss>

