PDA

View Full Version : Need help with a SCP1000 Pressue Sensor



Biatparto
- 12th August 2010, 15:01
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

mackrackit
- 12th August 2010, 21:16
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.