A 1 MHz 4 ppm CMOS-MEMS oscillator with built-in self-test and sub-mW ovenization power