<?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: Request for help with embedded software design in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547537#M10163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by IntStarFoo on Wed Oct 24 11:00:50 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the advice and support.&amp;nbsp; A little extra info...&amp;nbsp; I found a great article on hacking GE G-35 Holiday Lights and followed the examples on &lt;/SPAN&gt;&lt;A href="http://http://www.deepdarc.com/2010/11/27/hacking-christmas-lights/"&gt;this site&lt;/A&gt;&lt;SPAN&gt; to do it myself using the LPCXpresso.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the signal I'm sending is actually 0 -&amp;gt; +3.3v pulses of 10us and 20us representing 1s and 0s.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My idea was to create a representation of daylight over my world map.&amp;nbsp; A sort of simple clock showing daylight and night.&amp;nbsp; I travel a lot and I decided it would be nice to see the position of the sun in the sky over a certain area at a certain time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a picture of the the setup.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[IMG]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FtZEOCh.jpg%5B%2FIMG%5D" rel="nofollow" target="_blank"&gt;http://i.imgur.com/tZEOCh.jpg[/IMG]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the Embedded Artists baseboard set up and running with the LPC1769.&amp;nbsp; I use the rotary dial to adjust the time on the RTC and use the RTC to decide how to set up the LED lights.&amp;nbsp; The OLED display is representing the 4x12 grid of LEDs as well as the Time and Date. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[IMG]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FrjR6kh.jpg%5B%2FIMG%5D" rel="nofollow" target="_blank"&gt;http://i.imgur.com/rjR6kh.jpg[/IMG]&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:25:17 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:25:17Z</dc:date>
    <item>
      <title>Request for help with embedded software design</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547533#M10159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by IntStarFoo on Tue Oct 23 08:58:41 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All, I'm a hobby embedded programmer and I have a few questions... I have been playing with a set of LED holiday lights and trying to control them using an LPC1769 board from Embedded Artists.&amp;nbsp; A friend helped me get started with the tools, hardware and the initial code and I have been modifying it from there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The signal to address one LED takes just under 1000us to send (a bunch of 1s and 0s represented by +5v low for 10us or 20us).&amp;nbsp; I have 50 bulbs, so the entire signal takes about 50ms every time I want to update the bulbs with a new color.&amp;nbsp; So, I configured a timer to interrupt every 1us then built the signal from there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything works great!&amp;nbsp; I am able to address the bulbs, change colors and even create little light shows.&amp;nbsp; I decided to step it up a notch and purchased the EA Baseboard to add some user input functionality.&amp;nbsp; This is when I started running into trouble.&amp;nbsp; As "frame" points out below from another post, I am running out of processing power.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: frame&lt;/STRONG&gt;&lt;BR /&gt;Apart from the timer bug in the library, a 1us interrupt is a rather heavy load for the uC.&lt;BR /&gt;These are about 120 instructions (at max. speed), for servicing the interrupt AND doing anything else.&lt;BR /&gt;It might work if there is no other performance load, but don't be surprised if the code misbehaves&lt;BR /&gt;when adding modest functionality.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The baseboard includes a bunch of IO devices.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I decided to use a rotary dial to allow the lights to be moved when a user turns the dial left or right.&amp;nbsp; [I]I poll the dial in my main loop and send the updated message to the lights when they change.[/I]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I decided to draw 50 squares on the OLED representing each LED and attempt to mimic the color with black and white shapes. [I]I redraw the entire thing every time the lights change. (I see much room for optimization here. with Bitmaps and buffering)[/I]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I decided to add the time and date on the OLED using the Real Time Clock.&amp;nbsp; [I]I created an RTC interrupt that occurs every 1 second and I draw the new time/date to the OLED using sprintf and a oled_writestring function from an example.&amp;nbsp; (again, much room for optimization.)[/I]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And... When I put it all together... I come up bubkis.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Clearly, I need some optimizing in both the code and the design.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have advice on how to set this all up?&amp;nbsp; Should I be using all timers?&amp;nbsp; No timers?&amp;nbsp; Polling?&amp;nbsp; Is it asking too much for a 120mhz processor to be able to do all of this at once? :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IntStarFoo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547533#M10159</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Request for help with embedded software design</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547534#M10160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by graynomad on Tue Oct 23 19:00:25 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;A 1uS interrupt is a big ask under the circumstances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;The signal to address one LED takes just under 1000us to send (a bunch of 1s and 0s represented by +5v low for 10us or 20us)&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Straight away you could get an average 15x improvement by only interrupting every 10 or 20uS depending on the current bit length.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547534#M10160</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Request for help with embedded software design</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547535#M10161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by daniel.widyanto on Tue Oct 23 19:55:30 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi IntStarFoo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First of all, congratz if you've gone so far :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For controlling 50 LEDs (I assume it's LED, or is it truly normal bulbs with AC power source ?), I think the best is to use serial-in-paralel-out shift register. See &lt;/SPAN&gt;&lt;A href="http://"&gt;http://www.nxp.com/documents/data_sheet/74HC_HCT595.pdf&lt;/A&gt;&lt;SPAN&gt; Then use the SSP peripheral to drive the 50 LED from the MCU.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547535#M10161</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Request for help with embedded software design</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547536#M10162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by graynomad on Tue Oct 23 20:03:34 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;But it sounds like some weird drivers are being used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;a bunch of 1s and 0s represented by +5v low for 10us or 20us&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Is that the case IntStarFoo?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not then certainly some shift regs may be in order, for that matter there are all manner of LED driver chips around.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547536#M10162</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Request for help with embedded software design</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547537#M10163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by IntStarFoo on Wed Oct 24 11:00:50 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the advice and support.&amp;nbsp; A little extra info...&amp;nbsp; I found a great article on hacking GE G-35 Holiday Lights and followed the examples on &lt;/SPAN&gt;&lt;A href="http://http://www.deepdarc.com/2010/11/27/hacking-christmas-lights/"&gt;this site&lt;/A&gt;&lt;SPAN&gt; to do it myself using the LPCXpresso.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the signal I'm sending is actually 0 -&amp;gt; +3.3v pulses of 10us and 20us representing 1s and 0s.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My idea was to create a representation of daylight over my world map.&amp;nbsp; A sort of simple clock showing daylight and night.&amp;nbsp; I travel a lot and I decided it would be nice to see the position of the sun in the sky over a certain area at a certain time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a picture of the the setup.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[IMG]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FtZEOCh.jpg%5B%2FIMG%5D" rel="nofollow" target="_blank"&gt;http://i.imgur.com/tZEOCh.jpg[/IMG]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the Embedded Artists baseboard set up and running with the LPC1769.&amp;nbsp; I use the rotary dial to adjust the time on the RTC and use the RTC to decide how to set up the LED lights.&amp;nbsp; The OLED display is representing the 4x12 grid of LEDs as well as the Time and Date. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[IMG]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FrjR6kh.jpg%5B%2FIMG%5D" rel="nofollow" target="_blank"&gt;http://i.imgur.com/rjR6kh.jpg[/IMG]&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547537#M10163</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Request for help with embedded software design</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547538#M10164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by graynomad on Wed Oct 24 18:35:42 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Neat, I thought those upside down maps were just a novelty thing we have here in Aus.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, as I said I reckon you could reduce your interrupts to 10uS, why are you using 1uS?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547538#M10164</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Request for help with embedded software design</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547539#M10165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by IntStarFoo on Wed Oct 24 20:38:01 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;:)&amp;nbsp; Thanks.&amp;nbsp; I got the map as a gift a long time ago.&amp;nbsp; Maybe she was trying to tell me something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I bumped the timer up to 10us and it works!&amp;nbsp; It's still a little slow.&amp;nbsp; Something weird I'm seeing with writing to the OLED is a pause between sending each byte over the SPI interface.&amp;nbsp; It sends 8 bits then waits then sends another 8 bits at a frequency of 10us.&amp;nbsp; I'm not sure what that pause is.&amp;nbsp; I don't think it's related to the 10us timer because it still looks the same when I change the timer or even disable it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547539#M10165</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Request for help with embedded software design</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547540#M10166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by graynomad on Wed Oct 24 21:28:47 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you using SPI when the bits are different lengths?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now as I typed that I had an idea...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For each byte set the SPI frame size to N bits where &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;N = N_1_BITS + (N_0_BITS * 2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Come up with a quick way to convert a byte to a uint16 with the 0 bits double width, ie occupying two bits each.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spit the N-bit value out the SPI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you convert an array of bytes to an array of ints using the doubling algorithm there's almost no processor involvement to transmit them and no timers required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the lights can tolerate some idle time between transmissions you don't even have to adjust the frame size.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just thinkin' out loud here :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547540#M10166</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Request for help with embedded software design</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547541#M10167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by IntStarFoo on Thu Oct 25 08:40:49 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;How are you using SPI when the bits are different lengths?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I used the wrong terms.&amp;nbsp; There are several things happening.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; Send Light Signal. Sent out when necessary (every 2 hours or whenever a user adjusts the clock) - This signal is sent out using TIMER0 configured with 10us interrupts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; Poll for 1 second RTC Interrupt in main loop and redraw the time/date using Write to OLED function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; Write to OLED.&amp;nbsp; This happens every second via some library code that appears to use the SPI bus.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use a library in LIB_MCU oled.h/oled.c for drawing on the OLED.&amp;nbsp; Those functions use lpc17xx_ssp.h/lpc17xx_ssp.c that communicate with the actual hardware. When I send data to the OLED and watch [I]it[/I] with my scope, I see this...&amp;nbsp; The gaps between bytes don't make sense.&amp;nbsp; I was under the impression this should be a solid stream of data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[IMG]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FgB2Mu.png%5B%2FIMG%5D" rel="nofollow" target="_blank"&gt;http://i.imgur.com/gB2Mu.png[/IMG]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The signal I send to the lights (using TIMER0 set to 10us and interrupts) looks like this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[IMG]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fi.imgur.com%2FxSOlq.png%5B%2FIMG%5D" rel="nofollow" target="_blank"&gt;http://i.imgur.com/xSOlq.png[/IMG]&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547541#M10167</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Request for help with embedded software design</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547542#M10168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by graynomad on Thu Oct 25 09:02:08 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt; I was under the impression this should be a solid stream of data.&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Normally SPI is a continuous bit stream, there's something going on there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd have a look into oled.c, I've not used OLEDs but maybe they need delays like LCDs do because they are slow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547542#M10168</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Request for help with embedded software design</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547543#M10169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by graynomad on Thu Oct 25 09:11:24 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;maybe they need delays like LCDs do because they are slow. &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nope, I only have the LPC1227 version of the base board code but there are no obvious delays in the oled.c there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:25:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Request-for-help-with-embedded-software-design/m-p/547543#M10169</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:25:21Z</dc:date>
    </item>
  </channel>
</rss>

