480-503-4295

Working with the E70GE1-RW820-N Display (1/2)

This series of application notes will discuss the hardware and software requirements of driving the E70GE1-RW820-N TFT Display Module with an ST Nucleo-F767ZI microcontroller development board. The Nucleo-F767ZI has the required bandwidth and I/O pins but lacks enough internal SRAM for a full frame buffer. Part 1 (FAN4219) will walk through the hardware requirements and interfacing with the display. Part 2 (FAN4220) will work on developing the firmware.

1. Introduction

This application note will discuss how to connect the display module to a microcontroller. The E70GE1-RW820-N is supplied with the parallel RGB interface which poses a challenge to low pin count and low clock frequency microcontrollers (MCU). Below are the reasons for selecting the ST Nucleo-F767ZI MCU board.

The RGB interface has 30 signals, including ground (GND), that must be connected to the MCU of choice. Modern MCUs have several GND and power pins along with an external reset pin. In addition, some MCUs have programming pins that cannot be used for application circuitry. Therefore, a minimum of a 40-pin MCU is necessary.

The display runs on 3.3V logic levels. To make interfacing easier selecting an MCU that can run on 3.3V logic negates the need for logic-level translator circuitry. Most MCUs produced today can operate on 5V and 3.3V logic levels without issue. The STM32F7 series devices run natively on 3.3V.

In general, the controller chips that only have the RGB interface need an external frame buffer as they do not have internal graphics memory (GRAM). This memory can be located internally in an MCU with a large enough RAM. Another option is to select an MCU with an external RAM interface.

In either case, the MCU-controlled RAM will provide the frame buffer for the display. The Nucleo-F767ZI does not have enough internal SRAM for a full frame buffer. In this application note, the display is driven with a smaller frame buffer as driving the display with the RGB interface is the main goal.

Timing and bandwidth are other concerns when selecting an MCU. The dot clock (DCLK) frequency and timing of the display require the use of an MCU with a higher clock frequency. An MCU with a timer that can produce a 50% duty cycle, 33.3MHz clock signal is necessary for proper clocking of the DCLK pin. The general-purpose I/O pins (GPIO) also need to support toggling at this frequency without jitter (changes in timing) or distortion (non-square waveform). Timing and Bandwidth will be discussed further in Section 5.

 The main characteristics of the display are as follows:

  • 7.0” TFT, 154.08(H) x 85.92(V) mm Viewing Area
  • 800 x 480 Pixels
  • 16/18/24-bit RGB Interface for up to 16.7M Colors
  • EK9716 & EK73002 Display Controllers
  • White LED Backlight
  • Transmissive / Normally White
  • Typical Operating Voltage 3.3V
fig-1.png

Figure 1. E70GE1-RW820-N TFT Display

To connect the display to the Nucleo-F767ZI Development Board, it is necessary to use the KBB5040A Breakout Board. This board adapts from the flexible printed circuit (FPC) cable of the display to pin headers. Jumpers can then connect from the adapter to the MCU board.

fig-2.png

Figure 2. KBB5040 40-pin FPC Breakout Board

The MCU in this application is the ST Nucleo-F767ZI Development Board.

fig-3.png

Figure 3. Nucleo-F767ZI MCU Dev Board

2. Required Hardware

The hardware requirements are detailed below.

QtyDescriptionNotes
1E70GE1-RW820-N TFT DisplayFocusLCDs
1KBB5040A Breakout Board or other 40-pin 0.5mm Pitch FPC Adapter BoardFocusLCDs
1ST Nucleo-F767Zi MCU Board with Micro USB CableST
1Jumper Wires 
1Benchtop Variable Power Supply 

Table 1. Hardware 

The KBB5040A breakout board adapts the FPC cable from the display to the pin header for connecting to the Nucleo board.

The benchtop power supply is to provide power to the backlight. Another option is to design a constant current, boost mode switching power supply for driving the white LEDs. A pulse-width modulated (PWM) signal from the MCU to the backlight power supply, can be used to control the brightness of the display. Designing a switch-mode power supply is outside the scope of the application note.

3. Hardware Connections

The RGB interface has 29 signals along with several power and ground pins to be connected to the MCU. Connect the display FPC cable to the 40-pin FPC connector on the KBB5040A breakout board. Jumpers will be connected between the breakout board and the MCU board as listed in Section 4 Pin Assignments.

The color depth in bits-per-pixel (bpp) determines which color data signal pins to connect to the MCU. In 16 bpp mode (RGB 565 format) the MCU provides the red R[4:0], green G[5:0], and blue B[4:0] signals. The 18 bpp mode uses 6 bits of data and the 24 bpp mode use 8 bits of data for each color. Refer to Table 2. Pixel Data Format for the number of color data signals per bit depth.

image008.png

Table 2. Pixel Data Format 

*16-bit format is in RGB 565 color

The backlight will be driven separately from the benchtop power supply. Set the power supply’s output to 9.3V and limit the output current to 180mA. Add a 51 Ohm, 2-Watt resistor in series to limit the current flow if the power supply does not have this feature. Size the resistor up or down to adjust the brightness level. Even if the power supply can limit the current, a resistor in series is a good safety precaution.

4. PIN Assignments

The RGB interface has up to 24 data lines for color, 5 control lines, a 3.3V power, and 2 ground pins that need to be connected to the MCU. Though the DCLK line is running at 33.3Mhz, controlled impedance and trace length are not major concerns when laying out the production PCB. In this instance, using jumper wires to connect the display breakout board to the MCU will not cause any signal degradation if they are kept short.

The 24-color data lines should be connected to parallel GPIO pins preferably on one port or split between 2 ports. This will ease the MCU’s data transfer and allow for internal peripherals such as direct memory access (DMA) to handle data movement without CPU intervention. The only critical signal is the DCLK. This can be a divided-down clock output or a timer with a 50% duty cycle PWM running at 33.3 MHz.

The display breakout board pin connections are detailed in the table below.

Pin No.Pin NameDescriptionPin NameConnection
1LED KCathode Pin of BacklightKNeg of Power Supply
2LED AAnode Pin of BacklightAPos of Power Supply
3GNDPower GroundGNDGND on Nucleo board
4VDDPower Supply3V33V3 on Nucleo board
5R0Red Data SignalPG13CN11-68
6R1Red Data SignalPA2CN12-35
7R2Red Data SignalPA1CN11-30
8R3Red Data SignalPB0CN11-34
9R4Red Data SignalPA5CN12-11
10R5Red Data SignalPC0CN11-38
11R6Red Data SignalPB1CN12-24
12R7Red Data SignalPE15CN12-53
13G0Green Data SignalPE5CN11-50
14G1Green Data SignalPE6CN11-62
15G2Green Data SignalPA6CN12-13
16G3Green Data SignalPE11CN12-56
17G4Green Data SignalPB10CN12-25
18G5Green Data SignalPB11CN12-18
19G6Green Data SignalPC7CN12-19
20G7Green Data SignalPG8CN12-66
21B0Blue Data SignalPE4CN11-48
22B1Blue Data SignalPG12CN11-65
23B2Blue Data SignalPC9CN12-1
24B3Blue Data SignalPD10CN12-65
25B4Blue Data SignalPE12CN12-49
26B5Blue Data SignalPA3CN12-37
27B6Blue Data SignalPB8CN12-3
28B7Blue Data SignalPB9CN12-5
29GNDPower GroundGNDGND on Nucleo board
30DCLKDot Clock (Pixel Clock) signal for data latching and internal timingPE14CN12-51
31DISPDisplay Controller Standby Mode Selection
DISP = LOW Standby
DISP = HIGH Display On
PC10CN11-1
32HSYNCHorizontal Sync SignalPC6CN12-4
33VSYNCVerticle Sync SignalPA4CN11-32
34DEData Input EnablePF10CN12-42
35NC NC
36GNDPower GroundGNDGND on Nucleo board
37-40NC NC

Table 3. Pin Assignments

5. Timing and Bandwidth

5.1. Display Timing

When selecting the MCU to drive the display the DCLK period, horizontal resolution, vertical resolution, front porch, and back porch must be taken into consideration. The display has a typical DCLK frequency of 33.3 MHz. Using the formula image010.png(S), where T is time in seconds and f is the frequency in Hz, DCLK has a period of 30 nS.

This period will be needed when calculating the total frame time or the time to draw one frame. It is a critical measurement as the MCU writes to the frame buffer between frames. The DMA will transfer the contents of the frame buffer to the display during a frame write.

The total frame time is the combination of row (line) time × vertical resolution + vertical front and back porch. Figure 4 shows how the columns and rows relate to each other in a frame.

fig-4.png

Figure 4. Frame and Row layout

  • VSYNC PW is the starting pulse of a frame
  • VBP and VFP are the vertical back and front porch
  • HSYNC PW is the starting pulse for one line
  • HBP and HFP are the horizontal back and front porch
fig-5.jpg

Figure 5. Active Display Area

Reading through the datasheet Section 5.0 TFT AC Characteristics shows the HSYNC period time (Th) of 1056 DCLKs or 31.68 uS. This includes the HSYNC pulse (Thw) + horizontal pixel resolution (Thdisp) + horizontal back porch (Thbp) + horizontal front porch (Thfp). The Thw can be from 1 to 40 DCLKs and is adjusted to meet the minimum MCU setup time to prepare to transfer 1 line. Thbp does not have a set number of DCLKs as it is used to fill in the horizontal time to complete the typical horizontal period of 1056 DCLKs. Both Thbp and Thfp are adjusted to center the image horizontally within the active display area. These values should be set only be set up once and do not change while the display is running.

fig-6.png

Figure 6. Horizontal Timing Diagram

The VSYN period time (Tv) is typically 525 TH, while 1 Th is the HSYNC period (1056 DCLKs = 31.68 uS). The period time is calculated from VSYNC pulse (Tvw) + vertical display period (vertical resolution Tvdisp) + vertical back porch (Tvbp) + vertical front porch (Tvfp). Tvw can be adjusted between 1 and 20 TH to compensate for MCU timing. The Tvbp is modified to complete the timing for 1 frame. Both Tvbp and Tvfp will be used to center the image vertically within the active display area. Like the horizontal setting, these values do not change during operation and should be set once.

fig-7.png

Figure 7. Vertical Timing Diagram

The final timing can then be calculated as HSYNC period time × VSYNC period time × DCLK period. In this instance, it will be 1056 × 525 × 30 nS = 16.632 mS. This means the entire frame buffer will be written to the display in the 16.632 mS period. Inverting the time formula to frequency image020.png , frames will be written to the display at a rate of 60.125 Hz. The MCU is required to write a full frame of data to the buffer within the 16.632 mS otherwise portions of the previous and current frame will be displayed.

5.2. Bandwidth Requirements

The bandwidth requirements of the MCU are simple to calculate. The formula is the horizontal resolution × vertical resolution × color bit depth × frame rate = bit/second. The result of the E70GE1-RW820-N display is 554.112Mb/s (800 × 480 × 24 × 60.125). The single-color pin data rate is less as the color bit depth becomes one, equating to 23.088 Mb/s. As shown, the MCU bandwidth requirements can be high when using the RGB interface.

6. Summary

In this application note, the E70GE1-RW820-N TFT LCD was presented along with how to connect it to an ST Nucleo-F767ZI MCU. Selecting an appropriate MCU was discussed and what parameters should be taken into consideration. Next, the actual hardware connections were listed. The final discussion revolved around the display timing and bandwidth requirements.

In Application Note FAN4220 firmware development will be presented. The ST Nucleo-F767ZI will be programmed utilizing the STM32CubeMX Initialization Code Generator and the STM32CubeIDE Integrated Development Environment. The code developed includes special peripherals features of the MCU.

Disclaimer

Buyers and others who are developing systems that incorporate FocusLCD’s products (collectively, “Designers”) understand and agree that Designers remain responsible for using their independent analysis, evaluation, and judgment in designing their applications and that Designers have full and exclusive responsibility to assure the safety of Designers’ applications and compliance of their applications (and of all FocusLCD’s products used in or for Designers’ applications) with all applicable regulations, laws and other applicable requirements.

Designer represents that, with respect to their applications, Designer has all the necessary expertise to create and implement safeguards that:

(1) anticipate dangerous consequences of failures

(2) monitor failures and their consequences, and

(3) lessen the likelihood of failures that might cause harm and take appropriate actions.

Designer agrees that before using or distributing any applications that include FocusLCD’s products, the Designer will thoroughly test such applications and the functionality of such FocusLCD’s products as used in such applications.