Did you set the port to analog? But even more impotantly, did you set the port to imput? That should do it. > I am trying to use a 16C73 to measure a voltage in the range 0-5v and am > having zero luck. I'm using the CCS compiler; to set up the port, I'm > writing 0x41 to $1F and 0x00 to $9F; the CPU runs at 3.579545MHz. > > All of the readings, obtained via the code: > > bsf $1F,2 > ZZZ: > btfsc $1F,2 > goto ZZZ > movf $1E,w > movwf Value > > Are coming out $FF, independent of the input voltage. Is there something I'm > missing here?