Announcement

Collapse
No announcement yet.

Basic Code for 4DLCD-32QA does not work?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Basic Code for 4DLCD-32QA does not work?

    Hello,

    I have been trying to get the 4DLCD-32QA display working for a long time now. Unfortunately this does not work for me. As controller I use a STM32F103RBT6 and want to control the display with 8Bit parallel interface. I connected the display as follows:
    1 -> GND (GND)
    2 -> GND (GND)
    3 -> VCC (+3.3V)
    4 -> x
    5 -> x
    6 -> x
    7 -> RESET (PA0)
    8 -> RS (PA2)
    9 -> CS (PA1)
    10 -> RD (PA4)
    11 -> WR (PA3)
    12 -> VCC (+3.3V)
    13 -> x
    14 -> GND (GND)
    15 -> DB15 (PA5)
    16 -> DB14 (PB6)
    17 -> DB13 (PB5)
    18 -> DB12 (PB4)
    19 -> DB11 (PB3)
    20 -> DB10 (PA15)
    21 -> DB9 (PB1)
    22 -> DB8 (PB0)
    23 -> x
    24 -> x
    25 -> x
    26 -> x
    27 -> x
    28 -> x
    29 -> x
    30 -> x
    31 -> x
    32 -> x
    33 -> LEDA (+3.3V)
    34 -> LEDK1 (GND)
    35 -> LEDK2 (GND)
    36 -> LEDK3 (GND)
    37 -> LEDK4 (GND)
    38 -> LEDK5 (GND)
    39 -> LEDK6 (GND)
    40 -> GND (GND)

    As firmware I use the following example:
    https://www.youtube.com/watch?v=UTeNyY_g5i0&t=195s

    An example is also in the attachment

    Does anyone have a better example? Or does anyone know what I did wrong? Isn't this the same as all other ILI9341 drivers ?
    Attached Files

  • #2
    Hi,

    Welcome to the forum.

    You seem to have everything connected correctly and the 8 bit selection is also correct. This may be more of a code issue, You could try to read what readID(); is returning and also try setting the ID directly to 0x9341. Then perhaps look at the ST code more closely (I didn't come across where it decides 8 / 16 bits and/or how it initializes the interface for that).

    You may also like to look at this forum post where it clarifies connections and 8 bit selection.

    https://forum.4dsystems.com.au/node/51687

    Best regards

    Paul

    Comment

    Working...
    X