Can't say I know what makes it run when you manually fiddle with the OSCCAL value but please repeat after me: I shall always check if analog functions are available on the pins I'm about to use. ...