How does TFT work? Tft Lcd Module,Lcd Liquid Crystal Display Module,Lcd Module,Lcd Screen Module ESEN Optoelectronics Technology Co., Ltd, , https://www.esenoptoelectronics.com
Overview The MAX6956 LED driver and I / O expander can provide and maintain the desired constant current for all 20 or 28 LED drive ports (depending on the package type) without external current limiting resistors. All ports can be set at the same time, with sixteen constant currents (from 1.5mA to 24mA); or each port can be set to a different constant current. The MAX6956 not only has LED brightness control, but also the port matching accuracy of the device ensures that the chromaticity will be more consistent. In addition to the constant current LED driver, each independent port of the MAX6956 can also be used as an input port with transient detection, or a push-pull output port with 10mA sink current and 4.5mA source current.
The MAX6957 is similar to the MAX6956, but uses SPI ™ instead of an I²C compatible interface. The MAX7300 is a general-purpose I / O (GPIO) port expander similar to the MAX6956, but the device does not have a constant-current LED drive function. The MAX7301 is a GPIO port expander similar to the MAX7300, but the device uses an SPI interface instead of an I²C compatible interface.
Figure 1 shows a simple application example of using MAX6956 to drive ten white and RGB LEDs without a current limiting resistor.
Figure 1. MAX6956 application circuit
The specific operation of MAX6956 configuration register MAX6956 is controlled by writing to 89 registers. In addition to the four registers described in the data sheet (global current, configuration, transient detection mask, and display test), the MAX6956 has three other register sets: Port configuration (0x09 to 0x0F)
Each port in the port configuration register is divided into two bits. These two bits can define each port as LED driver, output port or input port with / without pull-up resistor. Corresponding to 28 ports, there are 7 port configuration registers. Independent current (0x12 to 0x1F)
Each port in the independent current register is divided into four bits. These four bits can define each independent port to the desired constant current. The minimum step size is 1/16 of the maximum current value set by the external resistor connected to the ISET pin. Port I / O value (0x20 to 0x5F)
The device has 29 port I / O value registers for each independent port (port 31 has two registers). There are 21 port I / O value registers that can be used to simultaneously define 8 different ports as a group of I / O values. Other port I / O value registers can be used to define 2, 3, 4, 5, 6 or 7 different ports as a group at the same time. MAX6956 I²C command The following gives the I²C command to set all ports to half the maximum constant current of 24mA (with 39kΩ external resistor) at power-up. When both AD0 and AD1 pins are connected to ground, the MAX6956 I²C device address is 0x80. The I2CWrite routine uses the register address auto-increment feature to write a specific byte to a MAX6956 register or a command to write multiple bytes to a series of consecutive registers.
I2CWrite (0x80, 0x02, 0x07); // Set a half global constant current I2CWrite (0x80, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00); // Set all ports to LED drive mode I2CWrite (0x80 , 0x04, 0x01); // Set the shutdown / run bit of the configuraTIon register
As a reference checkpoint, the equivalent binary number for setting the shutdown / run bit write command is listed below. I2CWrite (0x80, 0x04, 0x01); 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1
The following shows the I²C command to set a port (P4 in this example) to full-scale constant current at power-up. I2CWrite (0x80, 0x12, 0x07); // Set a half port P4 constant current I2CWrite (0x80, 0x09, 0xA8); // Set P4 to LED drive mode I2CWrite (0x80, 0x04, 0x01); // Set the shutdown / run bit of the configuraTIon register
At power-up, all ports are set to logic inputs without pull-up resistors. Only the following I²C commands are required to set the MAX6956 to work in all power-on default states. I2CWrite (0x80, 0x04, 0x01); // Set the shutdown / run bit of the configuraTIon register
MAX6957 SPI command Any register of the MAX6957 can send or read the 16-bit word containing the register address and the data byte immediately following the SPI interface. The first bit of the address byte determines whether it is a write (0) command or a read (1) command. All 16-bit words can be placed together with other words.
The data byte on the MAX6957 DIN input pin is given below to set all ports to half of the 24mA maximum constant current. These commands are similar to the MAX6956, except that the device address needs to be specified. For the SPI interface, a specific device can be selected by setting the active CS input pin low. The MAX6957 does not have an auto-increment function for register addresses. 0x02, 0x07; // Set a half global constant current 0x09, 0x00; // Set ports P4 through P7 to LED drive mode 0x0A, 0x00; // Set ports P8 through P11 to LED drive mode 0x0B, 0x00; // Set ports P12 through P15 to LED drive mode 0x0C, 0x00; // Set ports P16 through P19 to LED drive mode 0x0D, 0x00; // Set ports P20 through P23 to LED drive mode 0x0E, 0x00; // Set ports P24 through P27 to LED drive mode 0x0F, 0x00; // Set ports P28 through P31 to LED drive mode 0x04, 0x01; // Set the shutdown / run bit of the configuraTIon register
The MAX7300 / MAX7301 configuration registers MAX7300 and MAX7301 do not have constant current LED drive capability. Control the detailed working status of the device by writing 73 registers. In addition to the configuration and transient detection mask registers, there are two other sets of registers: Port configuration (0x09 to 0x0F) Port I / O value (0x20 to 0x5F) When the MAX7300 I²C command is powered on, all ports are set Logic input with pull-up resistor. The following shows the I²C command to set P14 to P23 to half the port full current when the output is logic high, and to put the chip from the initial shutdown to the working state. When the AD0 and AD1 pins are connected to ground, the MAX²300 ’s I²C device address is 0x80. I2CWrite (0x80, 0x0B, 0x5A, 0x55, 0x55); // Set P14 through P23 to output I2CWrite (0x80, 0x4E, 0xFF); // Set P14 through P21 to logic high I2CWrite (0x80, 0x56, 0x03); // Set P22 through P23 to logic high I2CWrite (0x80, 0x04, 0x01); // Set the shutdown / run bit
MAX7301 SPI command Any register of the MAX7301 can send or read a 16-bit word containing the register address and the next data byte through the SPI interface. The first bit of the address byte determines whether it is a write (0) command or a read (1) command. All 16-bit words can be placed together with other words.
The following shows the data byte on the MAX7301 DIN input pin. When the output is at a logic high, set P14 to P23 to half of the port current, and make the chip enter the working state from the initial shutdown. These commands are similar to the MAX7300, except that the device address needs to be specified. For the SPI interface, a specific device can be selected by setting the active CS input pin low. The MAX7300 does not have automatic register address increment function. 0x0B, 0x5A; // Set P14 and P15 to output 0x0C, 0x55; // Set P16 through P19 to output 0x0D, 0x55; // Set P20 through P23 to output 0x4E, 0xFF; // Set P14 through P21 to logic high 0x56 , 0x03; // Set P22 and P23 to logic high 0x04, 0x01; // Set the shutdown / run bit
TFT is the abbreviation of "Thin Film Transistor", generally refers to thin film liquid crystal displays, but actually refers to thin film transistors (matrix)-can "actively" control each independent pixel on the screen, which is The origin of the so-called active matrix TFT (active matrix TFT). So how exactly is the image produced? The basic principle is very simple: the Display Screen is composed of many pixels that can emit light of any color, and the purpose can be achieved by controlling each pixel to display the corresponding color. In TFT LCD, backlight technology is generally used. In order to accurately control the color and brightness of each pixel, it is necessary to install a shutter-like switch after each pixel. When the "blinds" are opened, light can pass through, and " When the shutters are closed, light cannot pass through. Of course, technically, it is not as simple as the one just mentioned. LCD (Liquid Crystal Display) utilizes the characteristics of liquid crystals (liquid when heated, and crystallized into solid when cooled). Generally, liquid crystals have three forms:
Smectic liquid crystal similar to clay
Nematic liquid crystal resembling a fine matchstick
Cholestic liquid crystal
The liquid crystal display uses filaments, and when the external environment changes, its molecular structure will also change, and thus have different physical properties-it can achieve the purpose of letting light through or blocking light-which is just like the blinds just now.
Everyone knows the three primary colors, so each pixel on the display screen needs three similar basic components described above to control the three colors of red, green, and blue respectively.
The most commonly used one is twisted nematic TFT LCD (Twisted Nematic TFT LCD). Existing technologies vary greatly, and we will cover them in detail in the second part of this article.
There are grooves on the upper and lower layers. The grooves on the upper layer are arranged longitudinally and the grooves on the lower layer are arranged horizontally. When no voltage is applied to the liquid crystal in its natural state, the light emitted from the light emitting layer of the twisted nematic TFT Display working principle diagram of Figure 2a will be twisted by 90 degrees after passing through the interlayer, so that it can pass through the lower layer smoothly.
When a voltage is applied between the two layers, an electric field is generated. At this time, the liquid crystals are aligned vertically, so the light will not be twisted-the result is that the light cannot pass through the lower layer.
(2) TFT pixel structure: The color filter is divided into red, green, and blue according to the color, which are arranged on the glass substrate to form a group (dot pitch) corresponding to a pixel. Each monochromatic filter is called It is a sub-pixel. In other words, if a TFT display supports a maximum resolution of 1280×1024, then at least 1280×3×1024 sub-pixels and transistors are required. For a 15-inch TFT display (1024×768), then a pixel is about 0.0188 inches (equivalent to 0.30mm), for an 18.1-inch TFT display (1280×1024), it is 0.011 inches (equivalent to 0.28mm) .
As we all know, pixels are decisive for the display. The smaller each pixel is, the larger the maximum resolution that the display can achieve. However, due to the limitation of the physical characteristics of the transistor, the size of each pixel of the TFT at this stage is basically 0.0117 inches (0.297mm), so for a 15-inch display, the maximum resolution is only 1280×1024.
MAX6956 Programming Guide
Abstract: This guide gives detailed information on programming the MAX6956 LED display driver and I / O expander. It also discusses some programming techniques for similar devices (MAX6957, MAX7300, and MAX7301).