IOFSCS_8MHZ     Hmmm, dyslexia day at Microchip

<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2858&stc=1&d=122145428 7" /><!-- Name:  IOSCFS.gif
Views: 548
Size:  2.1 KB -->

Your device line is OK, just pointing out an oddity.
<hr>

> how do I figure out what value will get placed in the Vin variable?

1 decimal place ...
Code:
Volts = (Vin+1) */ 50
2 decimals ...
Code:
Volts = (Vin+1) */ 500