How to read a SPI serial interface


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2005
    Location
    Denmark
    Posts
    31

    Question How to read a SPI serial interface

    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
    *Let's do it*

  2. #2
    Join Date
    Mar 2005
    Location
    Denmark
    Posts
    31


    Did you find this post helpful? Yes | No

    Lightbulb How to read/write SPI

    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
    *Let's do it*

  3. #3
    Jon Chandler's Avatar
    Jon Chandler Guest


    Did you find this post helpful? Yes | No

    Default

    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

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Replies: 33
    Last Post: - 19th March 2010, 03:02
  2. Cleaning up code
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2009, 07:14
  3. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 11:20
  4. Serial interface with RFID reader
    By brid0030 in forum Serial
    Replies: 8
    Last Post: - 23rd January 2007, 06:23
  5. Serial Peripheral Interface (SPI)
    By O2_Guy in forum Serial
    Replies: 1
    Last Post: - 22nd March 2006, 20:01

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts