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
Solved! Go to Solution.
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.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
---------------------------------------------------------------------------------------------------------------------
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.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
---------------------------------------------------------------------------------------------------------------------