title: 4-20ma current loop pressure sensor, -1mbar to 1 mbar value, ? assembly code user
body: <p>im programming a pic 18f to rad an press sensor, swings from +1mbar to -1mbar (4-2-ma)</p>
  
  <p>All ok at this point re code, now in need to shift my 8 bits to a more readable format.</p>
  
  <p>the equation for conversion is Mbar=Vin*0.5 -1.5 , confrimed. </p>
  
  <p>as you can see 1 volt is -1mbar, 3 volts = 0mbar, 5 volts = +1mbar,,,, </p>
  
  <p>Anyone show me where to swat up on this. Tried to expand equation in hex, then rlcf etc, im getting messy.</p>
  
  <p>all assistance/insight and suggestions accepted with open arms here!</p>
  
  <p>Steve</p>