The invention discloses a bidirectional frequency
synchronous oscillator circuit. The circuit comprises an oscillator main body module, a synchronous
clock signal generation module, an external clocksignal detection module and an internal and external
clock signal mutual interference prevention module; the oscillator main body module is connected with an
external resistor to control
triangular wave signals generated by periodic charging and discharging of an external
capacitor, and the oscillator main body module internally comprises a charging and discharging circuit of the external
capacitor and related control circuits; when no
clock signal exists outside, the synchronous
clock signal generation module outputs the
clock signal generated by the oscillator main body module, and the clocksignal can be used as a
clock signal of other power supply systems; the external clock signal detection module is used for detecting whether an external clock signal exists or not, and controlling the oscillator main body module to synchronize to the external clock signal when the external clock signal is detected; the internal and external clock signal mutual interference prevention module is used for avoiding mutual interference between an external clock signal and an internally generated clock signal, so the external clock signal and the internally generated clock signal cannot appear at the same time, and logic errors are avoided.