Hi Darrel

I've entered the code that you gave me and I getting a error stating "bad expression" on the lines that contain
Volts = DIV32 Res2 and Volts = DIV32 1023.
Is this due to my version of my complier being 2.31?

Chuck Sieveking