I want to try setup PLL on my PSOC6 mcu(CY8C6347BZI-BLD53). I dont want use library(olny register operation), but i dont know where i make a mistake.
SRSS->CLK_ROOT_SELECT=1;//select path 1(pll0) SRSS->CLK_PLL_CONFIG=(30)|(1<<8)|(4<<16); //feedbacvk_div 25,output_div 4,reference_div 1 SRSS->CLK_PLL_CONFIG|=(1<<31);//enable pll while(SRSS->CLK_PLL_STATUS==1);//wait for flag
But this code don't work, i forget about something? I was think this is enoughto enable pll and set is @main clock but now I see I was wrong but I dont know where.
The easiest way to make this work is to use the PDL libraries. Once you get that working, go inside of the functions and see how it is done and mimic using register operations.