A stable frequency is outputted by an oscillator circuit including a
constant current circuit which is electrically connected between a first
terminal and a second terminal, a voltage controlled oscillator circuit
in which an oscillation frequency fluctuates in accordance with a
potential difference between power supply voltage terminals, an n-channel
transistor, a p-channel transistor in which a gate-source voltage is set
to be constant by the constant current circuit, and a capacitor, in which
a source electrode of the p-channel transistor is electrically connected
to the first terminal, a drain electrode of the p-channel transistor is
electrically connected a drain electrode and a gate electrode of the
n-channel transistor, a source electrode of the n-channel transistor is
electrically connected to the second terminal, and a gate electrode of
the n-channel transistor is electrically connected to the second terminal
through the capacitor.