Dear Sir,
I want interface 16*2 lcd with nordic nrf52832.
Please provide me details and example code.
Thanks
Shivali
Dear Sir,
I want interface 16*2 lcd with nordic nrf52832.
Please provide me details and example code.
Thanks
Shivali
Hi Shivali,
Unfortunately I cannot recommend you any LCD displays.
Hopefully someone from the community can help you out.
I see that someone has made a similar thread, which can be of help.
Hi sir i m trying to interface 16*2 lcd,
I have write the code but i got issues in how can define ra en and data pin ,
please check my below code.
#define rs P0_13 //P1.08
#define en P0_7 //P1.07
#define lcdport (P0_8, P0_7, P0_6, P0_5)
void delay(int itime)
{
int i,j;
for(i=0;i<=itime;i++)
for(j=0;j<=1275;j++);
}
void daten(void)
{
rs=1;
en=1;
delay(10);
en=0;
}
void lcddata(unsigned char ch)
{
lcdport=ch & 0xf0;
daten();
lcdport=ch<<4 & 0xf0;
daten();
}
void cmden(void)
{
rs=0;
en=1;
delay(10);
en=0;
}
void lcdcmd(unsigned char ch)
{
lcdport=ch & 0xf0;
cmden();
lcdport=ch<<4 & 0xf0;
cmden();
}
void lcdstring(char *str)
{
while(*str)
{
lcddata(*str);
str++;
}
}
void lcd_init(void)
{
lcdcmd(0x02);
lcdcmd(0x28);
lcdcmd(0x0e);
lcdcmd(0x01);
}
//-------------------------------------
Please let me how i can define rs en and data pin pls.
Thanks & Regards
Shivali Singh
How to properly post source code:
How to properly post source code: