Author Topic: Nv3035 driver code  (Read 3265 times)

eb1984

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Nv3035 driver code
« on: April 11, 2016, 03:10:40 AM »
Hi
I am searching nv3035 driver code. It is integrated driver ic with NHD-3.5 320240MF ATX tft module. I want to drive it with stm32f4 parallel lcd port.

Paul_B

  • Administrator
  • Sr. Member
  • *****
  • Posts: 248
  • Karma: 16
    • View Profile
Re: Nv3035 driver code
« Reply #1 on: April 11, 2016, 08:10:34 AM »
Morning,

TFTs typically have a digital RGB interface (essentially digital VGA) and are simply LCD panels that require pixel data (RGB data bus) and timing/synchronization signals (HSYNC, VSYNC, pixel clock).
Using a TFT with a TFT controller, such as the SSD1963, allows for a standard MCU type interface (8/16 bit parallel data bus, control signals such as command/data selection, active LOW write, etc.)

The TFT controller outputs the necessary 24bits of RGB, and the timing signals for you.  Some development boards / microcontrollers have TFT drivers/controllers built-in, and would therefore not need an external TFT controller such as the SSD1963.

I recommend you reach out on STMicroelectronics forum / support page, I'm sure they will have some app notes available for the stm32f4.


eb1984

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Nv3035 driver code
« Reply #2 on: April 12, 2016, 03:07:49 AM »
Hi,
The NV3035C is a built in driver ic of TFT panel, it is not an external controller. For initialization of TFT i think (but not sure), i will need spi commands of TFT panel, so i need spi command lists and usages of them. There are command descriptions on NV3035 pdf but i am not sure how to use them, maybe there is another detailed command list or any c code for this.

Regards.
« Last Edit: April 12, 2016, 03:17:47 AM by eb1984 »

Paul_B

  • Administrator
  • Sr. Member
  • *****
  • Posts: 248
  • Karma: 16
    • View Profile
Re: Nv3035 driver code
« Reply #3 on: April 12, 2016, 08:28:38 AM »
Correct, the NV3035C is the displays built in driver. The SPI interface may be used to modify various registers, see page 19 in the drivers datasheet for the full "Register Table".

http://www.newhavendisplay.com/app_notes/NV3035C.pdf

Please note that no initialization via the SPI interface is required to get the display operational. By default the display is configured to achieve optimal settings.

The NV3035C datasheet will list in detail how to properly communicate and set various registers. Unfortunately we do not have any example code available, however it is just communicating via 3-wire SPI.






« Last Edit: April 12, 2016, 08:35:39 AM by Paul_B »

eb1984

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Nv3035 driver code
« Reply #4 on: April 13, 2016, 03:53:54 AM »
Ok, i have one more question. According to NV3035 datasheet there are timings about sync's for width and heigth. I need to configure the TFT for the parameters below but i can not convert to pixels and lines, how can i calculate them.

Horizontal sync. width : x pixels
Horizontal back porch : x pixels
Active width : 320 pixels
Horizontal Front porch : x pixels

Vertical sync. height : x lines
Vertical back porch : x lines
Active heigth : 240 lines
Vertical front porch x lines.

Paul_B

  • Administrator
  • Sr. Member
  • *****
  • Posts: 248
  • Karma: 16
    • View Profile
Re: Nv3035 driver code
« Reply #5 on: April 26, 2016, 10:46:08 AM »
Please review the timing below which has worked for me in the past  ;)

Code: [Select]
display-timings {
+ native-mode = <&timing0>;
+ /* Settings for NHD-3.5-320240MF-ATXL#-1: */
+ timing0: 320x240 {
+ clock-frequency = <8000000>;
+ hactive         = <320>;
+ vactive         = <240>;
+ hback-porch     = <22>;
+ hfront-porch    = <59>;
+ hsync-len       = <48>;
+ vback-porch     = <12>;
+ vfront-porch    = <23>;
+ vsync-len       = <2>;
+ };

The timing characteristics can also be viewed on page 6 in the displays datasheet.

http://www.newhavendisplay.com/specs/NHD-3.5-320240MF-ATXL-1.pdf

Hope this helps!


eb8481

  • Guest
Re: Nv3035 driver code
« Reply #6 on: July 11, 2016, 07:35:53 AM »
I am using the parameter values below picture and i am not sure these are the right values. ( I will configure LTDC parameters by using the mcu gui program). Can you check it for me ?


 

Sample Code Question for NHD‐C0220BiZ‐FS(RGB)‐FBW‐3VM LCD

Started by SteveCBoard Character LCDs

Replies: 2
Views: 3003
Last post July 31, 2014, 08:44:29 PM
by SteveC
NHD‐0420CW‐AG3 + I2C + PIC assembly code: trouble getting started

Started by RichardRBoard OLEDs

Replies: 4
Views: 3133
Last post December 17, 2015, 03:12:49 AM
by RichardR
Korean Hex GB code for OLED multi font display NHD-2.7-12864UMY3

Started by newhavenuserBoard OLEDs

Replies: 0
Views: 650
Last post May 05, 2017, 01:17:45 PM
by newhavenuser
Resistive/Capacitive Touch Screen - Sample Code

Started by daotaBoard TFTs

Replies: 1
Views: 1229
Last post July 14, 2016, 07:57:46 AM
by Saurabh_B
Use of Timing characteristics in the initialization code of the display

Started by ShabdaBoard TFTs

Replies: 1
Views: 2923
Last post May 20, 2014, 08:00:39 AM
by Michael_L