LCD via flexbus in bareboard project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LCD via flexbus in bareboard project

660 Views
ankurchauhan
Contributor I

I'm using twr-k70f120m kit with twr-lcd module and trying to configure the lcd via flexbus(16 bit).

I'm not using the LCD controller bcoz the LCD module which i had don't support the lcd controller.

my project is a bareboard project without processor expert.

In flexbus ,i am using chip select 0(CS0) with the base address 0x60000000 and data address 0x60010000.

register setting are acc. to datasheet. but i'm not enabling any  pll just enabling the flexbus clk using sim_ SCG7.

SIM_SCGC5 = SIM_SCGC5_PORTA_MASK | SIM_SCGC5_PORTB_MASK | SIM_SCGC5_PORTC_MASK | SIM_SCGC5_PORTD_MASK | SIM_SCGC5_PORTE_MASK;
SIM_SCGC7 |= SIM_SCGC7_FLEXBUS_MASK;
SIM_SOPT2 |= SIM_SOPT2_FBSL(3);
SIM_CLKDIV1 |= SIM_CLKDIV1_OUTDIV3(3);

FB_CSAR0 = FLEX_DC_ADDRESS;
FB_CSMR0  = FLEX_ADRESS_MASK | FLEX_CSMR_V_MASK;
FB_CSCR0 = FLEX_CSCR_MUX_MASK | FLEX_CSCR_AA_MASK | FLEX_CSCR_PS1_MASK;
FB_CSPMCR = 0x02200000;

and lcd initialization is according to the example given by freescale.

but still its not working ,not bale to display anything on screen

if anyone have some sample code of flexbus to use lcd for bareboard project plz send.

Regards

Ankur

0 Kudos
4 Replies

413 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Ankur,

I think this question is duplicated twr-lcd start address

You may keep commenting on the other thread if you still have questions.

Regards,

Carlos

0 Kudos

413 Views
ankurchauhan
Contributor I

Hi Carlos:

sorry for starting a new thread.

Is eGui needed for twr-lcd configuration if i'm not using LCDC controller ??

what this eGui exactly??

Regards and Thanks

ANKUR

0 Kudos

413 Views
EarlOrlando
Senior Contributor II

Hello Ankur,

The eGUI is a free lightweight graphic driver for Kinetis, Coldfire, HCS08 and HCS12 MCUs. It includes since the low level drivers support to an API to build your graphic objects. It runs either in baremetal or in a RTOS.

I recommend you to take a look into the introductory document that can be downloaded in the eGUI site www.freescale.com/egui.

pastedImage_2.png

Please let me know if this information is useful for you.

Best regards,

Earl.

413 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Ankur,

I am sorry, I have no experience on eGUI. Probably EarlOrlando​​​ can comment on this.

Regards,

Carlos

0 Kudos