Newhaven Display Forum

Newhaven Products => Character LCDs => Topic started by: vernhardingham on December 22, 2015, 02:18:55 PM

Title: NHD-0420DZ-FL-YBW Cursor On-Off problem
Post by: vernhardingham on December 22, 2015, 02:18:55 PM
I am using a NHD-0420DZ-FL-YBW is 4 bit mode. When I try to turn the cursor off by issuing command 0b00001100 it clears the display and homes the cursor but leaves the cursor On and Blinking. How can I leave the display memory intact but turn the blinking and cursor Off?
Title: Re: NHD-0420DZ-FL-YBW Cursor On-Off problem
Post by: Saurabh_B on December 29, 2015, 10:45:32 AM
Is it possible to post a sample of your code that writes the functions?

It seems that the command its receiving is the clear display command.
Command 0x0C should not affect the memory or address at all.
Title: Re: NHD-0420DZ-FL-YBW Cursor On-Off problem
Post by: vernhardingham on January 07, 2016, 02:16:27 PM
Actually I have resolved this problem myself. I am using one port to output the 4 bit data and chip enable, when I set the data value I was inadvertently setting the chip enable low at the same time. Depending on timing conditions correct or unpredictable results occurred. I have modified my code to OR a 1 onto the chip enable line when I set the data so that it stays high until ready to clock the data in. No more unpredictable results.