SPC to PIC


Closed Thread
Results 1 to 5 of 5

Thread: SPC to PIC

  1. #1
    Macgman2000's Avatar
    Macgman2000 Guest

    Default SPC to PIC

    Hello ALL,

    I am trying to find information on decoding SPC serial format of a Chinese made digital caliper. I want to interface it to a PIC and display the measurements of the calipers on at large LCD. Does anyone have any helpful info, it would be very much appreciated.

    Best Regards,
    Nick

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Nick,

    THIS could help you to get started
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  3. #3
    Macgman2000's Avatar
    Macgman2000 Guest


    Did you find this post helpful? Yes | No

    Question SPC to PIC questions!!!

    Thanks! The information is enlightening....but Now I have more questions than when I started...hahaha.

    Like..

    1). PBPro SHIFTIN does not work for > 50khz clock. The digital calipers output a clock of 90khz. How do I set up a synchronous serial input given those requirements?

    2). I am confused as to the actual output data rate of the calipers. The project deals with interfacing to a PC so my conclusion is that the 9600bps is to the PC? or am I incorrect?

    HELP!!!!!

    Best Regards,
    Nick

  4. #4
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Nick,
    PBPro SHIFTIN does not work for > 50khz clock. The digital calipers output a clock of 90khz. How do I set up a synchronous serial input given those requirements?
    as of the information I have gathered so far the caliper interface operates @ 90kHz.

    And it atcs as SPI-Master, so SHIFTIN wouldn't work, as it claims to be Master, not Slave
    (The Caliper provides the clock, not the PIC)

    You will have to write your own SPI-Slave Routines.

    I am confused as to the actual output data rate of the calipers. The project deals with interfacing to a PC so my conclusion is that the 9600bps is to the PC? or am I incorrect?
    That is absolutely correct!


    [qoute]
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  5. #5
    Join Date
    Aug 2005
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    Nick,
    I had a project a few years ago interfacing four Mitutoyo dial indicators with a basic stamp uc ,outputing the results on a lcd.The indicators used the SPC data output,which I understand does not have a standard protocol.Basically the uc pulls the request line low on the indicator,after a period of time it sends a clock pulse and data stream to the uc.The uc must shift in the data on the clock.This was not reliable using the basic stamp,it required an external shift register to work properly.Using a pic is easier,it needs only to use the interrupt input for the clock pulses.If you think this is what you need ,I can gather the info for you.The demo program I wrote in Picbasic pro inputs one indicator and outputs to the pic serial port.I have a document that describes the Mitutoyo output stream as well.

    I didn't use the shiftin instruction,if I remember correctly it would it would not work because of the interrupt requirment.

    Later
    Paul

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

Members who have read this thread : 0

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