base theory of self osc and sample circuit