CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

XPT2046 Touch Controller

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Sterngleiter



Joined: 07 Jan 2013
Posts: 90

View user's profile Send private message

XPT2046 Touch Controller
PostPosted: Thu Aug 21, 2014 10:53 am     Reply with quote

Hello,
I need help. I have so bought on ebay a Tft but I do not know how I can control XPT2046. I absolutely do not understand data sheet please help me.
ftp://imall.iteadstudio.com/LCD_Panel/IM120905004/DS_XPT2046.pdf


http://www.ebay.de/itm/3-2-TFT-320-x-240-LCD-Display-Module-with-Touch-Panel-PCB-Adapter-/271233627387?pt=Notebook_Komponenten&hash=item3f26c8b4fb
I have Not any Code
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Thu Aug 21, 2014 11:38 am     Reply with quote

Hi,

Did you see this thread in the forum archives? Was it helpful?

http://www.ccsinfo.com/forum/viewtopic.php?t=48085&highlight=2046

John
Sterngleiter



Joined: 07 Jan 2013
Posts: 90

View user's profile Send private message

PostPosted: Thu Aug 21, 2014 11:49 am     Reply with quote

It is Not the same,I need enlightenment, it would be very nice if someone would take
temtronic



Joined: 01 Jul 2010
Posts: 9245
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Aug 21, 2014 1:02 pm     Reply with quote

Note: this is a 3Volt device, so choose an 'L' version PIC or at least one that will operate at 3 volts.

That display has both LCD and a touch screen so you need to break your project into two parts.

1) sending data to the LCD. It uses an SSD1289 'controller' chip, so use Google to locate a 'driver' for it. There are several, though I didn't see a CCS C one in the brief time I looked......it does appear to require a 16 bit data bus as the Ebay picture was helpful with the pinout.

this link....
http://320volt.com/en/ts8001-tft-grafik-glcd-ornegi-pic18f4680-ccs-c/
... may be useful, appears to be a good starting point ?

2) sending touchscreen data to the PIC. This LCD uses SPI to communicate to the touchscreen peripheral. Again let Google be your friend and locate a driver.

Without having a unit here, I can't code a driver for it, as I have no way of testing it. I strongly suggest getting #1 done first, sending data to the LCD.

hth
jay
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Aug 21, 2014 3:01 pm     Reply with quote

The simple rule to prevent this pain, is don't buy something unless you
have a driver for it ahead of time. Or at least, you must have a good
example driver that can easily be converted to CCS.
KansaiRobot



Joined: 25 Nov 2015
Posts: 5

View user's profile Send private message

PostPosted: Wed Nov 25, 2015 12:33 am     Reply with quote

I know this is old, but when you say "driver" you mean the software to control the driver , right?

XPT2046 is just SPI. So if you write SPI code it is supposed to work.
(I say supposed because right now, my code is not working Embarassed )

Should I start a new thread? (because it is about this very same controller I thought maybe this thread would be ok
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Nov 25, 2015 1:21 am     Reply with quote

Yes, by 'driver', I meant a software driver (source code).

A new thread for your problem would be better.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group