PDA

View Full Version : How to read a SPI serial interface



Sharky
- 2nd March 2005, 07:15
Hi,

I have bought a eval board for the new Qwheel touch sensor chip from Qprox.
But now I would like to use a 16F628 to read and send data to the chip.

How do I do that?

Here is a link so you can see what I am talking about: www.qprox.com/products/qwheel_qt510.php

I am new in PBP so maybe this is a simple question
but I don't understand the SPI interface.

What I whant to do is to read the seriel data from the Qwheel chip
with the PIC then convert them to an PWM output to control a light dimmer.

Sharky

Sharky
- 6th March 2005, 07:44
Hi,

Now I found some info on Microchips site.

If anyone else would like to know what SPI means
then take a look at this PDF doc. http://ww1.microchip.com/downloads/en/DeviceDoc/spi.pdf

Jon Chandler
- 22nd March 2005, 23:54
I've been looking at the Q-Wheel too. Looks like a neat part, especially where you have a menu to scroll through. I like that sliding your finger can give one response, while pressing an area can give another action.

Let us know if you make any progress.

Jon

mister_e
- 23rd March 2005, 04:14
SPI interface should not be really hard to understand. The best way to learn it, buy a eeprom like 93c06,93c46 or 93c56, write some data and read them back. Once you'll be confortable with the IC and the datasheet, jump to your qwheel... they're not much hard than a external eeprom.

you'll need 4 i/o and a bit of patience to understand and make an SPI interface work. See Melabs website SPI.bas or something like that that write and read data to eeprom

good luck