Is the 32 KHz clock for the k22f12810 chip enabled by default or with the call CLOCK_SYS_EnablePortClock(PORTE_IDX)?

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

Is the 32 KHz clock for the k22f12810 chip enabled by default or with the call CLOCK_SYS_EnablePortClock(PORTE_IDX)?

Jump to solution
423 Views
brendanmerna
Contributor IV

If this isn't enabled by defualt what API would you use to enable this clock output.

0 Kudos
1 Solution
328 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Brendan Merna,

It's not enabled by default.
Please refer the description in '5.7.7 RTC_CLKOUT and CLKOUT32K clocking' of K22P121M100SF9RM.

RTC_CLKOUT and CLKOUT32K clocking.png
You need to configure the SIM_SOPT1[OSC32KSEL] \ SIM_SOPT1[OSC32KOUT] and configure PORTx_PCRn[MUX] select Alternative1.

CLKOUT32K PTE0 PTE26.png

Best Regards,

Robin

 

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

View solution in original post

0 Kudos
2 Replies
329 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Brendan Merna,

It's not enabled by default.
Please refer the description in '5.7.7 RTC_CLKOUT and CLKOUT32K clocking' of K22P121M100SF9RM.

RTC_CLKOUT and CLKOUT32K clocking.png
You need to configure the SIM_SOPT1[OSC32KSEL] \ SIM_SOPT1[OSC32KOUT] and configure PORTx_PCRn[MUX] select Alternative1.

CLKOUT32K PTE0 PTE26.png

Best Regards,

Robin

 

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

0 Kudos
328 Views
brendanmerna
Contributor IV

Thanks Robin! That's exactly what I needed. I was having trouble finding that in the data sheet. 32KHz clock works now.

0 Kudos