Sorry Richard, I must of confused you by posting the code with the values in the original code.
I'll take a look at your suggested code tomorrow and let you know - cheers for your help
EDIT - loaded the code as is and the LCD displays rh 0.0 nr
I assume that it's not getting a response from the sensor ? I have checked the connections and they appear correct (+ve to 5v, GND to ground, and signal to PORT A pin 1) this is connected via a header to the EasyPIC5 board with the 10K pull up resistors enabled (also tried without) I have a Hantek PC scope which I can use to test. I'm guessing I should see pin A1 going from high to low for the initial handshake between PIC and sensor ??
Bookmarks