<?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>lcd interface</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36662/lcd-interface</link><description>Dear Sir, 
 I want interface 16*2 lcd with nordic nrf52832. 
 Please provide me details and example code. 
 
 Thanks 
 Shivali</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Jul 2019 15:24:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36662/lcd-interface" /><item><title>RE: lcd interface</title><link>https://devzone.nordicsemi.com/thread/195743?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 15:24:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47ca0d8e-29cd-4dfa-ba95-eb60d9cf2b9e</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Whilst I understand what Martin has said about making a new thread, I will say this.&lt;br /&gt;I intergrated a 16*2 LCD into a raspberry pi so I know a bit about LCDs. Pin RS is just a pin for setting whether the LCD is in command mode or character mode. i.e. whether the incoming data is for the LCD itself or information to be sent to the screen. This pin doesn&amp;#39;t require EN to be driven HIGH and then LOW again as it doesn&amp;#39;t get polled like the data pins.&lt;/p&gt;
&lt;p&gt;The EN pin is a stimulation pin that will tell the LCD when to read the data pins. When it goes HIGH, the LCD will poll the data pins, it must then be sent to LOW again before changing the data pins.&lt;/p&gt;
&lt;p&gt;As you are using the LCD in 4 data pin mode, you need to send the full byte in 2 nibbles, sending the first nibble, stimulating the EN pin, then the second nibble and stimulating the EN pin again.&lt;/p&gt;
&lt;p&gt;Your LCD is probably a little different but the basic functions should be the same.&lt;/p&gt;
&lt;p&gt;Happy LCD&amp;#39;ing, I had great fun designing an nRF52 programmer with an LCD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lcd interface</title><link>https://devzone.nordicsemi.com/thread/195739?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 15:13:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ac245ce-fb17-4ed8-b89f-184d43d2fce9</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hello Shivali,&lt;br /&gt;&lt;br /&gt;This thread has been inactive for almost a year.&lt;br /&gt;Please make a new thread with your question.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lcd interface</title><link>https://devzone.nordicsemi.com/thread/195517?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 07:43:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f47ad226-91bd-4d04-8cc0-bc877ed6a654</guid><dc:creator>awneil</dc:creator><description>&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/3343._5F00_Insert-Code-_2D00_-Nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lcd interface</title><link>https://devzone.nordicsemi.com/thread/195503?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 06:22:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04e1aa6a-491a-4cee-82bc-978f0c28483e</guid><dc:creator>shivali singh</dc:creator><description>&lt;p&gt;Hi sir i m trying to interface 16*2 lcd,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have write the code but i got issues in how can define ra en and data pin ,&lt;/p&gt;
&lt;p&gt;please check my below code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#define rs P0_13 //P1.08&lt;br /&gt;#define en P0_7 //P1.07&lt;br /&gt;#define lcdport (P0_8, P0_7, P0_6, P0_5)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;void delay(int itime) &lt;br /&gt;{&lt;br /&gt; int i,j;&lt;br /&gt; &lt;br /&gt; for(i=0;i&amp;lt;=itime;i++)&lt;br /&gt; for(j=0;j&amp;lt;=1275;j++); &lt;br /&gt; &lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;void daten(void)&lt;br /&gt;{&lt;br /&gt; rs=1;&lt;br /&gt; en=1;&lt;br /&gt; delay(10); &lt;br /&gt; en=0;&lt;br /&gt;}&lt;br /&gt;void lcddata(unsigned char ch)&lt;br /&gt;{&lt;br /&gt; lcdport=ch &amp;amp; 0xf0;&lt;br /&gt; &lt;br /&gt; daten();&lt;br /&gt; lcdport=ch&amp;lt;&amp;lt;4 &amp;amp; 0xf0;&lt;br /&gt; daten();&lt;br /&gt;}&lt;br /&gt;void cmden(void)&lt;br /&gt;{ &lt;br /&gt; rs=0;&lt;br /&gt; en=1;&lt;br /&gt; delay(10);&lt;br /&gt; en=0;&lt;br /&gt;}&lt;br /&gt;void lcdcmd(unsigned char ch)&lt;br /&gt;{&lt;br /&gt; lcdport=ch &amp;amp; 0xf0;&lt;br /&gt; &lt;br /&gt; cmden();&lt;br /&gt; lcdport=ch&amp;lt;&amp;lt;4 &amp;amp; 0xf0;&lt;br /&gt; cmden();&lt;br /&gt;}&lt;br /&gt;void lcdstring(char *str)&lt;br /&gt;{&lt;br /&gt;while(*str)&lt;br /&gt;{&lt;br /&gt; lcddata(*str);&lt;br /&gt; str++;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;void lcd_init(void)&lt;br /&gt;{&lt;br /&gt; lcdcmd(0x02);&lt;br /&gt; lcdcmd(0x28);&lt;br /&gt; lcdcmd(0x0e);&lt;br /&gt; lcdcmd(0x01);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;//-------------------------------------&lt;/p&gt;
&lt;p&gt;Please let me how i can define rs en and data pin pls.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Shivali Singh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lcd interface</title><link>https://devzone.nordicsemi.com/thread/140941?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 08:50:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c40cc7df-f90c-4aa0-9ebb-57ab2e4ed546</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Shivali,&lt;/p&gt;
&lt;p&gt;Unfortunately I cannot recommend you any LCD displays.&lt;/p&gt;
&lt;p&gt;Hopefully someone from the community can help you out.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see that someone has made a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/23401/nrf52832-connect-with-lcd-16x2" target="_blank" rel="noopener noreferrer"&gt;similar thread&lt;/a&gt;, which can be of help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>