Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Saurabh_B

Pages: [1] 2 3 ... 25
1
OLEDs / Re: NHD-2.23-12832UCB3-40956 display & SPI mode???
« on: February 08, 2018, 08:20:31 AM »
Hello,

This display uses 4-Wire SPI. There is more information about the SPI communication on page 12 of the display datasheet. (http://www.newhavendisplay.com/specs/NHD-2.23-12832UCW3.pdf)

The Clock is rising Edge and the polarity of the clock does not matter. So this can work in either mode 0 or mode 3

2
OLEDs / Re: INTIALISATION CODE FOR NHD-3.12-25664UCB2-ND
« on: February 01, 2018, 02:02:02 PM »
Semed,

Sorry i gave you the wrong github link, the one that i posted was for our Color OLEDs.
The one that this display along with our 2.8" and 2.7" OLED displays use is here: https://github.com/search?utf8=%E2%9C%93&q=SSD1322&type=

The font table should still work for a 5x8 character array, however you need to resize the window.

To write the character you would need to give the start x and y addresses. Which would be C & D in your previous post.


3
OLEDs / Re: INTIALISATION CODE FOR NHD-3.12-25664UCB2-ND
« on: January 31, 2018, 09:34:54 AM »
The full code was from an older example which had plans to be extended.
However we were never able to add the Font Table to the code.

Many of the links you have through github include font tables.
Because this is a graphics display the controller itself does not have built in fonts. These need to be provided.

4
OLEDs / Re: Antialiasing on NHD-2.23-12832UCW3
« on: January 30, 2018, 03:48:09 PM »
Unfortunately it is not.
These had to be photoshopped to make the anti-aliasing effect disappear.

5
OLEDs / Re: NHD-0216KZW-AG5 - serial interface - initialization
« on: January 30, 2018, 03:46:53 PM »
Hello,

You can find an example on how to use the Serial OLED below:
Code: [Select]
sbit SCL = P3^4;
sbit SDOUT = P1^0;
sbit SDIN = P1^1;
sbit C_S = P3^3;

void delay(unsigned int n) //Delay subroutine
{
unsigned int i,j;
for (i=0;i<n;i++)
  for (j=0;j<250;j++)
  {;}
}
 

void WriteCommand(unsigned char ins)
{
unsigned char i;
C_S=0;
SCL = 0;
SDOUT = 0; //RS = 0 (Command)
SCL = 1; //RS registered
SCL = 0;
SDOUT = 0; //RW = 0
SCL = 1; //RW registered
SCL = 0;

for (i=0x80;i;i>>=1)
{
if((ins&0x80)==0x80)
SDOUT = 1;
else
SDOUT = 0;
ins=(ins<<1);
SCL = 0;
SCL = 1;
SCL = 0;
}

    C_S=1;
}

void WriteDataInit()
{

C_S=0;
SCL = 0;
SDOUT = 1; //RS = 1 (Data)
SCL = 0; //RS registered
SCL = 1;
SCL = 0;
SDOUT = 0; //RW = 0
SCL = 1; //RS registered
SCL = 0;

}
void WriteData(unsigned char dat)
{
unsigned char i;
for (i=0x80;i;i>>=1)
{
if((dat&0x80)==0x80)
SDOUT = 1;
else
SDOUT = 0;
dat=(dat<<1);
SCL = 0;
SCL = 1;
SCL = 0;
}

}

void init()
{
WriteCommand(0x38);//function set
delay(30);
WriteCommand(0x06);//entry mode set
delay(30);
WriteCommand(0x02);//return home
delay(30);
WriteCommand(0x01);//clear display
delay(30);
WriteCommand(0x0c);//display on
delay(30);
WriteCommand(0x80);//line 1 character 1
delay(30);
}

void main()
{
char i=0x21, j;



init();

while(1)
{
C_S = 1;
WriteCommand(0x80); //Line 1

WriteDataInit();
//WriteDataInit() must only be executed once before starting to write data
//if WriteDataInit() is executed between writes, the display will recognize the two bits as data bits and not RS/RW bits. 
for(j=0; j<20; j++)
{
WriteData(i++);
delay(10);
}

C_S = 1;
//Pulling C_S High means write data is completed
//if next instruction to the display is data, must use WriteDataInit() first
//if write command is executed without pulling C_S high, it will recognize the following instruction on the bus as data regardless
WriteCommand(0xC0); //Line 2

WriteDataInit();
for(j=0; j<20; j++)
{
WriteData(i++);
delay(10);
}

C_S = 1;
WriteCommand(0x94); //Line 3

WriteDataInit();
for(j=0; j<20; j++)
{
WriteData(i++);
delay(10);
}


C_S = 1;
WriteCommand(0xD4); //Line 4

WriteDataInit();
for(j=0; j<20; j++)
{
WriteData(i++);
delay(10);
}

}
}

6
OLEDs / Re: INTIALIZATION CODE FOR NHD-3.12-25664UCB2-ND
« on: January 30, 2018, 03:43:02 PM »
Just using the initialization routine will not power the display.
Have you tried writing information to the display at all?

I would recommend using the following link for example code:
https://newhavendisplay.com/appnotes/excode/txt/OLED/OLED_25664.txt

There are also libraries available on github:
https://github.com/search?utf8=%E2%9C%93&q=SEPS525&type=

7
OLEDs / Re: NHD-0420DZW-AY5 to replace NHD-0420DZ-FSW-FBW
« on: January 17, 2018, 08:18:15 AM »
The display should be compatible for the most part, however a few minor adjustments for the firmware might be necessary.
The instruction execution time for the Oled is a fair amount slower so you might need to add a few delays or check for the busy flag before sending consecutive instructions.

The OLED does also require a larger current input through the +5V (VDD) Input as well, can you check to see if you are limited as to how much current you would be able to supply?

8
OLEDs / Re: NHD-0216MW-SB3 Font width question
« on: January 15, 2018, 02:22:49 PM »
What you're describing could be caused by how the segments are mapped.

Example Code:
https://newhavendisplay.com/appnotes/excode/txt/OLED/slim_OLED.txt

The initialization function, we have the command that sets the SEG Pins Hardware configuration in the middle.
Can you possibly try using 0x00 or 0x10 for the 2nd portion. This remaps the segments so that the full character appears on the same character area.

9
TFTs / Re: Display Font related issue
« on: December 27, 2017, 08:20:51 AM »
Hello Darshana,

Fonts and other graphics are controlled by the software and the controller that write to the display.
The onboard display controller will only show what is loaded onto the RAM.

Could you show me what you are displaying currently for the letters?

10
OLEDs / Re: NHD-0220DZW-AB5 help!!!
« on: December 27, 2017, 08:16:23 AM »
Hello,

There isn't a way to control the brightness for these displays. They are set depending on the voltage input.

Can you let me know the modifications you did to turn the display into serial, also would it be possible to provide a picture of the back of the display?

11
OLEDs / Re: Example MikroC code for NHD-0216AW-IB3 I2C
« on: December 19, 2017, 05:23:30 PM »
Hello Chris,

I'm sorry we do not have any example codes in MicroC or xc8.
Many of the i2c examples do use the Wire.h library, however we do have an example where we are bit banging the data to make it easier to follow.

Would you be able to email nhtech@newhavendisplay.com for this, we would be able to provide this to you.


12
TFTs / Re: Touchscreen Defect on NHD-7.0CTP-CAPE-N
« on: December 13, 2017, 04:34:07 PM »
Hello,

I'm sorry to hear you're having an issue with this.
Would it be possible to contact us via. Email @ nhtech@newhavendisplay.com

13
Character LCDs / Re: NHD-0216K1Z-NSW-BBW6L contrast problem
« on: December 12, 2017, 01:16:12 PM »
Can you give me more information about where the display is used?

I can see what you mean by the browning on the display, this leads me to believe that something is causing extreme heat build up on or near the display.
The low contrast stripes lead me to believe this might be a connection issue with the Zebra strips and the PCB.

Do you know if there is any dust entering the display or any liquids used near by? Another issue could be that the com/seg traces could be getting shorted and destroyed.

14
Character LCDs / Re: NHD-0216K1Z-NSW-BBW6L contrast problem
« on: December 12, 2017, 08:04:33 AM »
Would it be possible to send a picture of what you are seeing.

Also what temperature is the display used in, and what is the voltage on the display?

15
TFTs / Re: Help with NHD-5.0-800480TF-ATXL#-CTP
« on: December 05, 2017, 04:40:12 PM »
This would depend on how you are planing on communicating with the display.

Most CTPs have have built in Controllers have multiple drivers available; at times these are even provided by the manufacturer.
If you are going to be using an external controller, this can be quite a bit different. The external controller (SSD1963, EVE, ect...) should have some stock drivers that can be found online.

Pages: [1] 2 3 ... 25