Let me ask UPOSC bit

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

Let me ask UPOSC bit

1,216 次查看
takafumieguchi
Contributor I

Let me ask UPOSC bit.

S12 uC uses external resonator, and the manual mentions "UPOSC becomes 1 once external resonator clock becomes stable (not locked)".

I'd like to know how to check if external clock is stable or.

Would you please let me know?

标记 (2)
0 项奖励
回复
1 回复

791 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi

If an external oscillator is not used (OSCE bit is 0, then UPOSC stays 0), in this case, use the LOCK bit to verify the bus clock is working within the expected tolerance.

When the external oscillator is used (OSCE=1) and the oscillator is qualified then LOCK and UPOSC are set. Loosing PLL lock status (LOCK=0) means that the oscillator status information (UPOSC=0) is cleared as well. You can use Oscillator status interrupt (OSCIE) which is triggered when UPOSC changes.

System clocks can be derived directly from OSCCLK only if UPOSC=1. If UPOSC is cleared, PLLSEL is set automatically and the Bus clock source is switched back to the PLL clock.

If the clock monitor is enabled, it will reset the MCU in the case of a crystal oscillation stop occurs.

Regards

Daniel

0 项奖励
回复