Dynamics of a close-loop controlled MEMS resonator