sosc monitoring in S32K1

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

sosc monitoring in S32K1

跳至解决方案
1,525 次查看
Xtian
NXP Employee
NXP Employee

Do we have a safe mode in S32K11x   that  automatically switches to an internal clock  whenever there is a loss of clock detected in the external oscillator?   I seem to understand There is an SOSC monitor that can flag an error in case of loss of external clock, but it is up to application software to do corrective measures? 

thanks,

Christian

标记 (1)
1 解答
1,283 次查看
atzelcollazo
NXP Employee
NXP Employee

Hello Christian,

In S32K1xx there is not possible to automatically switch to an internal clock when there is a loss of clock detected in the external oscillator. The user has to decide how to react when this condition appears. For S32K11x it is intended that the FIRC would be the system clock and not the XOSC. It is the only clock we have and if a problem appears one can decide interrupt to reset the system. If the system is not able to handle the interrupt and a hanging situation appears, the WDOG will reset the system.

For a clock error:

As you may know, there are two ways to react when a clock error condition appears that is selectable in SCG_SOSCCSR[SOSCCMRE] register and these are the ways how we should react:

Interrupt reaction: one can switch to FIRC in the interrupt routine
Reset reaction: the system  starts on FIRC clock


Best Regards,

Atzel Collazo

在原帖中查看解决方案

1 回复
1,284 次查看
atzelcollazo
NXP Employee
NXP Employee

Hello Christian,

In S32K1xx there is not possible to automatically switch to an internal clock when there is a loss of clock detected in the external oscillator. The user has to decide how to react when this condition appears. For S32K11x it is intended that the FIRC would be the system clock and not the XOSC. It is the only clock we have and if a problem appears one can decide interrupt to reset the system. If the system is not able to handle the interrupt and a hanging situation appears, the WDOG will reset the system.

For a clock error:

As you may know, there are two ways to react when a clock error condition appears that is selectable in SCG_SOSCCSR[SOSCCMRE] register and these are the ways how we should react:

Interrupt reaction: one can switch to FIRC in the interrupt routine
Reset reaction: the system  starts on FIRC clock


Best Regards,

Atzel Collazo