5329EVB LCD controller

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

5329EVB LCD controller

1,188 Views
alark51
Contributor I
Hi,

I've successfully interfaced an Optrex 6.5" LCD to this board and I've been able to get an image on the panel using the LCDC example source provided from freescale.  I am having a bit of trouble using the BGLUT register.

The PCR register is set for 8bpp. I am able to put the image up on the panel and manipulate the cursor.

I would just like to know if I missing a step, do I have to set a register to display the BGLUT?  This is my first time programming a LCD so any input would be appreciated.

my code
Code:
volatile uint32 *LUT_BG;MCF_LCDC_LVPWR = 0x00000280;for(i=0; i < (640); i++){    LUT_BG = (uint32*)0xFC0AC800 + i;    *LUT_BG = *(uint32*)(0x00000003);}

Thanks,
Adam
 

Labels (1)
0 Kudos
4 Replies

472 Views
AdamS
Contributor I
Hello,
 
I think that you have filled BGLUT space using only one colour.
you can use smth like below:
 
  BGLUTAdd = (uint32*)0xFC0AC800; //set index for pointer
 *BGLUTAdd ++ = color_1;  
 *BGLUTAdd ++ = color_2;  
.
.
.
.
//now fill the rest of the space
 while (BGLUTAdd <(uint32*)0xFC0ACC00)  *BGLUTAdd ++ = color_n; 
 
BGLUT adn GWLUT are used only in 4/8 bit modes. FOr higher modes mapping RAM is bypassed.
 
And one more:
 
please remember that for 4/8 bit modes mapping RAM must be filled with 18 bit color encoding words.
 
 
B.R. - Adam
0 Kudos

472 Views
kaipaulus
Contributor III

Dear Adam,

how can i set the BGLUT Look-Up Register in K70? I try it with the following code. But this node work.

                             

    volatile uint_32 *LUT_BG;
   

LUT_BG = (uint_32*)0x400B6800;

*LUT_BR++ = color_1;

....

Thanks

Kai Paulus

0 Kudos

472 Views
TomE
Specialist II

1 - You're replying to a post from nearly 5 years back.

2 - You're using a K70, and this is the ColdFire forum. Search the Kinetis forum for "k70 lcdc" and post there.

3 - Your code looks fine. What "node work"? You've probably got bugs elsewhere.

Tom

0 Kudos

472 Views
kaipaulus
Contributor III

Dear Tom,

i have post my question in the K70 Forum. My problem is, i can not change the contents of the Background Look-Up Tabelle with my code. It seems that this area is write-protected.

Kai

0 Kudos