A 32.768kHz crystal can be connected to the TOSC1 or TOSC2 pins, along with any required load capacitors.
An external clock can be used on the TOSC1 pin.