I think that you shouldn't connect 5V directly to the backlihgt pin of LCD (because it is LED). Use 22 Ohm resistor (or similar). And read LCD datasheet to see current requirement for backlight.
You can control backlight (ON/OFF) if you insert switching transistor (e.g. 2N2222). Collector circuit consists of +5V, 22 Ohm resistor, A (Anode) pin of LCD, K (Cathode) pin of LCD, collector, and emitter connected to the ground. Control signal (e.g. pin from 8051 or PIC) goes to the transistor base via 1 kOhm.
+5V
---
|
|
/
\
/ R1 = 22 Ohm
\
| ___________
| A | |
--------| LCD |
| |
--------|__________|
| K
|
|
| Q1 = 2N2222 (NPN)
|C
\ B R2 = 1kOhm
|---------/\/\/\-----------| ON/OFF command - TTL level
/ E
|
|
---- GND
--
It's not an LED that is providing the backlight, it is an electroluminescent strip that needs about 90 volts from an inverter circuit. I just think I applied to much voltage to the input pin of the inverter and fried it. Didn't have any specs on it. Couldn't find anything on the part number that was stamped on the inverter.
Trishool
Thanks, for the info (PDF) file.
Alienbeing