If you have a need for speed... forget ADCIN. Better if you set/read internal register directly.

Will be much faster and produce a tighter code.