<?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>topic Re: LPC1114 Microseconds Delay in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596913#M32030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Wed Aug 07 10:27:22 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That sounds like a PWM to me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.microbuilder.eu%2FProjects%2FLPC1343ReferenceDesign%2FLPC1343_LPC1114_PWM.aspx" rel="nofollow" target="_blank"&gt;http://www.microbuilder.eu/Projects/LPC1343ReferenceDesign/LPC1343_LPC1114_PWM.aspx&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 21:38:10 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T21:38:10Z</dc:date>
    <item>
      <title>LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596908#M32025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by exgreyfox on Wed Aug 07 07:40:21 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello my dear friends, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;I am in need of some pointers on how to get delays going in the microsecond range. I have already done he obvious and taken a look around the forums for anyone else who has had this issue. Here is one: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fknowledgebase.nxp.com%2Fshowthread.php%3Ft%3D2817" rel="nofollow" target="_blank"&gt;http://knowledgebase.nxp.com/showthread.php?t=2817&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried using a SysTick interrupt handler just like in post #5 and also tried the custom delay function in post #2. Also tried modifying the MHZ_PRESCALE in timer16.h all to no avail. I can get the milliseconds delay to work easely but getting it into microseconds has been giving a lot of trouble. Any pointers and help is greatly appreciated. Thank you for your time. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596908#M32025</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596909#M32026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Wed Aug 07 08:09:41 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;How many microsecond delay do you want? The core is not going to get much chance to execute code if you want a small number of microseconds.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596909#M32026</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596910#M32027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by exgreyfox on Wed Aug 07 09:08:15 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: TheFallGuy&lt;/STRONG&gt;&lt;BR /&gt;How many microsecond delay do you want? The core is not going to get much chance to execute code if you want a small number of microseconds.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking to do a delay of 2 and 5 microseconds to interface a sonar sensor. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596910#M32027</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596911#M32028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Wed Aug 07 09:22:36 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Lets say your LPC1114 is running at 48MHz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the processor can execute a MAXIMUM of 48 instructions in 1 microsecond. However, not all instructions are single-cycle, there may be wait-states imposed by the flash and branches will lose a couple of cycles while it refills the pipeline. In reality it will be more like 40 instructions allowing for 'delays'. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Servicing a SysTick interrupt is going to take about 30 of those instructions (I haven't counted, but that is the right order). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume you are going to have other interrupts in the system? Are you going to try to do something useful, too? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hmm. I don't think this is going to work...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596911#M32028</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596912#M32029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by exgreyfox on Wed Aug 07 10:09:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Basically I want to send a low pulse on a GPIO pin and hold it low for 2 microseconds and then send a high pulse that lasts for 5 microseconds and then send another low 2 microsecond pulse and so on and so forth. I am trying to interface the Parralax Ping Sensor: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.pololu.com%2Ffile%2F0J214%2FPING_documentation.pdf" rel="nofollow" target="_blank"&gt;http://www.pololu.com/file/0J214/PING_documentation.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596912#M32029</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596913#M32030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Wed Aug 07 10:27:22 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That sounds like a PWM to me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.microbuilder.eu%2FProjects%2FLPC1343ReferenceDesign%2FLPC1343_LPC1114_PWM.aspx" rel="nofollow" target="_blank"&gt;http://www.microbuilder.eu/Projects/LPC1343ReferenceDesign/LPC1343_LPC1114_PWM.aspx&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596913#M32030</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596914#M32031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by exgreyfox on Wed Aug 07 10:45:12 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't really just spit out a PWM on the pin. The signal pin switches between being an output and an input periodically. Once the 5us pulse is sent, I then wait about Tholdoff&amp;nbsp; = 750us and then switch the GPIO pin to be an input at which point the sensor sends a pulse with the pulse width being proportional to the distance to the obstacle in front of the sensor. A PWM would not work in this application.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So what youre saying is that the LPC1114 cannot do microsecond delays? Is this a true statement? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596914#M32031</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596915#M32032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by RazorConcepts on Wed Aug 07 11:38:03 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;An interrupt based microsecond delay may not work, but you can just waste clock cycles to act as a delay.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596915#M32032</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596916#M32033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Wed Aug 07 11:38:48 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;It is very probably true that your micro can not interface in a bit bang fashion as you describe and the Fall Guy has demonstrated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I would suggest interfacing your device's signal pin to &lt;/SPAN&gt;&lt;STRONG&gt;TWO&lt;/STRONG&gt;&lt;SPAN&gt; cpu pins! -- one input and one output &lt;/SPAN&gt;&lt;I&gt;with a loop back prevention diode between them&lt;/I&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The the poor design of the sensor is mitigated by treating the start and receive as two &lt;/SPAN&gt;&lt;I&gt;independant&lt;/I&gt;&lt;SPAN&gt; problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Set the output pin to a standard PWM -- 2 microsecs hi, 200 millisesc low (i.e. whatever you want the sampling interval to be).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set the inpit pin for input capture to get a value proportional to the return pulse width -- that is precisely what it is designed to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For details, these forums have many posts both on PWM and on input capture; there is example code in the LPCXpresso setup and on this site also.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596916#M32033</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596917#M32034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by exgreyfox on Wed Aug 07 12:20:29 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What would be the best way to waste clock cycles? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596917#M32034</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596918#M32035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by exgreyfox on Wed Aug 07 13:13:19 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: MikeSimmonds&lt;/STRONG&gt;&lt;BR /&gt;It is very probably true that your micro can not interface in a bit bang fashion as you describe and the Fall Guy has demonstrated.&lt;BR /&gt;&lt;BR /&gt;However, I would suggest interfacing your device's signal pin to &lt;STRONG&gt;TWO&lt;/STRONG&gt; cpu pins! -- one input and one output &lt;I&gt;with a loop back prevention diode between them&lt;/I&gt;.&lt;BR /&gt;&lt;BR /&gt;The the poor design of the sensor is mitigated by treating the start and receive as two &lt;I&gt;independant&lt;/I&gt; problems.&lt;BR /&gt;&lt;BR /&gt;Set the output pin to a standard PWM -- 2 microsecs hi, 200 millisesc low (i.e. whatever you want the sampling interval to be).&lt;BR /&gt;Set the inpit pin for input capture to get a value proportional to the return pulse width -- that is precisely what it is designed to do.&lt;BR /&gt;&lt;BR /&gt;For details, these forums have many posts both on PWM and on input capture; there is example code in the LPCXpresso setup and on this site also.&lt;BR /&gt;&lt;BR /&gt;Regards, Mike&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So basically interface the single sensor pin into two separate pins on the MCU by Y-splitting the sensor pin and adding a diode on the PWM signal output pin? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596918#M32035</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596919#M32036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by exgreyfox on Wed Aug 07 13:13:42 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike Simmonds, so basically interface the single sensor pin into two separate pins on the MCU by Y-splitting the sensor pin and adding a diode on the PWM signal output pin? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596919#M32036</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596920#M32037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by RazorConcepts on Wed Aug 07 13:15:18 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You would make a for loop, and inside you call &lt;/SPAN&gt;&lt;A href="http://http://en.wikipedia.org/wiki/NOP"&gt;NOP&lt;/A&gt;&lt;SPAN&gt; (no operation) instructions. I'm new to LPC as well so I'm not sure on the exact syntax of the NOP instruction for LPC devices, or how many cycles a NOP instruction takes (but its usuualy just one instruction cycle).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596920#M32037</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596921#M32038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Wed Aug 07 13:31:37 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You can just spin, waiting for the period to elapse. The most reliable way of doing this would be to set off a timer at a known frequency and then poll the timer waiting for the correct period to expire.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I told you is that you cannot use an interrupt driven timer to measure such small delays on a 48mhz processo, and expect to do anything else. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596921#M32038</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114 Microseconds Delay</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596922#M32039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by exgreyfox on Wed Aug 07 15:05:19 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks RazorConcepts, that did the trick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;GPIOSetDir( 3, 2, 1 ); //DIR M0 TO sensor
GPIOSetValue( 1, 9, 1 ); //DIR M0 TO sensor

GPIOSetValue( 3, 2, 0 );// Send low pulse
for (i = 0; i&amp;lt;25000; i++) {}
GPIOSetValue( 3, 2, 1 );// Send high pulse
for (i = 0; i&amp;lt;6; i++) {}
GPIOSetValue( 3, 2, 0 );// Send low pulse

GPIOSetValue(1, 9, 0 );&amp;nbsp; //DIR sensor TO M0&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not a very elegant way I guess but it was the easiest thing to do. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:38:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1114-Microseconds-Delay/m-p/596922#M32039</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:38:15Z</dc:date>
    </item>
  </channel>
</rss>

