Interfacing with Qprox Touch slider with SPI
Jason Short
Posts: 21
I am trying to interface with the Qprox 401 touch slider. I have the eval kit and I'm trying to get the timing right but it's been difficult. I can get the basic data out of it using the SHIFTIN command but I'm not able to do any advanced timing. The chip can take input and output commands on the rise and fall of the clock cycle. My question is this: is SHIFTIN/SHIFTOUT adequate? Or do I have another option?
Any help would be appreciated.
Thanks,
Jason
The Datasheet:
http://www.qprox.com/downloads/datasheets/qt401_1004.pdf
Any help would be appreciated.
Thanks,
Jason
The Datasheet:
http://www.qprox.com/downloads/datasheets/qt401_1004.pdf
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
I would like to interface with the chip exactly how it is diagrammed but, without manually controlling every aspect of timing, I don't know how to do it. I've also never done it manually before but I read an article here that shows I2C done manually on a stamp. http://www.phanderson.com/stamp/tutorial_8.html
Perhaps someone has had some experience making these tradeoffs before?
Thanks,
Jason
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Jason
http://www.qprox.com/downloads/datasheets/qt60248_402.pdf
Thank you.
I've left out most of the code I was using the slider for but you can get the idea. I do get the occasional null or 1 back from the slider so I am saving the good value and filtering it a bit. The data-sheet recommends sending a drift command every once in a while. I've shown one command which is an end calibrate mode. It takes a half second to finish so I just pause for a moment.
Many commands don't need the pause or the check since I already check the DATAReady in the main function.
Right now I use the value to drive a set of 6 leds with the index number from a LOOKDOWN command. I plan on sending the value through the serial port to a Flash prototype on my computer.
Jason
Post Edited (Jason Short) : 12/31/2005 7:30:04 PM GMT