<?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>Need help using tm1637 on nRF528232 (SDK V15.2.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40694/need-help-using-tm1637-on-nrf528232-sdk-v15-2-0</link><description>Hi. I want to output numbers to tm1637 display with nrf52832. The existing library is dedicated to Arudino, so we will contact you to change it for nRF52. (Existing library: github.com/.../DigitalTube) Most of the code above uses pinMode, digitalWrite</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Nov 2018 13:23:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40694/need-help-using-tm1637-on-nrf528232-sdk-v15-2-0" /><item><title>RE: Need help using tm1637 on nRF528232 (SDK V15.2.0)</title><link>https://devzone.nordicsemi.com/thread/158186?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 13:23:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:599f4ede-7b1c-4925-81d2-637fb80e2f10</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Everything is relative I guess. I did a quick test with &lt;a href="https://devzone.nordicsemi.com/members/getitem"&gt;getItem&lt;/a&gt;&amp;#39;s code and the Arduino library. With no extra limitations to the frequency (other than the slow nature of the bit banging itself) the clock frequency is 263 kHz:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-b19d8736d1834b679223951b3ee80819/pastedimage1542719972179v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Slow, but not slow enough. The nRF52 is a little too fast.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Test code:&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
#include &amp;lt;stdbool.h&amp;gt;
#include &amp;lt;stdint.h&amp;gt;

#include &amp;quot;nrf.h&amp;quot;
#include &amp;quot;nordic_common.h&amp;quot;
#include &amp;quot;boards.h&amp;quot;

#define Clkpin 22
#define Datapin 23

#ifndef INPUT
#define INPUT 0x00
#endif

#ifndef OUTPUT
#define OUTPUT 0x01
#endif

#ifndef INPUT_PULLUP
#define INPUT_PULLUP 0x02
#endif

#ifndef HIGH
#define HIGH 0x01
#endif

#ifndef LOW
#define LOW 0x00
#endif

void pinMode (uint32_t pin, uint8_t mode)
{
  if (mode == OUTPUT)
  {
    nrf_gpio_cfg_output (pin);
  }

  else if (mode == INPUT)
  {
    nrf_gpio_cfg_input (pin, GPIO_PIN_CNF_PULL_Pulldown);
  }

  else if (mode == INPUT_PULLUP)
  {
    nrf_gpio_cfg_input (pin, GPIO_PIN_CNF_PULL_Pullup);
  }
}

void digitalWrite (uint32_t pin, uint32_t value)
{
  nrf_gpio_pin_write (pin, value);
}

uint32_t digitalRead (uint32_t pin)
{
  return nrf_gpio_pin_read (pin);
}

void writeByte(int8_t wr_data)
{
  uint8_t i,count1;   
  for(i=0;i&amp;lt;8;i++)        //sent 8bit data
  {
    digitalWrite(Clkpin,LOW);      
    if(wr_data &amp;amp; 0x01)digitalWrite(Datapin,HIGH);//LSB first
    else digitalWrite(Datapin,LOW);
    wr_data &amp;gt;&amp;gt;= 1;      
    digitalWrite(Clkpin,HIGH);
      
  }  
}

/**
 * @brief Function for application main entry.
 */
int main(void)
{
    pinMode(Clkpin,OUTPUT);
    pinMode(Datapin,OUTPUT);
    writeByte(0xAA);
    while (true)
    {
        // Do nothing.
    }
}
/** @} */
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help using tm1637 on nRF528232 (SDK V15.2.0)</title><link>https://devzone.nordicsemi.com/thread/158176?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 12:57:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18cd707b-39cc-4f14-8506-61414a367c42</guid><dc:creator>awneil</dc:creator><description>[quote userid="3500" url="~/f/nordic-q-a/40694/need-help-using-tm1637-on-nrf528232-sdk-v15-2-0/158171"]I don&amp;#39;t see anything in the Arduino library that limits the frequency[/quote][quote userid="75287" url="~/f/nordic-q-a/40694/need-help-using-tm1637-on-nrf528232-sdk-v15-2-0"]the code uses pinMode, digitalWrite, and digitalRead[/quote]
&lt;p&gt;I think that would &lt;em&gt;severely&lt;/em&gt; limit the speed (ie, frequency) ... ?!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help using tm1637 on nRF528232 (SDK V15.2.0)</title><link>https://devzone.nordicsemi.com/thread/158171?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 12:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fad59fea-ffe8-434f-9ab6-808460dbefeb</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;I don&amp;#39;t see anything obviously wrong in your code. It could be a timing issue though. &lt;a href="https://www.mcielectronics.cl/website_MCI/static/documents/Datasheet_TM1637.pdf"&gt;This datasheet&lt;/a&gt;&amp;nbsp;states that:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-b19d8736d1834b679223951b3ee80819/pastedimage1542718076642v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And I don&amp;#39;t see anything in the Arduino library that limits the frequency. You should probably do as &lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt;&amp;nbsp;suggests, and verify that your nRF52 outputs correct signals.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help using tm1637 on nRF528232 (SDK V15.2.0)</title><link>https://devzone.nordicsemi.com/thread/158145?ContentTypeID=1</link><pubDate>Tue, 20 Nov 2018 11:08:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92a6c69b-9430-4ded-ba42-52d84494efde</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Have you checked the specifications of that display, and verified that your code is generating the correct signals as required?&lt;/p&gt;
&lt;p&gt;How to properly post source code:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3531._5F00_Insert-Code-_2D00_-Nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>