I am trying to use Internal Analog Comparator in ATmega1608 and have been facing some issues in configuring it. I am using PD2 as positive input pin and PD3 as Negative input pin. To configure it, I initialized those pins as input using DIRCLR and disabled digital input buffer for both pins according to the Application note from Microchip? is it the right way to initialize those pins? I am attaching my pin initializing snippet below, please take a look.