Need help with a SCP1000 Pressue Sensor


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2008
    Posts
    3

    Default Need help with a SCP1000 Pressue Sensor

    Hi every one

    I am trying to read Pressue Sensor data from a SCP 1000 (SPI) witha 16f877 and send it to a serial port. Both the sensor and the serial port are working I can read the raw data from the chip and send it to the serial port...No problem

    The issue I have is that the preasue range for this sensor is 30,000 to 120,000 Pa.
    This means that I have a 17bit number that I need to send to the serial port.

    From what I can tell the best Serout2 / Hserout can handle is a Word (16bits).

    Has anyone come accross this problem before, and does anyone have any ideas on how to get arround this issue?

    I am currently using PBP 2.50A

    Thank you in advance

    regards
    Adam

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    SEROUT2 works fine for large numbers but the VAR needs to be a LONG, so the easy way would be using an 18Fxx chip.

    Or

    I2C the data into an array then SEROUT2 the array.
    Dave
    Always wear safety glasses while programming.

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