Internal and External Crystal enabling

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

Internal and External Crystal enabling

1,518 Views
senthilprabhug
Contributor I

We using MC56F82746 MCU, from DSC series for motor control application. 

 

In that, i need need to use external crystal only for CAN peripheral and internal crystal used for all other clocks like (Core,Bus,etc).

 

 

Any one have an idea about this please share it.

 

#internal_crystal, #external_crystal, #crystal

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

1,458 Views
Celeste_Liu
NXP Employee
NXP Employee

Hello @senthilprabhug ,

Thanks for your post. This is achievable. You can use config tools to implement it with a simple configuration. Please refer to the attached document for detailed steps about config tools usage.

The configuration mainly involves the following two steps:

1. In the Clock Config Tool, simply enable the external crystal. You can observe that all other modules are still clocked by the internal crystal by default.

 

See attached "clock_configuration.png".

 

2. In the peripheral configuration tool, set the clock source of the CAN peripheral to EXT_CLK.

See attached "CAN_peripheral_configuration.png".

 

At last, click Update Code, and you can see the specific changes in the code.

 

Hope it helps.

BR

Celeste

 

----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2345572%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EInternal%20and%20External%20Crystal%20enabling%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2345572%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWe%20using%20MC56F82746%20MCU%2C%20from%20DSC%20series%20for%20motor%20control%20application.%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIn%20that%2C%20i%20need%20need%20to%20use%20external%20crystal%20only%20for%20CAN%20peripheral%20and%20internal%20crystal%20used%20for%20all%20other%20clocks%20like%20(Core%2CBus%2Cetc).%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3EAny%20one%20have%20an%20idea%20about%20this%20please%20share%20it.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%23internal_crystal%2C%20%23external_crystal%2C%20%23crystal%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2345572%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EDSC%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2346678%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Internal%20and%20External%20Crystal%20enabling%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2346678%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F164611%22%20target%3D%22_blank%22%3E%40senthilprabhug%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20post.%26nbsp%3BThis%20is%20achievable.%20You%20can%20use%20config%20tools%20to%20implement%20it%20with%20a%20simple%20configuration.%20Please%20refer%20to%20the%20attached%20document%20for%20detailed%20steps%20about%20config%20tools%20usage.%3C%2FP%3E%0A%3CP%3EThe%20configuration%20mainly%20involves%20the%20following%20two%20steps%3A%3C%2FP%3E%0A%3CP%3E1.%20In%20the%20Clock%20Config%20Tool%2C%20simply%20enable%20the%20external%20crystal.%20You%20can%20observe%20that%20all%20other%20modules%20are%20still%20clocked%20by%20the%20internal%20crystal%20by%20default.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorCeleste_Liu_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3ESee%20attached%20%22clock_configuration.png%22.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E2.%26nbsp%3BIn%20the%20peripheral%20configuration%20tool%2C%20set%20the%20clock%20source%20of%20the%20CAN%20peripheral%20to%20EXT_CLK.%3C%2FP%3E%0A%3CP%3ESee%20attached%20%22CAN_peripheral_configuration.png%22.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAt%20last%2C%20click%20Update%20Code%2C%20and%20you%20can%20see%20the%20specific%20changes%20in%20the%20code.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHope%20it%20helps.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3ECeleste%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E----------------------------------------------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22ACCEPT%20AS%20SOLUTION%22%20button.%20Thank%20you!%3CBR%20%2F%3E----------------------------------------------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E