mFrame
載入中...
搜尋中...
無符合項目
Crystal

System Oscillator Control Status Register offset 0x100.

System Oscillator Control Status Register offset 0x100Controls and monitors the System Oscillator (SOSC), which provides high-accuracy clock generation from external crystal or clock source. SOSC typically offers the highest frequency accuracy for precision timing.

系統振盪器控制狀態暫存器,管理外部晶振時脈源

SOSC Functions:

SOSC Characteristics:
  • Highest frequency accuracy (±20-50 ppm typical)
  • Higher power consumption than internal oscillators
  • Requires external components (crystal, capacitors)
  • Longer startup time compared to internal sources
  • Best choice for precision timing applications

    Oscillator Setup:

    // Configure for 8 MHz external crystal
    scg->sosccfg = SOSC_CRYSTAL_MODE | SOSC_8MHZ_RANGE;
    scg->sosccsr = SOSC_ENABLE | SOSC_MONITOR_ENABLE;
    // Wait for stabilization
    while (!(scg->sosccsr & SOSC_VALID_FLAG));