<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Interfacing STP16CPC26 Led Display Driver to NRF52832 via SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18057/interfacing-stp16cpc26-led-display-driver-to-nrf52832-via-spi</link><description>Hello,
I am trying to interface the STPC16CPC26 with the NRF52832. As per the datasheet of the display driver, we have to toggle two IO pins from the NRF which shall be connected to the Latch Enable(LE) and Output Enable(OEn) for the data that is sent</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Dec 2016 12:22:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18057/interfacing-stp16cpc26-led-display-driver-to-nrf52832-via-spi" /><item><title>RE: Interfacing STP16CPC26 Led Display Driver to NRF52832 via SPI</title><link>https://devzone.nordicsemi.com/thread/69633?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2016 12:22:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8c2467d-689b-43fe-8a81-9fa80f714904</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The clock is controlled by the SPI driver, so you will have to edit this, or use the SPI interface directly if you want to run the clock outside the SPI transfer. In the datasheet it is specified: &lt;em&gt;Every rising edge of the CLK signal, a new data on SDI pin is sampled. This data is loaded into the shift register, whereas a bit is shifted out from SDO.&lt;/em&gt; If you run the CLK signal longer, you will clock out the data loaded into the shift register on the SPI transfer, so I don&amp;#39;t think this is a good idea until you have enabled the LE, if you want to avoid data loss. Can you get confirmation from STMicro that you need the clock to be running when setting the LE signal, and that you have to set the LE signal exactly at the 16th rising clock?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing STP16CPC26 Led Display Driver to NRF52832 via SPI</title><link>https://devzone.nordicsemi.com/thread/69632?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2016 15:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea5f5b70-f8a0-4d27-9ac7-003a1f4ffe08</guid><dc:creator>Shalin</dc:creator><description>&lt;p&gt;Hello Jorgen,
Thanks for your prompt reply.
I had already tried that approach, I am attaching an image from my scope.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/20161130_5F00_102845.jpg"&gt;20161130_102845.jpg&lt;/a&gt;
The Pink line is the data, the Yellow is the clock and the Blue line is the pulse I am sending on the LE line.
As seen in the attachment, there is no clock pulse available when I want to send the LE pulse.
Is there a way to do that.&lt;/p&gt;
&lt;p&gt;Thanks,
Shalin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interfacing STP16CPC26 Led Display Driver to NRF52832 via SPI</title><link>https://devzone.nordicsemi.com/thread/69631?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2016 12:36:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74a4c6eb-e4a2-4857-b822-4ccca74d7d0f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;From the datasheet it looks to me like the pulse on LE is not happening on the rising edge of the 16th clock cycle, but rather after the 16th rising edge of the clock. I think the point is that you should wait until the SPI transfer is complete before you send the latch pulse, to ensure that the correct data is present in the SPI shift register (you should get this confirmed by STMicro).&lt;/p&gt;
&lt;p&gt;If you are using the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/hardware_driver_spi_master.html?cp=4_0_0_2_14"&gt;SPI master driver&lt;/a&gt;, you will get a &lt;code&gt;NRF_DRV_SPI_EVENT_DONE&lt;/code&gt; event when the SPI transfer is done. You can set the LE pulse in the event handler to latch the data after completion of the SPI transfer.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>