question about external oscillator stops

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

question about external oscillator stops

1,438 次查看
ivyxx
Contributor II

I use System PLL as external oscillator as my system clock in S32K146, and I open the clock monitor of SPLL. If I set SCG_SOSCCSR_SPLLCMRE as 0, which means an interrupt is generated when error detected.

What will happen after interrupt? Can S32K146 switch to internal oscillator when the interrupt is generated? 

0 项奖励
回复
5 回复数

1,399 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@ivyxx

 

Senlent_0-1629860895442.png

I know what you mean, but I think the MCU needs to enter the software reset to switch other clocks when the clock fails.

BR!

       Jim.

0 项奖励
回复

1,409 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@ivyxx

     In S32K14x, there are two clock monitors, 1) SOSC Loss-of-Clock monitor and 2) SPLL Loss-of-Lock monitor. 
     Those monitors can be enabled with SCG_SOSCCSR[SOSCCM]=1 and SCG_SPLLCSR[SPLLCM]=1 respectively. 
     Once those monitors detected abnormal behaviors in SOSC/SPLL, the flags SCG_SOSCCSR[SOSCERR] and/or SCG_SPLLCSR[SPLLERR] are asserted, and generate interrupt or reset as summarized below.

Senlent_1-1629854481696.png

Please note interrupt should not be selected if SOSC/SPLL clocks are used as system clock.

 

refer to 'Clock monitoring for functional safety' and this answer posted by r11172

Best regards,

         Jim,

 

0 项奖励
回复

1,406 次查看
ivyxx
Contributor II

Hi  jim,

Thanks for your reply.

When SPLL is chosen as system clock, the system can only generate reset when clock loss happens. So that if clock loss always happens, the system will reset continuously, right? Is there any chance to avoid it?

0 项奖励
回复

1,432 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@ivyxx

         Please refer to this answer.

https://community.nxp.com/t5/S32K1-KEA-Internal-Community/Clock-monitoring-for-functional-safety/m-p... 

BR!

 Jim.

 

0 项奖励
回复

1,425 次查看
ivyxx
Contributor II

Hi jim:

 I do not have access to this page.

0 项奖励
回复