Main Site Documentation

Need NETMFNew Haven Parallel Display Driver


#1

Does anyone have some code written for parallel interfacing with New Haven displays? I have one already for SPI but had to switch to a different model.


#2

Which display?

For modules such as the G400 and G120 and OSD3358 you don’t need any driver as such as they have direct RGB drive. With NETFM 4.3 on the G400 and G120 you can do graphics. With the OSD3358 you need and OS such as Linux.


#3

https://www.digikey.com/product-detail/en/newhaven-display-intl/NHD-0420DZ-FSW-FBW/NHD-0420DZ-FSW-FBW-ND/2607002


#4

I am using a G30 but am probably going to move up to a G80 because I need more memory.


#5

That’s a character display, so easy peasy to drive. There’s probably several codeshare entries for the HD44780 series of display that I’d bet this is compatible with. https://www.ghielectronics.com/community/codeshare/search?q=hd44780. I’d suggest you use 4-bit mode as that reduces your pin count and is no harder to do.


#6

Easy peasy. The datasheet even has code for you to set it up and drive it. As Brett says, use 4 bit.


#7

Thank you. How do I change gadgeteer code to regular GHI NETMF? This is the most updated driver here. I think it is for 4-bit parallel?


#8

In the code I just posted, can someone please tell me were the R/W pin is being assigned? I see every required connection except R/W


#9

If you check the Gadgeteer module schematic you’ll see that RW is just connected to GND so will never be used.


#10

So should I not use the R/W pin on my display? I have it all hooked up per the datasheet but am not sure what to do about the R/W Pin.

Also what display pin would correspond to “backlight” in the code?


#11

If you follow the datasheet, you’ll understand what you might or might not want to do with RW. Remember, I’m telling you about what the Gadgeteer code and module do. If you want RW, connect it, and figure out where to amend the code. Otherwise, the code as-is assumes RW is connected to GND as per schematic.

Backlight is on pin 8 on the Gadgeteer socket. In the code you pointed to, is:
backlight = GTI.DigitalOutputFactory.Create(socket, GT.Socket.Pin.Eight, true, null);
What more do you need there?


#12

I mean what pin is “Backlight,” supposed to correspond to on my display pins?


#13



#14

Those links aren’t working they take me to a blank page.


#15

hover over the link here. Then go Bing the query term yourself?


#16

it’s a doubly ampersand issue from Discourse (whatever the spelling is). Replace the &a_m_p; in the address bar with just a normal ampersand and you will see what I wanted you to see


#17

grrr I can’t get it.


#21

Here what I see in the link:

which I change to http://lmbtfy.com/?s=b&q=hd44780+pin

and then it takes me to a GHI forum


#22

Pins I have connected on the display that go to the uC: RS, E, DB4-DB7. Alll of those are defined in my code (and uC) and are on the display pin out, but in the codeshare snip their is an output titled “BackLight.” What pin on the display is this? The rest of the display schematic says the rest of the pins are for power and ground. Should the pin labeled LED+ (anode +5V) actually be connected to my contoller as the backlight pin??? SOOOOO CONFUSEDDDDD HELLLLLLPPPP


#23

Alright it all works now I just grounded R/W pin. I was scared to turn it on because just powering up my uC was reading 2 V on the power supply which is usually zero but I just turned it up to 5V anyways and used the trimmer to keep the backlight at 0.5 V and it works fine.