twr-lcd start address

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

twr-lcd start address

667 Views
ankurchauhan
Contributor I

I'm using k70 tower board with twr-lcd (using flexbus ). flexbus dc address is 0x60000000 and flexbus base address is 0x60010000.

I'm writing command to dc address and data to base address. is it ok??

or is there any other specific lcd address where we have to write the data.

or any sample code for flex bus 8 bit data transfer(character values not image) to lcd.

Regards

Ankur

0 Kudos
2 Replies

449 Views
LuisCasado
NXP Employee
NXP Employee

Hello Ankur,

You can have a look to eGUI graphic library

www.freescale.com/egui

TWR-K60 examples use Flexbus with the TWR-LCD. You can port the code to K70.

CS is configured as you said:

  #define D4DLCD_FLEX_BASE_ADDRESS  0x60010000

  #define D4DLCD_FLEX_DC_ADDRESS    0x60000000

  #define D4DLCD_FLEX_ADRESS_MASK   0x00010000

So you can write to data/command with the bit ‘x'   000x 0000 0000 0000 0000 , that is the bit 16 in the address.

If you look at the schematic (TWR-LCD) DC is connected to AD16, as expected.

image001.png

Luis

449 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Ankur,

there is not an exact example of what you are looking for. But you may find the examples in the thread below useful.

FlexBus in 16 bit mode and 8 bit access

Regards,

Carlos