Hi Thomas. > How can you store values greater than 255 in a pic16c84. I need to measure a > resistor by charging a capacitor through it. The value is between 500 and > 3000. How can i store this value when the registers are only 8 bit. Try to use two bytes. One for high byte of result and another for low. ;-) If low byte is overflowed after operation carry must be added/subtracted from high byte and so on. Other variant is: what precision do you really need ? Probably your results can be scaled from 500..3000 range to 0..255 ? Just subtract 500 from initial range and divide it by 10 for instance. You will get 10 to 1 compression. WBR Dmitry.