Power supply for NHD-0216MW-SB3
Hi everyone,
I'm trying to display the NHD-0216MW-SB3 with C2000 F280049C microcontroller from Ti. As the datasheet of the display, I need to short SJ1 to supply 5V, But after I shorted the SJ1 and plugged 5V supply in pin 1 and 3 there is nothing happen with the display. The below picture is the connection between display and microcontroller.
Thank you, regards!
0
-
Hi,
Please check your initialization code for the NHD-0216MW-SB3. Here is a reference:void init()
{
RES = 1; //reset HIGH – inactive
delayms(1); //delay
command(0x2A); //function set (extended command set)
command(0x71); //function selection A
data(0x00); // disable internal VDD regulator (2.8V I/O). data(0x5C) = enable regulator (5V I/O)
command(0x28); //function set (fundamental command set)
command(0x08); //display off, cursor off, blink off
command(0x2A); //function set (extended command set)
command(0x79); //OLED command set enabled
command(0xD5); //set display clock divide ratio/oscillator frequency
command(0x70); //set display clock divide ratio/oscillator frequency
command(0x78); //OLED command set disabled
command(0x08); //extended function set (2-lines)
command(0x06); //COM SEG direction
command(0x72); //function selection B
data(0x00); //ROM CGRAM selection
command(0x2A); //function set (extended command set)
command(0x79); //OLED command set enabled
command(0xDA); //set SEG pins hardware configuration
command(0x00); //set SEG pins hardware configuration
command(0xDC); //function selection C
command(0x00); //function selection C
command(0x81); //set contrast control
command(0x7F); //set contrast control
command(0xD9); //set phase length
command(0xF1); //set phase length
command(0xDB); //set VCOMH deselect level
command(0x40); //set VCOMH deselect level
command(0x78); //OLED command set disabled
command(0x28); //function set (fundamental command set)
command(0x01); //clear display
command(0x80); //set DDRAM address to 0x00
command(0x0C); //display ON
delayms(100); //delay
}Please also refer to the example code on our Github: https://github.com/NewhavenDisplay/NHD_US2066
Regards,0
Please sign in to leave a comment.
Comments
1 comment