Yes I did measure with a dmm o fcourse. The 18x was triggering the output pins at 0.5 volts and not at 0 volts as programmed
Can you please explain in DETAIL what you mean by that.
What is triggered? How? What output pins?
What is your power supply. This will affect the ADC reading.
On a 5v supply, the ADC will read around 102 assuming you're using it in 10-bit mode. About 26 in 8-bit mode.
What's your source impedance? Using enhanced download circuit?
As requested by Dippy & eclectic, please provide circuit and code.
Otherwise, we can only guess.