Hi Mike,
As far as I remember the 16F628 does not have an ADC.

It does have comparators - there is a fine tutorial by Melanie either here or on the PicBasic list about using the comparators (search function available at www.melabs.com).

Arch