Jump to content
Sign in to follow this  
pallisi

LCD TFT Boosterpack

Recommended Posts

Hi everybody,

 

Firstly I must say that this forum helps me a lot with my projects with c2000. Nowadays, I am working with a project and I need some advice regarding a TFT Boosterpack.

 

The project requires that the user can see some information in a TFT LCD screen. I must confess that I have little idea about serial protocols and how to drive a TFT. 

 

I would like to suggest me:

a ) a compatible booster pack with a TFT display. 

b )  some initial readings about the interaction of the c2k with a tft display.

 

Thank you very much for your help.

Share this post


Link to post
Share on other sites

Hi @pallisi

 

I was able to get one of the booster packs designed by @RobG to work with hardware spi with out too much trouble.

That was a while ago and I know Rob has designed several new boards that would I'm sure work.

He has a library that is easy to work with, and get's you up and running fast.

 

Here is a link to his Tindie page:

https://www.tindie.com/stores/RobG/?ref=offsite_badges&utm_source=sellers_RobG&utm_medium=badges&utm_campaign=badge_small

Share this post


Link to post
Share on other sites

Hi timotet,

 

I have managed to acquire the proposed tft from Robg. But I am a little confused with the spi configuration etc. is it possible to upload a css project which implements the demo that you have uploaded to youtube.

 

Thank you in advance!

Share this post


Link to post
Share on other sites

Hi @@pallisi

 

Ok I had to look for it. It's been awhile , and looking back the code is a mess. I commented it pretty well though.

Im not sure which LCD controller you have but the one I have is ILI9225B. So if thats what you have it should work out of the box. The attached project is set up for software chip select, its the same pin as hardware chip select which is noticeably faster. I suggest trying both. You'll just have to comment or uncomment a couple of lines to get it working.

 

Also if you have the 2.2" lcd with touch I have some code for that too. One thing at a time though.

 

good luck

Tim

C2000_RGlcd_SPI.zip

Share this post


Link to post
Share on other sites

It seem that I did not manage to successfully make it work. It says that an error encountered during linking. It seem that it cannot find the _SPI_write8 function. I have managed to install the latest RTOS and xdc tool, because it was saying that are needed, but with no result. Any ideas?

Share this post


Link to post
Share on other sites

Ok. Problem solved partially. My spi.h did not have the SPI_write8 function, I found it and copied it. Now the project compiles without any errors but... The screen lights up, but nothing appear on it. I have the version 3 without the touch panel. Any ideas?

Share this post


Link to post
Share on other sites

Hi @pallisi,

 

Nice work on finding the SPI_write8 function.

I don't know why some of the libraries have it and some don't.

 

Since you have the V3LCD , you will have to configure it like the V2LCD. Thats the one I have.

Make sure MISO, MOSI, SCLK, and CE go to the correct pins on the boosterpack. It looks like its configurable with

solder jumpers on your V3LCD.

 

Also the lcd controller on the V2LCD is the ILI9225, is yours the same? Or is it the ILI9341? If you have the later

you will have to grab Rob'Gs library (http://forum.43oh.com/topic/4352-universal-color-lcd-graphics-library-2/#entry39090) and edit in the initialization code for the controller you have.

 

good luck

Tim

Share this post


Link to post
Share on other sites

Hi @pallisi,

 

Nice work on finding the SPI_write8 function.

I don't know why some of the libraries have it and some don't.

 

Since you have the V3LCD , you will have to configure it like the V2LCD. Thats the one I have.

Make sure MISO, MOSI, SCLK, and CE go to the correct pins on the boosterpack. It looks like its configurable with

solder jumpers on your V3LCD.

 

Also the lcd controller on the V2LCD is the ILI9225, is yours the same? Or is it the ILI9341? If you have the later

you will have to grab Rob'Gs library (http://forum.43oh.com/topic/4352-universal-color-lcd-graphics-library-2/#entry39090) and edit in the initialization code for the controller you have.

 

good luck

Tim

 

Hi @@timotet,

 

Thank you very much for your help. I have v3 with the ILI9341 controller. So I grabbed Robg library and after some modifications I have no errors or warnings, the program compiles fine but I still do not get anything. I have started to suspect that the pre-soldered jumpers maybe are wrong. I will ask Rob as well.

Share this post


Link to post
Share on other sites

Hi @@pallisi,

 

It sounds like the pin assignments are wrong, Its pretty easy to check though, only 4 pins.

From the picture on RobG's tindie page it looks like the 4 configurable jumpers are:

JP1 for the display chip select, you want to jumper that to gpio19 (J2_2) on your c2000 launchpad.

JP2 for for the D/C select, you want to jumper that to gpio12 (J2_3) on your c2000 launchpad.

JP3 is for the backlight, It looks like that could go to either J1_8, or J1_10 on the c2000 launchpad.

Both of which are ADC inputs , but they can be configured as gpio. Thats not in the code I sent you though.

You may want to jumper it to 3.3v for now. The booster pack I have seems to have the backlight hardwired.

JP4 is for the SD card chip select, thats for later.

 

I know the C2000 LP is setup by default to use the BP standard for spi, same as the msp430 and other LPs use that being

MISO on pin J2_6, MOSI on J2_7, SCLK on J1_7.

 

When I used the Booster pack on the C2000 I remember having to jumper the CS an DC lines.

 

Good luck

Tim

Share this post


Link to post
Share on other sites

@timotet 

 

Thank you very much. I managed to make it work by reassigning the pins from the code. I was using wrong schematics that's why I couldn't find the solution. I will soon post the code in order to share it with the community.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...