hi, do we actually need to specify the ddr of the port if it to act as input?. I am working on the ADC of mega128. the adc is working fine but there's a small issue on the current. I noticed that if I include in the source code the instruction to set ddrf as input, the current will be high. but if i remark the instruction, the current will be low. Is there any connection?
thank you for any reply.