Well spotted Architect Thanks for your perseverance all.
I still dont have what I expect. I am expecting some sort of value back from PRESH the hardcoded value. I might have to convert it etc⌠but all I get is system.byte for the result field or 255 for result[0]
When I looked at the an3785.pdf sheet
I found this
[quote]Table 3. Example SPI Read Commands
Command 8-bit Code Mode Bus Type
Read Pressure Hi byte 1000000X All SPI
Read Pressure Lo byte 1000001X All SPI
Read Temperature Hi byte 1000010X All SPI
Read Temperature Lo byte 1000011X All SPI
Read Coefficient data byte 1 1000100X All SPI[/quote]
This is different to the the code I have of(i think):
[quote]Start
PRESH = 255
PRESL = 255
TEMPH = 255
TEMPL = 190
End of Main[/quote]
Its different almost everytime but different in completely the way I would expect. I havent yet worked out what these bytes will turn in to in the way of KPa or something. I would have that the values would have stayed fairly similar within 15-20 secs.
Write on that sensor is different then read. You have write 2 bytes in one call, that is why in my version of your code I have used byte array with the size of 2. You read one byte at a time.
Double check SPI configuration parameters (clock speed,etc.)with the datasheet.
Thanks cys. I gave up due to a baby in the main and not knowing what I was doing. I shall give it a go. If you have any more info I would be greatful. I shall do some more google searching.