From: Dave H. <dhy...@gm...> - 2008-10-28 14:42:05
|
Hi Haritz, On Tue, Oct 28, 2008 at 5:42 AM, Haritz <hza...@fa...> wrote: > > Hi! > I want to read the A/D register from the TSC2003 Touch Screen Controller. > > I have read these posts, > http://www.nabble.com/I2C-Setup-for-Verdex-td18807158.html > http://www.nabble.com/tsc2003-userspace-driver-td18834088.html > and > http://www.nabble.com/Help%3A-i2c-with-console-vx-td17563347.html#a17563347 > > but I don't know how to find the address of the register where the data is > stored. This page: <http://focus.ti.com/docs/prod/folders/print/tsc2003.html> hasa link to the datasheet for the TSC2003. Page 16 shows the "register map" (aka commands). > I think it is 0x0A, but I don't know for sure and I don't know where to > find it. That seems incorrect according to the datasheet. > The dmesg says that the tsc2003 i2c address is 0x48. See attached dmesg > output. http://www.nabble.com/file/p20206503/consoledmesg.txt > consoledmesg.txt > > Whenever I try to access the tsc2003 using the i2c program written by Dave > Hylands, I get the following error... > i2c 0x48 RecvByte2 > ERROR: I2cSetSlaveAddress: Error trying to set slave address to 0x48 (16 > Device or resource busy) > 0x3b3b > > How can I solve this? I think that once a proper driver is loaded and claiming a given address, then the i2c program can no longer be used to access that device. You need to use the driver for the device in question. I believe that you could unload the tsc2003 driver and then be able to use the i2c utility. -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ |