http://www.bristolwatch.com/ele/vc.htm

If speed is not an issue, you could also use a spare ADC pin of your PIC and some IF THEN.