PIT KL46Z - MCG_C1

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PIT KL46Z - MCG_C1

1,543件の閲覧回数
Ricky1
Contributor I

I've been trying to put a 1 on the sixth bit of the register in the title to set the Clk to the internal reference one but the MCU has been sending that message.

Does anyone know what is the issue?

Thanks.

0 件の賞賛
返信
1 返信

1,489件の閲覧回数
RaRo
NXP TechSupport
NXP TechSupport

Hello @Ricky1,

Could you please check which value does the CLKS field have before changing the sixth bit? An CLKS 11b value is Reserved and could create issues. You could change the whole field with:

MCG->C1 =  ((MCG->C1 & ~(MCG_C1_CLKS_MASK))) | (MCG_C1_CLKS(kMCG_ClkOutSrcOut);

Also, this configuration could be made in BOARD_InitBootClocks(). That part of the code usually takes care of clock settings.

Best regards, Raul.

0 件の賞賛
返信