K22: FTM2-Clock gate activation

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

K22: FTM2-Clock gate activation

ソリューションへジャンプ
537件の閲覧回数
noisternig
Contributor II

Hi,

we want to activate the clock gate for FTM2 on the K22FM1M0VLQ12.

The reference Manual (Rev.5, March 2015) says that the activation bit is in SIM_SCGC3 (Bit 24) *and* SIM_SCGC6 (Bit 26). Also in the device header file both bits are defined.

Which one is the correct one? I don't think I have to set both...

Br,

Wolfgang

ラベル(1)
0 件の賞賛
1 解決策
402件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Wolfgang,

You don't have to set both.

FTM2 and RNGA can be accessed through both AIPS0 and AIPS1. When accessing through AIPS1, define the clock gate control bits in the SCGC3. When accessing through AIPS0, define the clock gate control bits in SCGC6.
When accessed through AIPS0, the base address is 4003_A000h and when accessed through AIPS1, the base address is 400B_8000h.

If you are using SDK_2.0_MK22FN1M0xxx12, please use the clock gate control bits in the SCGC3.

FTM_Peripheral_Access_Layer.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
---------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

1 返信
403件の閲覧回数
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Wolfgang,

You don't have to set both.

FTM2 and RNGA can be accessed through both AIPS0 and AIPS1. When accessing through AIPS1, define the clock gate control bits in the SCGC3. When accessing through AIPS0, define the clock gate control bits in SCGC6.
When accessed through AIPS0, the base address is 4003_A000h and when accessed through AIPS1, the base address is 400B_8000h.

If you are using SDK_2.0_MK22FN1M0xxx12, please use the clock gate control bits in the SCGC3.

FTM_Peripheral_Access_Layer.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
---------------------------------------------------------------------------------------------------------------------