ATtiny1624/1626/1627

MCLKSTATUS

Main Clock Status

  0x03 8 - 0x00    

Main Clock Status

Bit  7 6 5 4 3 2 1 0  
  EXTS XOSC32KS OSC32KS OSC20MS       SOSC  
Access  R R R R       R  
Reset  0 0 0 0       0  

Bit 7 – EXTS: External Clock Status

External Clock Status

ValueDescription
0 EXTCLK has not started
1 EXTCLK has started

Bit 6 – XOSC32KS: XOSC32K Status

XOSC32K Status

The Status bit will only be available if the source is requested as the main clock or by another module. If the oscillator RUNSTDBY bit is set and the oscillator is unused/not requested, this bit will be ‘0’.

ValueDescription
0 XOSC32K is not stable
1 XOSC32K is stable

Bit 5 – OSC32KS: OSCULP32K Status

OSCULP32K Status

The Status bit will only be available if the source is requested as the main clock or by another module. If the oscillator RUNSTDBY bit is set and the oscillator is unused/not requested, this bit will be ‘0’.

ValueDescription
0 OSCULP32K is not stable
1 OSCULP32K is stable

Bit 4 – OSC20MS: OSC20M Status

OSC20M Status

The Status bit will only be available if the source is requested as the main clock or by another module. If the oscillator RUNSTDBY bit is set and the oscillator is unused/not requested, this bit will be ‘0’.

ValueDescription
0 OSC20M is not stable
1 OSC20M is stable

Bit 0 – SOSC: Main Clock Oscillator Changing

Main Clock Oscillator Changing

ValueDescription
0 The clock source for CLK_MAIN is not undergoing a switch
1 The clock source for CLK_MAIN is undergoing a switch and will change as soon as the new source is stable