Hardware defect on NHD-2.8C-CSXP-BREAKOUT — (maybe DCX and SCL internally shorted)

Comments

5 comments

  • Thomas Brezinski

    I have been trying to two days get the resistive touch version to work in 4-wire SPI.  It looks like my board has the same short as yours.

    Details:

    • Part number: NHD-2.8R-CSXP-BREAKOUT
    • Interface configured: 4-wire SPI (R2, R3, R5 closed; R1, R4, R6 open)
    • Tested with: ESP32-C6-DevKitC-1
    • Zephyr RTOS (latest) with ST7789V display driver
    0
  • Thomas Brezinski

    hieu trong found something.  Look at the datasheet for the display.  Pin 11 is DCX and described as:

    Parallel Interface:
    Data / Command selection: ‘1’ = Data ; ‘0’ = Command
    Serial Interface:
    Serial Clock Signal

    So they are supposed to be the same pin it appears.  Looking at the datasheet for the ST7789 it looks like the WRX pin is the DCX for 4-pin SPI.  So one pin over on the breakout.  Finally got it working!

    Here is my current device tree overlay:

    mipi_dbi {
    compatible = "zephyr,mipi-dbi-spi";
    spi-dev = <&spi2>;
    reset-gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
    dc-gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
    #address-cells = <1>;
    #size-cells = <0>;

    st7789v_240x320: st7789v@0 {
    compatible = "sitronix,st7789v";
    mipi-max-frequency = <20000000>;
    reg = <0>;
    width = <240>;
    height = <320>;
    x-offset = <0>;
    y-offset = <0>;
    mdac = <0x80>;
    colmod = <0x55>;
    porch-param = [0c 0c 00 33 33];
    gctrl = <0x35>;
    vcom = <0x2b>;
    lcm = <0x2c>;
    vrhs = <0x11>;
    vdvs = <0x20>;
    gamma = <0x01>;
    pwctrl1-param = [a4 a1];
    pvgam-param = [d0 00 05 0e 15 0d 37 43 47 09 15 12 16 19];
    nvgam-param = [d0 00 05 0d 0c 06 2d 44 40 0e 1c 18 16 19];
    cmd2en-param = [5a 69 02 01];
    ram-param = [00 f0];
    rgb-param = [cd 08 14];
    mipi-mode = "MIPI_DBI_MODE_SPI_4WIRE";
    };
    };
    0
  • Thomas Brezinski

    Engineering Support it looks like this is correctly documented for the NHD-2.8-240320AF-CSXP-F but the -FT and -FCTP documentation need updating.  None of the NHD-2.8-CSXP-BREAKOUT variants seem to document this pin correctly either.

    0
  • Engineering Support
    Community moderator

    Hi,

    The SCL and DCX pins on the breakout board are tied together because they serve different functions depending on the interface being used. In the parallel interface, the pin functions as the Data/Command signal, while in the serial interface, it functions as the serial clock signal.

    Thank you for pointing out the confusion in the specification pinout. We will review and update the documentation and upload the revised version as soon as possible.

    0
  • hieu trong

    Wow, many thanks Thomas Brezinski, works instantly when switching to WRX pin.

    That definitely the document confusion here, I was scratching my head for the last weekend.

    Cheers!  

    0

Please sign in to leave a comment.