05/11/2018 at 23:36 #3909
Hi. The problem was in your mikroC Project settings. In the menu –> Project Edit –> 4xPLL enable. You enabled which set your oscillator frequency to 32MHz (8MHz x 4) but you only set the oscillator to 8MHz. So disable it and your project will work.