Download 1 - Lab. Nr 4 Use of a graphic LCD module Aim

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Electrical substation wikipedia , lookup

Standby power wikipedia , lookup

Stray voltage wikipedia , lookup

Ohm's law wikipedia , lookup

Three-phase electric power wikipedia , lookup

Buck converter wikipedia , lookup

Electrification wikipedia , lookup

Mercury-arc valve wikipedia , lookup

Solar micro-inverter wikipedia , lookup

Electric power system wikipedia , lookup

Electrical ballast wikipedia , lookup

Triode wikipedia , lookup

Voltage optimisation wikipedia , lookup

Switched-mode power supply wikipedia , lookup

Power engineering wikipedia , lookup

History of electric power transmission wikipedia , lookup

Opto-isolator wikipedia , lookup

Mains electricity wikipedia , lookup

Alternating current wikipedia , lookup

Liquid-crystal display wikipedia , lookup

Transcript
Högskolan Dalarna
Avd. Datateknik och Informatik
Lab. Instruction
LCD-Electronics
2001-11-27/lec
Lab. Nr 4
Use of a graphic LCD module
Aim:
To provide knowledge about how to connect and print text and graphics on a
graphic LCD module.
Equipment:
A computer with accessible parallel port
Graphic LCD module DMF 5005
Graphic LCD module DMF 5010
Drive circuit for Cold Cathode Fluorescent Lamp CXA-L10A
Connection cable between the parallel port and the LCD module
Serial resistors for the background lighting LEDs
PNP-transistor BC558 potentiometer and resistor for contrast adjustment
A start diskette with necessary files
The background lighting differs between the two modules DMF 5005 and DMF 5010.
Both use LCD Controller T6963.
1.
Assembly and testing the module DMF 5005
Connections:
PC parallel port
Connection DMF5005
and DMF5010
Address
Bit value
Pin nr
Note
Pin nr
Name
H37A
2
14
Inverted
5
WR
4
16
8
CD
8
17
Inverted
7
CE
1 - 128
2-9
Databus
11 - 18
D0 - D7
18
GND
2
Vss
H378
Instructions for connecting the power supply are described in the manual for the
module. The wrong voltage can destroy the display! It is important that all other inputs
on the module are connected to +5 V or GND in an appropriate way. Look in the
manual!
The test program TEST.PAS sets a cursor, prints text and the graphic file that is sent
as a parameter. The computer must be started with the start diskette in the diskette
drive so that the parallel port will be accessible. The graphic file is to be 240 x 64
point black and white. PICTURE.BMP is such a file. To run the program TEST.PAS
and send the file PICTURE.PAS as a parameter you write: TEST PICTURE.
Assemble and test.
Lab 4 LCD Electronics
-1-
Högskolan Dalarna
Avd. Datateknik och Informatik
Lab. Instruction
LCD-Electronics
2001-11-27/lec
Measure power consumption of the module by measuring the current and voltages.
You get the power consumption by multiplying the current and the voltage.
Lab. report: Tables that show currents, voltages and power consumption for module
DMF 5005.
2.
Background lighting
DMF 5005: The module has two differently coloured background lightings with
LEDs. The LEDs are connected with a common anode. To limit the current a resistor
must be connected in series with the LEDs. Use a resistor with the resistance 3 ohm
(or three ten ohm resistors in parallel). Connect, test and measure the power
consumption for the LED backlight.
Lab. report: Tables that show currents, voltages and power consumption for the LED
backlight.
DMF 5010: This module’s background lighting is "Cold Cathode Fluorescent Lamp".
( or Cold Cathode Tube, CCT) Warning!! High voltages.
Use the circuit CXA-L10A. You can read on the circuit card how to connect it. The
input connects to 5 V. “OUT 2” and “OUT GND” connects to the LCD (red and black
wire).
Connect, test and measure the power consumption for the CCT backlight.
Lab. report: Tables that show current, voltage and power consumption for the CCT
backlight.
3.
Power Consumption
Compare the power consumption measurements.
Lab. report: Table and comments
4.
Text and Graphic Display
a) Make your own graphic file. To make the graphic file you use the drawing program
PAINT that is on the computer under “Accessories”. The graphic file is to be 240 x 64
point black and white (Image Attributes).
b) Write your name in the middle of the display with in text mode.
c) Mix text and graphic with the EXOR operator.
d) Move the picture on the display by chancing the Graphic home address. Move it up
half the display.
Lab. report: Source code and comments.
Lab 4 LCD Electronics
-2-