The present invention relates to an integrated circuit for a temperature compensated crystal oscillator having an external crystal. The integrated circuit comprises a temperature compensation having one fixed or at least two selectable 3rd and/or 4th and/or 5th and/or higher order temperature compensation functions for at least one specific type of external crystal. The temperature compensation can be calibrated at one temperature, in other words without use of temperature variation, by means of an external voltage or current source overdriving a respective temperature-dependent voltage or current supplied from an internal temperature sensor to the temperature compensation.