lpcware

Configuring EMC for 8bit parallel LCD connection

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by shivaraj on Mon Oct 28 23:15:50 MST 2013
Hi All,

I'm using LPC1788 customized board with LCD connected thru 8bit parallel lines.

I want to connect LCD using EMI.

I'm doing the following configuration for EMC for CS3
**************< Code begin > *******************************
        TIM_TIMERCFG_Type TIM_ConfigStruct;
EMC_STATIC_MEM_Config_Type config;

        config.CSn = 3;
config.AddressMirror = 0;
config.ByteLane = 1;
config.DataWidth = 8;
config.ExtendedWait = 0;
config.PageMode = 0;
config.WaitWEn = 0;
config.WaitOEn = 0;
config.WaitWr = 0;
config.WaitPage = 0;
config.WaitRd = 0;
config.WaitTurn = 0;
StaticMem_Init(&config);

    // init timer
TIM_ConfigStruct.PrescaleOption = TIM_PRESCALE_USVAL;
TIM_ConfigStruct.PrescaleValue= 1;

// Set configuration for Tim_config and Tim_MatchConfig
TIM_Init(LPC_TIM0, TIM_TIMER_MODE,&TIM_ConfigStruct);
TIM_Waitms(100);

//delay time
TIM_Waitms(10);

    TIM_DeInit(LPC_TIM0);
**************< Code End > *******************************


For configuring the LCD driver the DCX,WEX,CSX control signals should be as same as shown in attached document.
A23 line is used as "LCD_DCX" signal, ( signal - "DNC_SCL" in the attached pic )
EMC_nOE is used as "LCD_RDX" signal,  ( signal - "NRD_E" in the attached pic )
EMC_nWE is used as "LCD_WEX" signal,  ( signal - "NWR_RNW" in the attached pic )
EMC_nCS3 is used as "LCD_CSX" signal,  ( signal - "NCS" in the attached pic )
and I'm using
0x9c000000 and 0x9c800000 address for toggling "LCD_DCX" ( since it is connected to A23 line )

Please help me in configuring the EMC for the signal waveform as shown in attached snap.

Regards,
Shivaraj

Outcomes