Author Topic: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply  (Read 6182 times)

blaubaer

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • DIY ChessComputer Mysticum
NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« on: March 01, 2015, 07:07:12 AM »
Hi,

for 8-bit parallel 6800 interface mode the NHD-0420CW-AG3 display spec shows for pin BS0 = 0, BS1=0 and BS2=1 - can I connect BS0 and BS1 to ground and BS2 to +5V to switch the display into the 8-bit parallel 6800 interface mode? Do I need pull up/pull down resistors - with which value?

For +5V power supply I've to connect +5V to pin 3 and let pin2 without connection, right?

Thanks and regards,
Michael

Retheesh_M

  • Guest
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #1 on: March 02, 2015, 07:57:17 AM »
You are correct.  To enable the 8-bit parallel 6800 interface you would connect BS0 and BS1 to ground and connect BS2 to +5V.  You don't need a resistor on BS2.

You are also correct that pin 2 should not be connected if you are going to use a 5V power source to power the display.  Only pin 3 needs to be connected to +5V.


blaubaer

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • DIY ChessComputer Mysticum
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #2 on: March 04, 2015, 09:16:23 AM »
Dear Reteesh,

thanks for the quick response!

The NHD-0420CW-AG3 display is still not working. Let me shortly point out what I did so far:

I've the NHD-0420DZW-AY5 display in use in my application and it's working fine. Now I saw the NHD-0420CW-AG3 within your OLED display product range and would like to take this display, because the pcb and the display itself is smaller and fits mechanically better into my application.

The NHD-0420DZW-AY3 spec says, that the display is by default in 6800-MPU parallel interface mode, so I set the NHD-0420CW-AG3 with connections pin BS0 and BS1 to ground and pin BS2 to +5V into the same interface mode, connected pin 3 to +5V, did not connect pin2, connected RS to D/C (pin4), R/W, E, the data connections and ground to pin 1 and 20.

What did I wrong? Do you have an idea?

Thanks and regards,
Michael




Retheesh_M

  • Guest
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #3 on: March 04, 2015, 10:06:19 AM »
On the new display (NHD-0420CW-AG3) there are two additional pins:

Pin 15 = CS (Chip Select) Active LOW
Pin 16 = RES (Reset Signal) Active LOW

Have you set these pins?  If not then set CS to LOW and RES to HIGH. 

blaubaer

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • DIY ChessComputer Mysticum
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #4 on: March 04, 2015, 10:12:17 AM »
Hi Retheesh,
On the new display (NHD-0420CW-AG3) there are two additional pins:

Pin 15 = CS (Chip Select) Active LOW
Pin 16 = RES (Reset Signal) Active LOW

Have you set these pins?  If not then set CS to LOW and RES to HIGH.
no, but I'll do that immediately!  ???

Thanks so far,
Michael
« Last Edit: March 04, 2015, 10:14:18 AM by blaubaer »

blaubaer

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • DIY ChessComputer Mysticum
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #5 on: March 04, 2015, 10:31:56 AM »
Hi Retheesh,

now basically it works, but characters are mirrored - I will recheck the solder joints....

Regards,
Michael

Retheesh_M

  • Guest
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #6 on: March 04, 2015, 10:55:40 AM »
Glad to hear you got it working.  When you say mirrored, are you talking about the text printing in the opposite direction (right to left) or that the characters are actually backwards?

blaubaer

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • DIY ChessComputer Mysticum
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #7 on: March 04, 2015, 12:20:09 PM »
The text is printed from right to left and in a mirror I can read it...

Retheesh_M

  • Guest
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #8 on: March 04, 2015, 12:43:55 PM »
Can you post your initialization function?

blaubaer

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • DIY ChessComputer Mysticum
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #9 on: March 04, 2015, 12:52:27 PM »
This may take a while - I didn't code it!

I'll come back to you when I got it!

Regards, Michael

Retheesh_M

  • Guest
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #10 on: March 04, 2015, 02:35:27 PM »
This could be why you're having problems with this board.  Some of our OLED displays require a specific initialization sequence in order to function properly.  For this display, the specification sheet has an Arduino coded initialization function at the end of the PDF, or page 22.  It should help you out on how to create an initialization function.

Edit: Above code is not Arduino code, it is for another development board.  It is there to give you an idea on how the display should be initialized.  I apologize for the confusion.
« Last Edit: March 05, 2015, 11:00:23 AM by Retheesh_M »

blaubaer

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
    • DIY ChessComputer Mysticum
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #11 on: March 05, 2015, 09:56:45 AM »
Dear Retheesh,

thanks for your immediate help - really fast response!! Nice support forum here!

I'll check and change the initialization sequence and report the result here later.

Regards,
Michael

Retheesh_M

  • Guest
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #12 on: March 05, 2015, 11:04:02 AM »
No problem :D  I also edited my previous post because I said the end of the specification sheet has Arduino code when it is not.  They look pretty similar and that code can be easily changed to fit an Arduino if that is what you are using as an MCU.  Otherwise use it as a guide to help you code an initialization function to fit your MCU.  I apologize for the confusion.

markdpend

  • Jr. Member
  • **
  • Posts: 12
  • Karma: 1
    • View Profile
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #13 on: April 19, 2015, 12:30:27 AM »
Hi, What happens if one does connect pin-2 to VDD?

oldmaker

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: NHD-0420CW-AG3 MPU Interface Pin Selection and Power Supply
« Reply #14 on: April 20, 2015, 03:51:06 PM »
Hi, markdpend.
It's OK: Newhaven updated the datasheet.
This is the correct configuration:

- 5V operation:
OLED pin 1  ->  VSS   Ground
OLED pin 2  ->  VDD   +5V
OLED pin 3  ->  REGVDD   +5V

- 2.8V operation:
OLED pin 1  ->  VSS   Ground
OLED pin 2  ->  VDD   +2.8V
OLED pin 3  ->  REGVDD   0V


 

NHD‐0420CW‐AG3 Contrast question

Started by RichardRBoard OLEDs

Replies: 2
Views: 2174
Last post January 16, 2016, 09:52:02 AM
by RichardR
NHD‐0420CW‐AG3: blinking part of text?

Started by RichardRBoard OLEDs

Replies: 2
Views: 2329
Last post February 28, 2017, 03:27:02 PM
by BobG
NHD‐0420CW‐AG3 + I2C + PIC assembly code: trouble getting started

Started by RichardRBoard OLEDs

Replies: 4
Views: 3183
Last post December 17, 2015, 03:12:49 AM
by RichardR
MOVED: NHD-0420CW-AY3 display, text is mirror image

Started by Saurabh_BBoard Character LCDs

Replies: 0
Views: 2084
Last post March 11, 2016, 07:51:03 AM
by Saurabh_B
0420CW-AB3 I2C Talking, Display is off and low current drawn

Started by AreswayBoard OLEDs

Replies: 3
Views: 2798
Last post February 10, 2015, 07:39:49 AM
by Paul_B