A temperature-dependent oscillator includes a first current source, wherein a first current provided by the first current source has a positive temperature coefficient, a second current source serially connected to the first current source, wherein a second current provided by the second current source has a negative temperature coefficient, and a capacitor serially connected to the first current source and parallel connected to the second current source.