<?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: Wait() command using code warrior 3.1 SE</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Wait-command-using-code-warrior-3-1-SE/m-p/136953#M1916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi Kris,&lt;/P&gt;&lt;P&gt;First stab in the dark is watchdog trip.&lt;/P&gt;&lt;P&gt;Drop the delays to 100 and see if you go further through.&lt;/P&gt;&lt;P&gt;Then take it from there.&lt;/P&gt;&lt;P&gt;Regards David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 May 2006 13:18:09 GMT</pubDate>
    <dc:creator>peg</dc:creator>
    <dc:date>2006-05-25T13:18:09Z</dc:date>
    <item>
      <title>Wait() command using code warrior 3.1 SE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Wait-command-using-code-warrior-3-1-SE/m-p/136952#M1915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi im Kris im a University student, quick background on my hardware. Im using the 13192 SARD development kit (GT60 MCU).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to familiarise myself with the chip and its functionality i have been attempting to write some code to turn the leds on then off in sequential order. I&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;n the codewarrior help there is a wait() command( wait(2000) = wait seconds) but im unsure what header file it requires (anyone know?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently just for testing i use a delay function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void main(void) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/*intialise hardware code is here*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for(;&lt;/SPAN&gt;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_RESET_WATCHDOG()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (PUSH_BUTTON1==PRESSED){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LED1=LED_ON; delay(500);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LED1=LED_OFF; delay(500);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LED2=LED_ON;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/*same code till led 4 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void delay(long int count){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;long int i;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for (i=0;i&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code synatax is wrong because after i posted the code some formatiing option deleted stuff so ignore obvious mistakes in code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assuming I/O ports have been set in the header file(which they have) for some reason when i hold down PUSHBUTTON1 only LED1 flashes the rest dont even light up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards Kris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 12:56:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Wait-command-using-code-warrior-3-1-SE/m-p/136952#M1915</guid>
      <dc:creator>Shankman</dc:creator>
      <dc:date>2006-05-25T12:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Wait() command using code warrior 3.1 SE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Wait-command-using-code-warrior-3-1-SE/m-p/136953#M1916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi Kris,&lt;/P&gt;&lt;P&gt;First stab in the dark is watchdog trip.&lt;/P&gt;&lt;P&gt;Drop the delays to 100 and see if you go further through.&lt;/P&gt;&lt;P&gt;Then take it from there.&lt;/P&gt;&lt;P&gt;Regards David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2006 13:18:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Wait-command-using-code-warrior-3-1-SE/m-p/136953#M1916</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-05-25T13:18:09Z</dc:date>
    </item>
  </channel>
</rss>

