How to use XTAL1 & XTAL2 pins

Experts,

I am trying to use low speed version of Atmega168 chip i.e. not planning to use resonator via XTAL1 and XTAL2 pins. Thus, it will free up these pins to use for other purpose.

However, being novice, I am unable to figure out how to refer for these two pins (XTAL1, XTAL2) in the Arduino program. As per the reference I can use any other digital or analog pins of the Arduino (like for analog A0... or digital 1 to 13 etc.). Could you please guide me on the same?

I tried to search Arduino forum before this post, but couldn't find a suitable or straight explanation.

Thanks in advance

  • Pradip

Direct port manipulation can always be used:

I am aware of the following libraries, but I have not used them, so I am unsure whether they may support PB6 and PB7. There may be other similar libraries available too, so I'd Google around some.
http://code.google.com/p/digitalwritefast/

Can also manipulate pins_arduino.h to add them as new digital pins D20 & D21

Thank you both of you for your advice. I will implement the same and let you know the result.