K22: FTM2-Clock gate activation

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

K22: FTM2-Clock gate activation

Jump to solution
497 Views
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

Labels (1)
0 Kudos
1 Solution
362 Views
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!
---------------------------------------------------------------------------------------------------------------------

View solution in original post

1 Reply
363 Views
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!
---------------------------------------------------------------------------------------------------------------------