cancel
Showing results for 
Search instead for 
Did you mean: 

How to, 9bit SPI for a LCD

frank5
Associate II
Posted on February 22, 2009 at 12:09

How to, 9bit SPI for a LCD

13 REPLIES 13
ping
Associate II
Posted on May 17, 2011 at 12:52

Please use synchronous mode of USART. Details are described in section 24.3.8 of RM0008.

philippe239955
Associate
Posted on May 17, 2011 at 12:52

Hi,

I try to interface the same LCD on a STM32f103RB and I have already test your method to send the ninth bit. But I can't manage the LCD.

I think I have a problem with the SPI setting.

Can you tell me how you have configured the SPI ?

Thank you in advance :p

PS : This is my actual SPI configuration :

- no bidimode

- no CRC

- 16-bits data frame format

- Full duplex

- Software slave management disable (I use the GPIO to set and reset NSS)

- MSB transmitted first

- fPCLK/256

- CK to 1 when idle and the second clock transition is the first data capture edge

frank5
Associate II
Posted on May 17, 2011 at 12:52

Hi Philippe,

Source code to drive this LCD can be found here:

http://gravitech.us/MicroResearch/Others/LCD6100/LCD6610_NPX_STM32F103.zip

Frank

philippe239955
Associate
Posted on May 17, 2011 at 12:52

Hi Frank,

Thanks to you I managed to use the LCD :-]

Thank you again !

Kind regards