The pit drives the clock and I just set the frequency to 1Mhz which is wrong. It's likely 15Mhz with some unknown divider.