Text preview for : LCD.pdf part of Xrelais 3.1 X relais 3.1 Xrelais 3.1 loucozener



Back to : XRELAIS_3_1_COMP.part01.r | Home

AN658
LCD Fundamentals Using PIC16C92X Microcontrollers
Author: Rodger Richey Microchip Technology Inc.
Polarization is a process or state in which rays of light exhibit different properties in different directions, especially the state in which all the vibration takes place in one plane. Essentially, a polarizer passes light only in one plane. As shown in Figure 2, if light is polarized in one plane, by passing through a polarizer, it cannot pass through a second polarizer if its plane is 90° out of phase to the first.

INTRODUCTION
This Application Note provides a basic introduction to the features and uses of Liquid Crystal Displays (LCD). At the end of this Application Note, you should be able to answer the following questions: · · · · What are the basic components in an LCD panel? How does an LCD work? What are the different types of LCD panels? How are LCD panels driven?

FIGURE 2:

POLARIZERS OUT OF PHASE

WHAT ARE THE BASIC COMPONENTS IN AN LCD PANEL?
An LCD panel, or more commonly known as a piece of "glass", is constructed of many layers. Figure 1 shows all the layers that are typically present in LCD panels. The first layer is called the front polarizer.

FIGURE 1:

BASIC LCD COMPONENTS

The front polarizer is applied to the outside surface of the top piece of glass. The top piece of glass also provides structural support for the LCD panel. On the bottom of the top glass, a transparent coating of Indium-Tin Oxide (ITO) is applied to the glass. ITO is conductive and forms the backplane or common electrodes of the LCD panel. The patterns of the backplane and segment ITO forms the numbers, letters, symbols, icons, etc. After the ITO has been applied to the glass, a thin polyimide coating is applied to the ITO. The polyimide is "rubbed" in a single direction that matches the polarization plane of the front polarizer. The action of "rubbing" the polyimide causes the Liquid Crystal (LC) molecules in the outermost plane to align themselves in the same direction.

Front Polarizer Backplane Electrode Perimeter Seal Conductive Connection Segment Electrodes Glass Rear Polarizer Terminal Pins Glass

LC Fluid

© 1997 Microchip Technology Inc.

DS00658A-page 1

AN658
The next layer is a reservoir of LC. The LC fluid has many planes of molecules. The next layer is the polyimide coating on the bottom glass followed by the ITO segment electrodes. The bottom glass also supplies structural integrity for the LCD panel as well as mounting surface for the electrode connections. Applied to the external surface of the bottom glass is the rear polarizer. Depending on the type of viewing mode employed by the LCD panel, the axis of polarization is the same or 90° apart from the front polarizer. LC molecules are long and cylindrical. On any plane within the LC fluid, the molecules align themselves such that the major axis of each molecule is parallel to all others, as shown in Figure 3. The outermost planes of LC molecules will align themselves on the same axis that the polyimide is "rubbed". The direction of "rubbing" of the polyimide on the bottom glass is 90° apart from that of the polyimide on the top glass. This orientation creates the twist in the LC fluid. A consequence of this alignment is that each intermediate plane of LC molecules will have a slightly different orientation from the plane above or below as seen in Figure 4.

FIGURE 4:

LC MOLECULES PLANE ORIENTATION

FIGURE 3:

LC MOLECULES IN ALIGNMENT

The twisting of the planes causes the polarization of the light to twist as it passes through the LC fluid. The twisting of the LC planes is critical to the operation of the LCD panel as will be shown in the next section. Now that the mystery of what the LCD panel is made of has been uncovered, how does an LCD work?

DS00658A-page 2

© 1997 Microchip Technology Inc.

AN658
HOW DOES AN LCD WORK?
As explained before, the twist created in the LC fluid is the basis of how the panel operates. Figure 5 shows how an LCD panel creates a pixel that is OFF. For this example the LC fluid is not energized, i.e. there is 0 VRMS potential between the backplane and segment electrodes. The following is a step-by-step description of the path light takes through the LCD panel. 1. Light enters the panel through the rear polarizer. At this point the light becomes polarized to the vertical plane. The polarized light passes unobstructed through the transparent backplane electrode. As the polarized light passes through the LC fluid it gets twisted into the horizontal plane. The polarized light passes unobstructed through the transparent segment electrode. Since the light is now polarized in the horizontal plane, it passes unobstructed through the front polarizer which has a horizontal polarization. The observer does not detect that the pixel is on because the light has not been obstructed. If a potential is applied across the backplane and segment electrodes, the LC fluid becomes energized. The LC molecule planes will now align themselves such that they are parallel to the electrical field generated by the potential difference. This removes the twisting effect of the LC fluid. Figure 6 shows a pixel that is ON or, more specifically energized. The following is a step-by-step description of the path that the light takes through this LCD panel. 1. Light enters the panel through the rear polarizer. At this point the light becomes polarized to the vertical plane. The polarized light passes unobstructed through the transparent backplane electrode. As the polarized light passes through the LC fluid it does not twist and remains in the vertical plane. The polarized light passes unobstructed through the transparent segment electrode. Since the light is still polarized in the vertical plane, it is obstructed by the front polarizer which has a horizontal polarization. The observer detects that the pixel is on because the light has been obstructed and creates a dark image on the panel.

2. 3. 4. 5.

2. 3.

4. 5.

6.

6.

FIGURE 5:

PATH OF LIGHT FOR OFF PIXEL (POSITIVE IMAGE)
Backplane Electrode Segment Electrode

Light Rear Polarizer (Vertical)

LIQUID CRYSTAL

Polarized LIght Front Polarizer (Horizontal)

OFF

FIGURE 6:

PATH OF LIGHT FOR ON PIXEL
Backplane Electrode Segment Electrode

Light Rear Polarizer (Vertical)

LIQUID CRYSTAL

ON

Front Polarizer (Horizontal)

© 1997 Microchip Technology Inc.

DS00658A-page 3

AN658
LCD IMAGES
LCDs have the capability to produce both positive and negative images. A positive image is defined to be a dark image on a light background. In a positive image display, the front and rear polarizers are perpendicular to each other. Unenergized pixels and the background area transmit the light and energized pixels obstruct the light creating dark images on the light background. A negative image is a light image on a dark background. In this type of display, the front and rear polarizers are aligned to each other. Unenergized pixels and the background inhibit light from passing through the display. Energized pixels allow the light to pass creating a light image on a dark background. There are essentially three types of viewing modes for a LCD: reflective, transmissive, and transflective. Typically Reflective displays use only positive images. The front and rear polarizers are perpendicular to each other. The LCD panel will have an additional layer added to the bottom of the display, a reflector. Figure 7 shows the diagrams for pixels that are ON and OFF for reflective displays. Here again, the path that light takes is described in a step-by-step fashion for a pixel that is OFF in a positive image display. 1. Light enters the panel through the front polarizer. At this point the light becomes polarized to the vertical plane. The polarized light passes unobstructed through the transparent backplane electrode. As the polarized light passes through the LC fluid it gets twisted into the horizontal plane. The polarized light passes unobstructed through the transparent segment electrode. Since the light is now polarized in the horizontal plane, it passes unobstructed through the rear polarizer which has a horizontal polarization. The reflector behind the rear polarizer reflects the incoming light back on the same path. The observer does not detect that the pixel is ON because the light was reflected back.

2. 3. 4. 5.

6. 7.

A pixel that is ON follows the same basic steps except that the light never reaches the reflector and therefore does not return to the observer. Reflective displays lend themselves to battery powered applications because the images are created using ambient light sources. These displays are very bright under proper lighting conditions, with excellent contrast, and have a wide viewing angle.

FIGURE 7:

REFLECTIVE LCD PATH OF LIGHT
Backplane Electrode Segment Electrode

Light Source LIQUID CRYSTAL Front Polarizer (Vertical)

OFF

Rear Polarizer (Horizontal)

Reflector

Backplane Electrode

Segment Electrode

Light Source Front Polarizer (Vertical)

LIQUID CRYSTAL

ON

Rear Polarizer (Horizontal)

Reflector

DS00658A-page 4

© 1997 Microchip Technology Inc.

AN658
Transmissive displays do not reflect light back to the observer. Instead, they rely upon a light source behind the panel to create images. A transmissive display has front and rear polarizers that are in phase to each other. Figure 8 shows the OFF and ON diagrams for a transmissive display. The path of light is described below for the ON state only in a positive image display. 1. Light enters the panel through the rear polarizer. At this point the light becomes polarized to the vertical plane. The polarized light passes unobstructed through the transparent segment electrode. As the polarized light passes through the LC fluid it gets twisted into the horizontal plane. The polarized light passes unobstructed through the transparent backplane electrode. Since the light is now polarized in the horizontal plane, it is obstructed by the front polarizer which has a vertical polarization. Very little light passes through the front polarizer The observer does not detect that the pixel is ON because the light was obstructed. An OFF pixel would allow the light to pass through the display unobstructed because the polarization does not get twisted by the LC fluid. These displays are very good for very low light level conditions. They are very poor when used in direct sunlight because the sunlight swamps out the backlighting. The third type of display is called transflective. As you can probably tell from the name, it is a combination of reflective and transmissive. A white or silver translucent material is applied to the rear of the display. It reflects some of the ambient light back to the observer while also allowing backlighting. Transflective displays are very good for applications which have varying light conditions such as gas pumps. They must operate during the day in bright sunlight, but must also operate at night. Transflective displays have lower contrast ratios than reflective displays because some of the light passes through the reflector.

2. 3. 4. 5.

6.

FIGURE 8:

TRANSMISSIVE LCD PATH OF LIGHT (NEGATIVE IMAGE)
Segment Electrode Backplane Electrode

Light Source Rear Polarizer (Vertical)

LIQUID CRYSTAL

ON

Front Polarizer (Vertical)

Segment Electrode

Common Electrode

Light Source Rear Polarizer (Vertical)

LIQUID CRYSTAL

OFF

Front Polarizer (Vertical)

© 1997 Microchip Technology Inc.

DS00658A-page 5

AN658
The type of LCD that an application requires is largely dependent on the ambient light available. Table 1 gives some guidelines for selecting a display according to the lighting conditions.

TABLE 1: LIGHTING CONDITION REFERENCE
Display Description Dark images on light background Dark images on gray background Light gray images on dark background Backlit images on dark background Direct Sunlight Excellent Very Low Light Unusable

Viewing Mode

Application Comments No backlighting. Gives best contrast and environmental stability

Office Light Very Good

Reflective (Positive) Transflective (Positive) Transflective (Negative) Transmissive (Negative) Transmissive (Positive)

Can be viewed with both ambi- Excellent (no ent light and backlighting backlight) Requires high ambient light or Good backlighting. (no backlight) Cannot be viewed by reflection Poor (backlight) Poor (backlight)

Good (no backlight) Fair (no backlight) Good (backlight) Good (backlight)

Very Good (backlight) Very Good (backlight) Excellent (backlight) Excellent (backlight)

Dark images on a Good for very low light condibacklit background tions

DRIVER VOLTAGES
The number one cause of LCD damage is having a DC voltage applied to it. A DC voltage will deteriorate the LC fluid such that it cannot be energized. The LCD driver waveforms are designed to create a 0 VDC potential across all pixels. The specifications for a LCD panel will include some RMS voltages such as VOFF and VON. A third voltage is VTH which is the RMS voltage across an LCD pixel when contrast reaches a 10% level. Often this voltage is used as VOFF. VON is defined as the RMS voltage applied by the LCD driver to the segment electrode that creates an ON pixel which is typically at the 90% contrast level. It is desirable that VON be much greater than VOFF.

Figure 9 graphically represents the voltage potential versus the contrast across a pixel. The final specification for an LCD panel is the discrimination ratio which is VON divided by VOFF (VON/VOFF). The discrimination ratio specifies what type of contrast levels the LCD panel will be able to achieve. Examples of discrimination ratio calculations will be given in the section "How are LCD Panels Driven?".

FIGURE 9:

CONTRAST vs. RMS VOLTAGE

100% 90%

Brightness or contrast

10% VOFF VTH VON VRMS (between SEG and BP)

DS00658A-page 6

© 1997 Microchip Technology Inc.

AN658
RESPONSE TIME
An LCD panel will have a typical ON and OFF response time. The ON time parameter refers to the time for an OFF pixel to become visible after the appropriate voltages have been applied. The OFF time parameter specifies the time for an ON segment to disappear. Sometimes these parameters are called rise and decay, respectively. Temperature plays a key role in the response time of an LCD panel. Figure 10 shows the response times versus temperature for commercial type LC fluid. For this reason, there are no LCD panels in gas pumps in Alaska without heaters. Displays with heaters can help to decrease response time even at temperatures as low as -55°C. The drawback of an LCD heater is that every square inch of surface on the back of the display requires 2 to 3 watts.

TEMPERATURE EFFECTS
As previously shown, temperature has a large impact on the performance of the LCD panel. Not only is the LC fluid affected, but the internal coatings begin to deteriorate. All LC fluids have well defined operating temperature limits. If an LCD is operated above its fluid limits, the LC molecules begin to assume random orientations. The pixels on a positive image display will become completely dark, while pixels on a negative image display will become completely transparent. An LCD can recover from these conditions if the exposure is kept short, however, temperatures above 110°C will cause the ITO and polyimide coatings to deteriorate. On the low end of the temperature spectrum, response times increase because the viscosity of the LC fluid increases. At very low temperatures, typically -60°C, the LC fluid transitions into a crystalline state. Usually, the LC fluid can recover from the effects of low temperature. Many different types of LC fluid are available, which allows the LCD panel to be tailored to the expected operating conditions. As mentioned in the previous section, heaters can combat the effects of low temperature.

FIGURE 10: RESPONSE vs. TEMPERATURE
COMMERCIAL FLUID 300 Decay Time Time (ms) 200 Rise Time 100

CAPACITANCE
The LCD panel can be modeled as a lossy, non-linear capacitor. The area of the pixel, and therefore the size of the LCD panel, has a direct impact on the value of the capacitance that a common or segment driver must be able to drive. Typical values of capacitance are in the range of 1000 - 1500 pF/cm2. Figure 11 shows an example of a 1/3 MUX panel. As you can see the backplane driver must be capable of driving significantly higher capacitances than the segment driver. Care must be taken when designing a system such that your LCD driver is capable of driving the capacitance on the segment and common. Otherwise the LCD panel may be damaged due to a DC offset voltage generated by overloaded segment and common drivers. PIC16C92X microcontrollers are capable of driving backplanes up to 5000 pF and segments up to 500 pF.

-10

0

20 Temperature (°C)

40

FIGURE 11: 1/3 MUX LCD EQUIVALENT CIRCUIT BP0

BP1

BP2

SEG0 SEG1 SEG2

SEGn

© 1997 Microchip Technology Inc.

DS00658A-page 7

AN658
BACKLIGHTING
A variety of methods exist for backlighting LCD panels, such as, incandescent lamps, LEDs, and electroluminescent lamps. Incandescent lamps require some type of reflector to provide uniform lighting to all areas of the panel. LEDs require some type of lightguide or lightpipe to evenly distribute light. Electroluminescent lamps typically come in some type of a panel arrangement. Other lighting methods are available for specific applications, such as fluorescent. Table 2 provides a comparison of these methods of backlighting.

TABLE 2: BACKLIGHTING FEATURES COMPARISON
Feature Brightness Color Size Voltage Current @5V/sq. in Temperature Cost/sq. in Shock Tolerance Life (hours) Medium Limited Small 5V 10-30 mA Warm $0.10 - $1.00 Excellent 100,000 LED High White Small-Medium 1.5V - 28V 20 mA Hot $0.10 - $0.80 Fragile 150 - 10,000 Incandescent Electroluminescent Low-Medium White Thin 45V - 100V 1 mA - 10 mA Cool $0.50 - $2.00 Excellent 500 - 15,000

DS00658A-page 8

© 1997 Microchip Technology Inc.

AN658
CONNECTION METHODS
The first method of connecting the LCD panel to the world was the dual-in-line pin shown in Figure 12. These pins provide excellent protection for harsh environments, vibration or shock. The LCD panel is either soldered directly to the printed circuit board (PCB) or inserted into headers.

FIGURE 12: DUAL IN-LINE PINS

The second method is elastomeric connectors. This method allows fast assembly/disassembly without having to solder the LCD panel. Elastomeric connectors are used on small applications where space is a concern. These connectors are relatively resistant to shock and vibration, but special consideration must be used when the panel will be exposed to harsh environments. Figure 13 shows an assembly drawing of an elastomeric connector.

FIGURE 13: ELASTOMERIC CONNECTORS

Elastomeric Connector

Elastomeric Connector

© 1997 Microchip Technology Inc.

DS00658A-page 9

AN658
One of the newer methods is the flex connector. A PCB and the LCD panel are connected by a flexible cable using a heat seal process. The flexible cable is typically a anisotropic connective film that is applied to the PCB and LCD panel using heat and pressure. These connectors were designed for harsh environments where the connector must be flexible enough to prevent breakage during stress. These connectors are becoming more popular with large or remotely mounted LCD panels. Figure 14 shows a typical application.

FIGURE 14: FLEX CONNECTORS

Contacts

Heat Seal L.C. Display PC Board

WHAT ARE THE DIFFERENT TYPES OF LCD PANELS?
LCD panels come in many flavors depending on the application and the operating environment. LCDs can be classified in two ways. First of all, LCDs come in direct drive or multiplex drive variations. Direct drive, otherwise known as static, means that each pixel of the LCD panel has an independent driver. The LCD panel also has only one backplane. A static drive panel also has static bias. Bias is defined as the number of voltage levels the LCD driver uses to create images on the screen. The number of voltage levels is equivalent to the 1 + 1/bias. Static bias refers to two voltage levels which create a square wave, ground and VDD. Static drive panels also have the best contrast ratios over the widest temperature range. Multiplex drive panels reduce the overall amount of interconnections between the LCD and the driver. Put simply, multiplex panels have more than one backplane. A multiplex LCD driver produces an amplitude-varying, time synchronized waveform for both the segment and backplanes. These waveforms allow access to one pixel on each of the backplanes. This significantly increases the complexity of the driver. The number of backplanes a panel has is referred to the multiplexing ratio or "MUX" of the panel. MUX also refers to duty cycle. For instance, a 1/3 MUX panel has three backplanes. The bias for multiplex panels is at least 1/2 - 1/5 for segment type drivers and from 1/8 1/33 for dot matrix. Table 3 illustrates the advantage of multiplex panels.

TABLE 3: STATIC vs. MULTIPLEX PIN COUNT
LCD panel 3 - 1/2 digit Back planes Segments Total

1 2

23 12 64 16 1280 160 80 30,720 480 240

24 14 65 20 1281 168 96 30721 544 368

8 digits

1 4

2 x 16 character dot matrix, 5 x 7 characters

1 8 16

128 x 240 graphic display

1 64 128

The last time Microchip investigated high pin count packages, 30,000+ was not an option.

DS00658A-page 10

© 1997 Microchip Technology Inc.

AN658
PIC16C92X microcontrollers have the following drive capabilities:

TABLE 4: PIC16C92X DRIVE CAPABILITY
MUX Static 1/2 1/3 1/4 Bias Static 1/3 1/3 1/3 Backplanes 1 2 3 4 Segments 32 31 30 29

Dot matrix displays are always multiplex type displays due to the large number of pixels required and pin limitations on the driver. Dot matrix displays can create more natural letters and numbers as well as custom graphic symbols. Figure 16 shows a typical 5x7 dot matrix character set. The third type of display is most commonly used in conjunction with the previous types. A function indicator or icon provides status information about the system. They are only capable of being turned on or off. One example would be a digital multimeter. The meter has three 1/2 digits which are 7-segment type and also some icons for volts, amps, ohms and the ranges for m, µ, K, and M. Another example would be a cellular telephone. The LCD panel will have eight or more 5x7 dot matrix characters with icons for events such as in use, roam, no service, battery status, and signal strength. Figure 17 shows what a typical cellular phone panel might resemble.

The other method of classifying LCD panels is the type of display notation used, i.e. segment, dot matrix, or functional. Segment displays are usually the 7-segment, 14-segment, or 16-segment ("British Flag") types used to create numbers and letters. These type of displays are static drive which provides the best contrast and readability in sunlight. Figure 15 shows all three segment displays mentioned.

FIGURE 15: SEGMENT TYPE DISPLAY

FIGURE 16: 5x7 DOT MATRIX DISPLAY

FIGURE 17: TYPICAL CELLULAR PHONE PANEL

Pwr

In Use

No Svc

Roam

© 1997 Microchip Technology Inc.

DS00658A-page 11

AN658
HOW ARE LCD PANELS DRIVEN?
So far, the mysteries of how an LCD is made, how it works, and what the different type of panels have been revealed. This section will demystify the LCD waveforms. An LCD can be characterized by the MUX ratio and bias, but one piece of information is still missing Drive Waveforms. LCDs can be driven by two types of waveforms: Type A and Type B. Before the definitions of the two types are given, the term frame frequency must be defined. The LCD frame frequency is the rate at which the backplane and segment outputs change. The frame frequency is then calculated to be the LCD period / 2 · number of backplanes. The range of frame frequencies is from 25 to 250 Hz with the most common being between 50 and 150 Hz. Higher frequencies result in higher power consumption while lower frequencies cause flicker in the images on the LCD panel. An earlier section mentioned that a LCD driver must maintain a 0 VDC potential across each pixel. Type A waveforms maintain 0 VDC over a single frame whereas Type B takes two frames. Figure 18 shows both types of waveforms with 1/3 MUX and 1/3 Bias. PIC16C92X microcontrollers support only Type A waveforms. The voltage applied across a particular pixel is the voltage on the COM pin minus the voltage on the SEG pin. If the resulting voltage is at or above the VON threshold then the pixel is visible. Otherwise the voltage will be at or below the VOFF threshold and the pixel will not be visible. This formula is used for all drive/bias methods. The following figures show each of the modes that are currently supported by the PIC16C92X devices. Since the PIC16C92X devices only support Type A waveforms, only Type A waveforms for each of the modes are shown. Each figure has the LCD period and the frame locations marked.

FIGURE 18: TYPE A vs. TYPE B WAVEFORMS
Type A Waveforms Common Common Type B Waveforms

Segment

Segment

CommonSegment

CommonSegment

1 Frame

1 Frame

DS00658A-page 12

© 1997 Microchip Technology Inc.

AN658
FIGURE 19: STATIC WAVEFORMS

COM0 COM0 SEG0

V1 V0 V1 V0 V1 V0 V1

SEG1

COM0-SEG0

V0 -V1

COM0-SEG1
SEG7 SEG6 SEG5 SEG4 SEG3 SEG1 SEG0 SEG2 1 Frame

V0

© 1997 Microchip Technology Inc.

DS00658A-page 13

AN658
FIGURE 20: 1/2 MUX, 1/3 BIAS WAVEFORM
V3

BP0 COM1

V2 V1 V0 V3

COM0
V2

BP1
V1 V0 V3

SEG0

V2 V1 V0 V3

SEG0

SEG1

SEG2

SEG3

SEG1

V2 V1 V0

V3 V2 V1

COM0-SEG0

V0 -V1 -V2 -V3

V3 V2 V1

COM0-SEG1

V0 -V1

1 Frame

-V2 -V3

DS00658A-page 14

© 1997 Microchip Technology Inc.

AN658
FIGURE 21: 1/3 MUX, 1/3 BIAS WAVEFORM V3 BP0 V2 V1 V0 COM2 BP1 COM1 COM0
V1 V0 V3 V3 V2

BP2

V2 V1 V0 V3

SEG0
SEG2 SEG1 SEG0

V2 V1 V0 V3

SEG1

V2 V1 V0 V3 V2 V1

BP0-SEG0

V0 -V1 -V2 -V3 V3 V2 V1

BP0-SEG1

V0 -V1 -V2 -V3

1 Frame

© 1997 Microchip Technology Inc.

DS00658A-page 15

AN658
FIGURE 22: 1/4 MUX, 1/3 BIAS WAVEFORM COM3 COM2 BP0
V3 V2 V1 V0 V3 V2 V1 V0 V3 V2 V1 V0 V3 V2 V1 V0 V3 V2 V1 V0 V3 V2 V1 V0 V3 V2 V1 V0 -V1 -V2 -V3 V3 V2 V1 V0 -V1 -V2 -V3

COM1 COM0

BP1

BP2

BP3

SEG0
SEG1 SEG0

SEG1

BP0-SEG0

BP0-SEG1 1 Frame

DS00658A-page 16

© 1997 Microchip Technology Inc.

AN658
DISCRIMINATION RATIO
Now that the LCD waveforms have been presented, let's calculate the discrimination ratio for some of them. The first example is a static waveform from Figure 19. The voltages V1 and V0 will be assigned values of 1 and 0. The next step is to construct a matrix for one frame to help visualize the DC and RMS voltages present on an individual pixel when it is ON and when it is OFF. The rest of the following shows the calculation of the DC, RMS, and Discrimination Ratio.

EXAMPLE 1:

DISCRIMINATION RATIO CALCULATION FOR STATIC MUX 0 1 1 0 ON 0 1 OFF BPx - SEGx [ON] = -1 + 1, VDC = 0 BPx - SEGx [OFF] = 0 + 0, VDC = 0

BPx SEGx

VRMS [ON] =

V V

(-1)2 + (1)2 2 (0)2 + (0)2 2

= 1V

VRMS [OFF] =

= 0V

D = VRMS [ON] VRMS [OFF]

= 1V 0V

=



The next example is for Figure 22 which is a 1/4 MUX, 1/3 BIAS waveform. For this example, the values 3, 2, 1 and 0 will be assigned to V3, V2, V1, and V0 respectively. The frame matrix, DC voltage, RMS voltage and discrimination ratio calculations are shown in Example 2:

EXAMPLE 2:
BP0 BP1 BP2 BP3 SEGx

DISCRIMINATION RATIO CALCULATION 1/4 MUX
0 2 2 2 3 1 3 1 1 1 0 2 2 0 2 2 3 1 1 3 1 1 0 2 2 2 0 2 3 1 1 1 3 1 0 2 2 2 2 0 3 1 1 1 1 3 0 2

ON OFF VDC = 0 VDC = 0

BP0 - SEGx [ON] = BP0 - SEGx [OFF] =

-3+3-1+1-1+1-1+1 -1+1-1+1-1+1-1+1

VRMS [ON] =

V

(-3)2 + (3)2 + (-1)2 + (1)2 + (-1)2 + (1)2 + (-1)2 + (1)2 8 (-1)2 + (1)2 + (-1)2 + (1)2 + (-1)2 + (1)2 + (-1)2 + (1)2 8 = 3 V 1 V

= 3 V

VRMS [OFF] =

V

= V

D = VRMS [ON] VRMS [OFF]

= 1.732

© 1997 Microchip Technology Inc.

DS00658A-page 17

AN658
As shown in these examples, static displays have excellent contrast. The higher the multiplex ratio of the LCD, the lower the discrimination ratio, and therefore, the lower the contrast of the display. The following table shows the VOFF, VON and discrimination ratios of the various combinations of MUX and BIAS. LCD panel is a capacitive load, the waveform is distorted due to the charging and discharging currents. This distortion can be reduced by decreasing the value of resistance. However this change increases the power consumption due to the increased current now flowing through the resistors. As the LCD panel increases in size, the resistance value must be decreased to maintain the image quality of the display. Sometimes the addition of parallel capacitors to the resistance can reduce the distortion caused by charging/discharging currents. This effect is limited since at some point a large resistor and large capacitor cause a voltage level shift which negatively impacts the display quality. In general, R is 1 k to 50 k and the potentiometer is 5 k to 200 k.

TABLE 5: DISCRIMINATION RATION vs. MUX AND BIAS
1/3 BIAS Voff STATIC 1/2 MUX 1/3 MUX 1/4 MUX 0 0.333 0.333 0.333 1 0.745 0.638 0.577 Von 2.236 1.915 1.732 D

FIGURE 24: RESISTOR LADDER WITH CAPACITORS
+5V V3 R V2 R V1 R V0 C C C

Table 5 shows that as the multiplex of the LCD panel increases, the discrimination ratio decreases. The contrast of the panel will also decrease, so to provide better contrast the LCD voltages must be increased to provide greater separation between each level.

LCD VOLTAGE GENERATION
Among the many ways to generate LCD voltage, two methods stand out above the crowd: resistor ladder and charge pump. A charge pump is ideal for low voltage battery operation because the VDD voltage can be boosted up to drive the LCD panel. The charge pump requires a charging capacitor and filter capacitor for each of the LCD voltages as seen in Figure 25. These capacitors are typically polyester, polypropylene, or polystyrene material. Another feature that makes the charge pump ideal for battery applications is that the current consumption is proportional to the number of pixels that are energized.

FIGURE 23: RESISTOR LADDER
V3 V2 V1 V0

FIGURE 25: CHARGE PUMP C1 C2

The resistor ladder methods, shown in Figure 23 is most commonly used for higher VCC voltages. This method uses inexpensive resistors to create the multilevel LCD voltages. Regardless of the number of pixels that are energized the current remains constant. The voltage at point V3 is typically tied to VCC, either internally or externally. The resistance values are determined by two factors: display quality and power consumption. Display quality is a function of the LCD drive waveforms. Since the

V3 V2 V1 V0 VADJ

DS00658A-page 18

© 1997 Microchip Technology Inc.

AN658
CONTRAST
Although contrast is heavily dependent on the light source available and the multiplex mode, it also varies with the LCD voltage levels. As previously seen, a potentiometer is used to control the contrast of the LCD panel. The potentiometer sets the separation between each of the LCD voltages. The larger the separation, the better the contrast achievable.

CONCLUSION:
Hopefully you can now answer the questions: · · · · What are the basic components in an LCD panel? How does an LCD work? What are the different types of LCD panels? How are LCD panels driven?

This application note has covered LCD fundamentals in great detail. Please refer to the PIC16C92X microcontroller data sheet for more information. Also application note AN649, "Yet Another Clock Featuring the PIC16C924" shows an example application using the PIC16C924.

© 1997 Microchip Technology Inc.

DS00658A-page 19

AN658
APPENDIX A: LIST OF LCD MANUFACTURERS AND DISTRIBUTORS
AEG-MIS 3340 Peachtree Rd. NE Suite 500 Atlanta, GA 30326 TEL: 404-239-0277 FAX: 404-239-0383 All Shore INDS Inc. 1 Edgewater Plaza Staten Island, NY 10305 TEL: 718-720-0018 FAX: 718-720-0225 Crystaloid 5282 Hudson Drive Hudson, OH 44236-3769 TEL: 216-655-2429 FAX: 216-655-2176 DCI Inc. 14812 W. 117th St. Olathe, KS 66062-9304 TEL: 913-782-5672 FAX: 913-782-5766 Excel Technology International Corporation Unit 5, Bldg. 4, Stryker Lane Belle Mead, NJ 08502 TEL: 908-874-4747 FAX: 908-874-3278 F-P Electronics/Mark IV Industries 6030 Ambler Drive Mississauga, ON Canada L4W 2PI TEL: 905-624-3020 FAX: 905-238-3141 Hunter Components 24800 Chagrin Blvd, Suite 101 Cleveland, OH 44122 TEL: 216-831-1464 FAX: 216-831-1463 Interstate Electronics Corp. 1001 E. Bull Rd. Anaheim, CA 92805 TEL: 800-854-6979 FAX: 714-758-4111 Kent Display Systems 343 Portage Blvd. Kent, OH 44240 TEL: 330-673-8784 LCD Planar Optics Corporation 2100-2 Artic Ave. Bohemia, NY 11716 TEL: 516-567-4100 FAX: 516-567-8516 LXD Inc. 7650 First Place Oakwood Village, OH 44146 TEL: 216-786-8700 FAX: 216-786-8711 Nippon Sheet Glass Tomen America Inc. 1285 Avenue of the Americas New York, NY 10019 TEL: 212-397-4600 FAX: 212-397-3351 OPTREX America 44160 Plymouth Oaks Blvd. Plymouth, MI 48170 TEL: 313-416-8500 FAX: 313-416-8520 Phillips Components LCD Business Unit 1273 Lyons Road, Bldg G Dayton, OH 45459 TEL: 573-436-9500 FAX: 573-436-2230 Varitronix Limited Inc. 3250 Wilshire Blvd. Suite 1901 Los Angeles, CA 90010 TEL: 213-738-8700 FAX: 213-738-5340

Satori Electric 23717 Hawthorne Blvd. 3rd Floor Torrance, CA 90505 TEL: 310-214-1791 FAX: 310-214-1721

DS00658A-page 20

© 1997 Microchip Technology Inc.

AN658
Seiko Instruments USA Inc. Electronic Components Division 2990 West Lomita Blvd. Torrance, CA 90505 TEL: 213-517-7770 213-517-8113 FAX: 213-517-7792 Standish International European Technical Center Am Baümstuck II 65520 Bad Camberg/Erbach Germany TEL: 011 49 6434 3324 FAX: 011 49 6434 377238 Standish LCD W7514 Highway V Lake Mills, WI 53551 TEL: 414-648-1000 FAX: 414-648-1001 Truly Semiconductors Ltd. (USA) 2620 Concord Ave. Suite 106 Alhambra, CA 91803 TEL: 818-284-3033 FAX: 818-284-6026 Truly Semiconductor Ltd. 2/F, Chung Shun Knitting Center 1-3 Wing Yip Street, Kwai Chung, N.T., Hong Kong TEL: 852 2487 9803 FAX: 852 2480 0126 Varitronix Limited Inc. 4/F, Liven House 61-63 King Yip Street Kwun Tong, Kowloon Hong Kong TEL: 852 2389 4317 FAX: 852 2343 9555 Varitronix (France) S.A.R.L. 13/15 Chemin De Chilly 91160 Champlan France TEL: (33) 1 69 09 7070 FAX: (33) 1 69 09 0535 Varitronix Italia, S.R.L. Via Bruno Buozzi 90 20099 Sesto San Giovanni Milano, Italy TEL: (39) 2 2622 2744 FAX: (39) 2 2622 2745 Varitronix (UK) Limited Display House, 3 Milbanke Court Milbanke Way, Bracknell Berkshire RG12 1BR United Kingdom TEL: (44) 1344 30377 FAX (44) 1344 300099 Varitronix (Canada) Limited 18 Crown Steel Drive, Suite 101 Markham, Ontario Canada L3R 9X8 TEL: (905) 415-0023 FAX: (905) 415-0094 Vikay America Inc. 195 W. Main St. Avon, CT 06001-3685 TEL: 860-678-7600 FAX: 860-678-7625

© 1997 Microchip Technology Inc.

DS00658A-page 21

AN658
DISTRIBUTORS
Allied Electronics Inc. 7410 Pebble Drive Fort Worth, TX 76118 TEL: 800-433-5700 http://www.allied.avnet.com Digikey Corporation 701 Brooks Ave. South Thief River Falls, MN 56701-0677 TEL: 800-344-4539 http://www.digikey.com Newark Electronics Administrative Office 4801 N. Ravenswood Ave. Chicago, IL 60640-4496 TEL: 312-784-5700 FAX: 312-907-5217

DS00658A-page 22

© 1997 Microchip Technology Inc.

WORLDWIDE SALES & SERVICE
AMERICAS
Corporate Office
Microchip Technology Inc. 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 602-786-7200 Fax: 602-786-7277 Technical Support: 602 786-7627 Web: http://www.microchip.com

ASIA/PACIFIC
Hong Kong
Microchip Asia Pacific RM 3801B, Tower Two Metroplaza 223 Hing Fong Road Kwai Fong, N.T., Hong Kong Tel: 852-2-401-1200 Fax: 852-2-401-3431

EUROPE
United Kingdom
Arizona Microchip Technology Ltd. Unit 6, The Courtyard Meadow Bank, Furlong Road Bourne End, Buckinghamshire SL8 5AJ Tel: 44-1628-851077 Fax: 44-1628-850259

France
Arizona Microchip Technology SARL Zone Industrielle de la Bonde 2 Rue du Buisson aux Fraises 91300 Massy, France Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79

Atlanta
Microchip Technology Inc. 500 Sugar Mill Road, Suite 200B Atlanta, GA 30350 Tel: 770-640-0034 Fax: 770-640-0307

India
Microchip Technology India No. 6, Legacy, Convent Road Bangalore 560 025, India Tel: 91-80-229-0061 Fax: 91-80-229-0062

Boston
Microchip Technology Inc. 5 Mount Royal Avenue Marlborough, MA 01752 Tel: 508-480-9990 Fax: 508-480-8575

Korea
Microchip Technology Korea 168-1, Youngbo Bldg. 3 Floor Samsung-Dong, Kangnam-Ku Seoul, Korea Tel: 82-2-554-7200 Fax: 82-2-558-5934

Germany
Arizona Microchip Technology GmbH Gustav-Heinemann-Ring 125 D-81739 Müchen, Germany Tel: 49-89-627-144 0 Fax: 49-89-627-144-44

Chicago
Microchip Technology Inc. 333 Pierce Road, Suite 180 Itasca, IL 60143 Tel: 630-285-0071 Fax: 630-285-0075

Italy
Arizona Microchip Technology SRL Centro Direzionale Colleone Palazzo Taurus 1 V. Le Colleoni 1 20041 Agrate Brianza Milan, Italy Tel: 39-39-6899939 Fax: 39-39-6899883

Shanghai
Microchip Technology RM 406 Shanghai Golden Bridge Bldg. 2077 Yan'an Road West, Hongiao District Shanghai, PRC 200335 Tel: 86-21-6275-5700 Fax: 86 21-6275-5060

Dallas
Microchip Technology Inc. 14651 Dallas Parkway, Suite 816 Dallas, TX 75240-8809 Tel: 972-991-7177 Fax: 972-991-8588

Singapore
Microchip Technology Taiwan Singapore Branch 200 Middle Road #10-03 Prime Centre Singapore 188980 Tel: 65-334-8870 Fax: 65-334-8850

JAPAN
Microchip Technology Intl. Inc. Benex S-1 6F 3-18-20, Shin Yokohama Kohoku-Ku, Yokohama Kanagawa 222 Japan Tel: 81-4-5471- 6166 Fax: 81-4-5471-6122 5/8/97

Dayton
Microchip Technology Inc. Two Prestige Place, Suite 150 Miamisburg, OH 45342 Tel: 937-291-1654 Fax: 937-291-9175

Los Angeles
Microchip Technology Inc. 18201 Von Karman, Suite 1090 Irvine, CA 92612 Tel: 714-263-1888 Fax: 714-263-1338

Taiwan, R.O.C
Microchip Technology Taiwan 10F-1C 207 Tung Hua North Road Taipei, Taiwan, ROC Tel: 886 2-717-7175 Fax: 886-2-545-0139

New York
Microchip Technology Inc. 150 Motor Parkway, Suite 416 Hauppauge, NY 11788 Tel: 516-273-5305 Fax: 516-273-5335

San Jose
Microchip Technology Inc. 2107 North First Street, Suite 590 San Jose, CA 95131 Tel: 408-436-7950 Fax: 408-436-7955

Toronto
Microchip Technology Inc. 5925 Airport Road, Suite 200 Mississauga, Ontario L4V 1W1, Canada Tel: 905-405-6279 Fax: 905-405-6253

All rights reserved. © 1997, Microchip Technology Incorporated, USA. 5/97

M

Information contained in this publication regarding device applications and the like is intended for suggestion only and may be superseded by updates. No representation or warranty is given and no liability is assumed by Microchip Technology Incorporated with respect to the accuracy or use of such information, or infringement of patents or other intellectual property rights arising from such use or otherwise. Use of Microchip's products as critical components in life support systems is not authorized except with express written approval by Microchip. No licenses are conveyed, implicitly or otherwise, under any intellectual property rights. The Microchip logo and name are registered trademarks of Microchip Technology Inc. in the U.S.A. and other countries. All rights reserved. All other trademarks mentioned herein are the property of their respective companies.

© 1997 Microchip Technology Inc.