Here is LCD from Nokia N70 mobile phone.
LCD specifications:
- Type: TFT, 262K colors (18 bit/pixel).
- Resolution : 208 x 176 pixels.
- Size: 2.1 inches.
- Controller: MagnaChip MC2PA8201 compatible.
- Backlight: 4 LEDs.
- Connector: 24pin with 0.4mm pitch.
The connector is the same that I used with Nokia E61 LCD.
Connector schematics from the datasheet:
The adapter board with mounted connector is the same that I used with Nokia E61 LCD, but pinout is different. I soldered on a hot plate connector to the adapter board, and attached adapter board with two bolts to a bigger plastic board. The LCD is held in place with double-sided adhesive tape:
I connected it to my STM32F103VET6 microcontroller development board HY-STM32, communication is done with FSMC. (Communication interface is 8 bit parallel 8080 type). For backlight I used self-made ON Semiconductors NCP5007 LED driver board.
I also made a simple adapter board that connects HY-STM32 board and Nokia N70 board:
My setup:
Pinout from the datasheet and connections to STM32 board:
Pin No | Symbol | STM32 board | Description |
---|---|---|---|
1 | GND | 3.3V | Ground |
2 | WRX | PD5 | Write (STM32 FSMC NWE) |
3 | GND | GND | Ground |
4 | D0 | PD14 | Data 0 (STM32 FSMC D0) |
5 | D1 | PD15 | Data 1 (STM32 FSMC D1) |
6 | D2 | PD0 | Data 2 (STM32 FSMC D2) |
7 | D3 | PD1 | Data 3 (STM32 FSMC D3) |
8 | GND | GND | Ground |
9 | VDDL | 3.3V | Power supply for digital circuit (3.3V) |
10 | VDD | 3.3V | Main power supply (3.3V) |
11 | GND | GND | Ground |
12 | LEDIN | – | Connected to external NCP5007 backlight board |
13 | LEDOUT | – | Connected to external NCP5007 backlight board |
14 | GND | GND | Ground |
15 | CSX | PD7 | Chip Select (STM32 FSMC NE1) |
16 | D/CX | PD11 | Command(L) / Data(H) (STM32 FSMC A16) |
17 | GND | GND | Ground |
18 | D7 | PE10 | Data 7 (STM32 FSMC D7) |
19 | D6 | PE9 | Data 6 (STM32 FSMC D6) |
20 | D5 | PE8 | Data 5 (STM32 FSMC D5) |
21 | D4 | PE7 | Data 4 (STM32 FSMC D4) |
22 | TE | – | Tearing Effect output signal |
23 | RDX | PD4 | Read (STM32 FSMC NOE) |
24 | RESX | PE1 | Reset |
Though datasheet shows that VDD voltage is 2.5V and VDDL voltage is 1.8V, both seems to work with 3.3V without problems. Backlight voltage requirement of 14V is handled by external backlight driver board.
This display has some differences from original MagnaChip MC2PA8201 datasheet:
- LCD resolution is lower.
- parameters for COLOUR_SET command are different.
Here is screenshot with registers right after initialization:
TE pin outputs “Tearing Effect Output signal”. I measured frame frequency with logic analyzer and got 74Hz:
The source code of NokiaN70 demo is available at github.com: Nokia_N70.
The demo displays:
- Information about display.
- Basic colors.
- Gradient with basic colors
- Gradient with basic colors for all color modes (18bit, 16bit and 12bit).
- 5 JPEG pictures, each one is displayed 3 times at different color mode (18bit, 16bit and 12bit).
- 4 gamma curves.
- Reading from controller registers.
- Reading of display memory.
- Hardware scrolling.
- Partial mode.
- 4 orientation modes with 10K text lines.
- Sleep test.
- Display on/off test.
- Display inversion test.
- Idle mode.
- 1K colored rectangles.
- 3D fire.
Video showing demo:
Can be used this method for atmega?
thank you
Yes, with software bit banging it is possible, just more work needs to be done, STM32 FSMC does this automatically.
If possible, tell me how the connections and details for atmega
I want to use Atmega for display
thank you
Just like the others mcu, data port d0-7 to portx0-7, wr dc cs rst to other port and thats it. You just need to run it on 3,3V max. Atmega can usualy still run on 16Mhz at 3,3V. There is even bascom and C code for this driver.
Great work.
I have nokia n72 does it has the same lcd?
Yes, they are the same