Fixed typo when registering interrupt handler.
Fixed typo when setting the clock input on chip C and chip D.
Fixed debug and comment typos in interrupt handler.