LPC5411x PLL settings

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC5411x PLL settings

Jump to solution
496 Views
yhc123
Contributor III

Hi 

In my current project, I am using the PLL module of the LPC5411x. According to Section 6.5.49.6 of the datasheet, the N, M, and P values of the PLL must be calculated before being written into the corresponding registers.

yhc123_0-1771133107916.png


However, in SDK_2_9_0_LPCXpresso54114, the calculation code for NDEC, MDEC, and PDEC is not implemented; instead, the SDK directly writes manually pre‑calculated values into the syspllndec register, as shown below. (I want set M=75, so I need to calculate MDEC=9637 manually and set it to SYSCON_SYSPLLSSCTRL0_MDEC)

yhc123_1-1771133147691.png

May I ask whether there are plans to add the calculation functions in SDK for NDEC, MDEC, and PDEC in future SDK releases?
Currently, setting NDEC, MDEC, and PDEC is not intuitive and is difficult to maintain, as every change to M, N, or P requires recalculating the corresponding NDEC, MDEC, and PDEC values manually.

Thanks

Labels (1)
0 Kudos
Reply
1 Solution
456 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @yhc123 

Thanks for your post.

Currently, there are no plans to release a new SDK version for the LPC5411. Any required calculation would need to be implemented on your side. We apologize for the inconvenience this may cause.

View solution in original post

0 Kudos
Reply
1 Reply
457 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @yhc123 

Thanks for your post.

Currently, there are no plans to release a new SDK version for the LPC5411. Any required calculation would need to be implemented on your side. We apologize for the inconvenience this may cause.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2318336%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC5411x%20PLL%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2318336%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CP%3EIn%20my%20current%20project%2C%20I%20am%20using%20the%20PLL%20module%20of%20the%20LPC5411x.%20According%20to%20Section%206.5.49.6%20of%20the%20datasheet%2C%20the%20N%2C%20M%2C%20and%20P%20values%20of%20the%20PLL%20must%20be%20calculated%20before%20being%20written%20into%20the%20corresponding%20registers.%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yhc123_0-1771133107916.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22yhc123_0-1771133107916.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22yhc123_0-1771133107916.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376890iF6E06936671F16A5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22yhc123_0-1771133107916.png%22%20alt%3D%22yhc123_0-1771133107916.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CP%3E%3CBR%20%2F%3EHowever%2C%20in%20%3CEM%3ESDK_2_9_0_LPCXpresso54114%3C%2FEM%3E%2C%20the%20calculation%20code%20for%20NDEC%2C%20MDEC%2C%20and%20PDEC%20is%20not%20implemented%3B%20instead%2C%20the%20SDK%20directly%20writes%20manually%20pre%E2%80%91calculated%20values%20into%20the%20syspllndec%20register%2C%20as%20shown%20below.%20(I%20want%20set%20M%3D75%2C%20so%20I%20need%20to%20calculate%20MDEC%3D9637%20manually%20and%20set%20it%20to%20%3CSPAN%3ESYSCON_SYSPLLSSCTRL0_MDEC%3C%2FSPAN%3E)%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yhc123_1-1771133147691.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22yhc123_1-1771133147691.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22yhc123_1-1771133147691.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376891i60F1BBB0D4F6D804%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22yhc123_1-1771133147691.png%22%20alt%3D%22yhc123_1-1771133147691.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CP%3EMay%20I%20ask%20whether%20there%20are%20plans%20to%20add%20the%20calculation%20functions%20in%20SDK%20for%20NDEC%2C%20MDEC%2C%20and%20PDEC%20in%20future%20SDK%20releases%3F%3CBR%20%2F%3ECurrently%2C%20setting%20NDEC%2C%20MDEC%2C%20and%20PDEC%20is%20not%20intuitive%20and%20is%20difficult%20to%20maintain%2C%20as%20every%20change%20to%20M%2C%20N%2C%20or%20P%20requires%20recalculating%20the%20corresponding%20NDEC%2C%20MDEC%2C%20and%20PDEC%20values%20manually.%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2318336%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3ELPC54xxx%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2318807%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC5411x%20PLL%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2318807%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251477%22%20target%3D%22_blank%22%3E%40yhc123%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20post.%3C%2FP%3E%0A%3CP%3ECurrently%2C%20there%20are%20no%20plans%20to%20release%20a%20new%20SDK%20version%20for%20the%20LPC5411.%20Any%20required%20calculation%20would%20need%20to%20be%20implemented%20on%20your%20side.%20We%20apologize%20for%20the%20inconvenience%20this%20may%20cause.%3C%2FP%3E%3C%2FLINGO-BODY%3E