Added assertions on cpu clock speed. Currently supporting only 16Mhz.
Simplify the config and the communication with the ISR.