单片机控制诺基亚2600彩屏(三)
0赞
发表于 5/23/2011 10:08:28 PM
阅读(2804)
Step 2Electrical Interfacing


After you have a breakout board for the LCD connector, you must connect it to your circuit. There are 10 pins on the connector, one is unused. The LCD has four control signals (Clock, Data, Reset, Chip Select), two 3.3V inputs, two grounds, and a backlight input. The LCD driver circuitry runs on 3.3V as do the control signals. However, the backlight requires a higher voltage around 7V. Using a 1K ohm resistor between the backlight power and a 12V power supply seems to work well, the voltage is around 6-6.5V which makes it bright enough to use.
Pinout:
1: Vcc (3.3V)
2: Reset
3: Data
4: Clock
5: Chip Select
6: Vcc (3.3V)
7: Unused (Not Connected)
8: Ground
9: Ground (Backlight LED -)
10: Backlight LED +
Since the LCD protocol is 9-bit SPI, you cannot use the hardware SPI interface found on many microcontrollers (including the AVR series microcontrollers) as they often only support 8-bit mode. This means that you will probably have to implement a software SPI output. Electrically, this means you can connect the four control lines to any unused I/O pins on your microcontroller. Your microcontroller must be running at 3.3V to connect the lines directly, otherwise add 10K ohm resistors on each line to limit the current going into the LCD.
Pinout:
1: Vcc (3.3V)
2: Reset
3: Data
4: Clock
5: Chip Select
6: Vcc (3.3V)
7: Unused (Not Connected)
8: Ground
9: Ground (Backlight LED -)
10: Backlight LED +
Since the LCD protocol is 9-bit SPI, you cannot use the hardware SPI interface found on many microcontrollers (including the AVR series microcontrollers) as they often only support 8-bit mode. This means that you will probably have to implement a software SPI output. Electrically, this means you can connect the four control lines to any unused I/O pins on your microcontroller. Your microcontroller must be running at 3.3V to connect the lines directly, otherwise add 10K ohm resistors on each line to limit the current going into the LCD.
