Question: what is xtal1 and xtal2?
Answer: XTAL1 & XTAL2 are used to provide external clock frequency within range from 4MHz to 30MHz. XTAL1 is connected to input to the inverting-oscillator-amplifier. XTAL2 is connected to output from the inverting-oscillator-amplifier. There are two ways to provide external clock frequency.