K22: FTM2-Clock gate activation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

K22: FTM2-Clock gate activation

跳至解决方案
1,012 次查看
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 解答
877 次查看
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 回复
878 次查看
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!
---------------------------------------------------------------------------------------------------------------------