pallisi 1 Posted November 29, 2014 Share Posted November 29, 2014 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. Quote Link to post Share on other sites
timotet 44 Posted November 29, 2014 Share Posted November 29, 2014 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 Quote Link to post Share on other sites
pallisi 1 Posted April 5, 2015 Author Share Posted April 5, 2015 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! Quote Link to post Share on other sites
timotet 44 Posted April 5, 2015 Share Posted April 5, 2015 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 Quote Link to post Share on other sites
pallisi 1 Posted April 6, 2015 Author Share Posted April 6, 2015 Hi @@timotet Thank you very much! I do not have the touch screen one. I will test this as soon as possible. Thank you again! Quote Link to post Share on other sites
pallisi 1 Posted April 6, 2015 Author Share Posted April 6, 2015 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? Quote Link to post Share on other sites
pallisi 1 Posted April 6, 2015 Author Share Posted April 6, 2015 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? Quote Link to post Share on other sites
timotet 44 Posted April 6, 2015 Share Posted April 6, 2015 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 Quote Link to post Share on other sites
pallisi 1 Posted April 8, 2015 Author Share Posted April 8, 2015 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. Quote Link to post Share on other sites
timotet 44 Posted April 8, 2015 Share Posted April 8, 2015 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 bluehash 1 Quote Link to post Share on other sites
pallisi 1 Posted April 8, 2015 Author Share Posted April 8, 2015 @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. timotet 1 Quote Link to post Share on other sites
timotet 44 Posted April 8, 2015 Share Posted April 8, 2015 Great! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.