For 10-bit A/D you'll want to define W0 & W1 as WORD sized vars...;o)