imkaushal
Newbie level 1
Hi all,
I am trying to use a NEC 4.3" TFT LCD with FriendlyArm Mini2440 dev board ( normally shipped with 3.5" or 7" TFT LCD).
The test code provided by FriendlyArm contains support for 3.5" and 7" TFTs but not for a 4.3" TFT LCD.:evil:
In the code directory, I found a file option.h which contains the configurations for different LCD sizes and types.
I want to add 4.3" TFT configuration in it. But can't understand the format.:roll:
The datasheet for 3.5" TFT LCD is here: NL2432HC22.pdf
And the config for 3.5" as defined in the option.h file is as below:
These macros are used in an init function inside another file, lcd.c as below:
The datasheet for S3C2440 is here.
I dont understand what values to define for:
1. LCD_PIXCLOCK
2. LCD_HSYNC_LEN
3. LCD_VSYNC_LEN
The test code can be found here.
The 4.3" TFT LCD datasheet is here.
Thanks in advance for any help!!! :grin:
Kaushal
I am trying to use a NEC 4.3" TFT LCD with FriendlyArm Mini2440 dev board ( normally shipped with 3.5" or 7" TFT LCD).
The test code provided by FriendlyArm contains support for 3.5" and 7" TFTs but not for a 4.3" TFT LCD.:evil:
In the code directory, I found a file option.h which contains the configurations for different LCD sizes and types.
I want to add 4.3" TFT configuration in it. But can't understand the format.:roll:
The datasheet for 3.5" TFT LCD is here: NL2432HC22.pdf
And the config for 3.5" as defined in the option.h file is as below:
Code:
/**************************************************************
NAME: option.h
DESC: To measuure the USB download speed, the WDT is used.
To measure up to large time, The WDT interrupt is used.
HISTORY:
Feb.20.2002:Shin, On Pil: Programming start
Mar.25.2002:purnnamu: S3C2400X profile.c is ported for S3C2440X.
**************************************************************/
#ifndef __OPTION_H__
#define __OPTION_H__
//--by Customer--
//#define LCD_N35
//#define LCD_L80
#define LCD_T35
//#define LCD_X35
//#define LCD_A70
//#define LCD_VGA1024768
//--end of by Customer--
#if defined(LCD_N35) + defined(LCD_L80) + defined(LCD_T35) + defined(LCD_A70) + defined(LCD_VGA1024768) + defined(LCD_X35)!= 1
#error Must define only one LCD type
#endif
#if defined(LCD_N35)
#define LCD_WIDTH 240
#define LCD_HEIGHT 320
#define LCD_PIXCLOCK 4
#define LCD_RIGHT_MARGIN 36
#define LCD_LEFT_MARGIN 19
#define LCD_HSYNC_LEN 5
#define LCD_UPPER_MARGIN 1
#define LCD_LOWER_MARGIN 5
#define LCD_VSYNC_LEN 1
These macros are used in an init function inside another file, lcd.c as below:
Code:
rLCDCON1 = (LCD_PIXCLOCK << 8) | (3 << 5) | (12 << 1);
rLCDCON2 = (LCD_UPPER_MARGIN << 24) | ((LCD_HEIGHT - 1) << 14) | (LCD_LOWER_MARGIN << 6) | (LCD_VSYNC_LEN << 0);
rLCDCON3 = (LCD_RIGHT_MARGIN << 19) | ((LCD_WIDTH - 1) << 8) | (LCD_LEFT_MARGIN << 0);
rLCDCON4 = (13 << 8) | (LCD_HSYNC_LEN << 0);
The datasheet for S3C2440 is here.
I dont understand what values to define for:
1. LCD_PIXCLOCK
2. LCD_HSYNC_LEN
3. LCD_VSYNC_LEN
The test code can be found here.
The 4.3" TFT LCD datasheet is here.
Thanks in advance for any help!!! :grin:
Kaushal