Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MiS_4610836
Level 1
Level 1
5 questions asked First reply posted First question asked

Hi,
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[0]=1;//select path 1(pll0)

  SRSS->CLK_PLL_CONFIG[0]=(30)|(1<<8)|(4<<16); //feedbacvk_div 25,output_div 4,reference_div 1

SRSS->CLK_PLL_CONFIG[0]|=(1<<31);//enable pll

while(SRSS->CLK_PLL_STATUS[0]==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.

0 Likes
1 Solution
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

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.

View solution in original post

0 Likes
1 Reply
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

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.

0 Likes