Micromachined angular rate sensor allowing interchangeable operation in both amplitude modulation and frequency modulation