Jeffrey Vitale wrote: > I am able to get an a2d value from my 877 chip reding value from a > potentiometer connected to chip (using chips vdd as vref). after i put > the value's from ADRESH into a user register (via W of course) i > perform an ADDWF where W=D'55' to see whether or not the A2d value is > greater than 200 or not (this is my threshold level i am interested > in). the strange thing is that the STATUS carry bit (bit 0) does not > stay at 1 like it should when the user register is 201 and greater. > using leds, i am able to verify that the status bit will only show a > MSB carry when the user register is of the following values: > 201 through 207 > 217 through 231 > 247 through 255 I don't believe this. You won't get anywhere until you assume the chip is working correctly and that there is a bug in your code. Something else is going on than you think, but you won't be able to find it until you have the right mindset. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body