Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

TOuch Screen COntroller ADS 7846

Status
Not open for further replies.

keila

Newbie level 6
Joined
Feb 4, 2006
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
INDIA
Activity points
1,363
ads7846

Hai!

I'm working on developing a touch panel interface to a graphic display.
The resolution of touch panel is 255*255.
THe touch screen controller i'm using is ADS 7846 which works on SPI.
The host controller is AT89c51RD2.
I had written a C code for calculation of the position of touch on touch panel.
The o/p i get is the coordinates in hexadecimal format.
Now coming to the problem,

I'm getting coordinates only in the range fron (00 to 1F), but not from (00 to FF).
So any one could help me in software?
Or anyone who can give me a better code?

Thanks in Advance.
 

7846 touch

Please check the datasheet of ADS7846: it's resolution is 12 bit (0x00 - 0x0FFF)
So perhaps you've got a problem with the representation of the bits or with the reception via SPI. A good way to check this is to you use a DSO at the SPI.
 

ads7846 code

Tq for ur reply.

But 7846 is not limited to 12 bit resolution we can have 8 bit resolution also and it is programmed via the control byte needed for coordinates generation by the A/D.

There is a "MODE" bit in the control byte, with which we can select either 12 bit resolution or 8 bit resolution, and I took 8-bit resolution.

My doubt is, if we checked for 8 bit resolution, do I get the XY coordinates in the range from (0 to 255) or from (0 to 4096)?
 

programming spi ads7846

can u tell me what mode and speed of SPI u have used to interface with ads7846
i am also usign ARM LPC2129 to interface with it but i am very confuse which mode should be used
can u help me
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top