mFrame
載入中...
搜尋中...
無符合項目
mcxa153::chip::scg::SCG 類別 參考文件final

MCXA153 系統時脈產生器 (SCG) 控制介面 更多...

#include <SCG.h>

類別mcxa153::chip::scg::SCG的繼承圖:
ufm::lang::NonInstantiable ufm::lang::Object ufm::lang::Interface

靜態公開方法(Static Public Methods)

static constexpr uint32 VERID_VERSION (uint32 value)
 VERID - VERSION.
 
static constexpr uint32 PARAM_SOSCCLKPRES (uint32 value)
 PARAM - SOSCCLKPRES.
 
static constexpr uint32 PARAM_SIRCCLKPRES (uint32 value)
 PARAM - SIRCCLKPRES.
 
static constexpr uint32 PARAM_FIRCCLKPRES (uint32 value)
 PARAM - FIRCCLKPRES.
 
static constexpr uint32 PARAM_ROSCCLKPRES (uint32 value)
 PARAM - ROSCCLKPRES.
 
static constexpr uint32 TRIM_LOCK_TRIM_UNLOCK (uint32 value)
 PARAM - TRIM_UNLOCK.
 
static constexpr uint32 TRIM_LOCK_IFR_DISABLE (uint32 value)
 TRIM_LOCK - IFR_DISABLE.
 
static constexpr uint32 TRIM_LOCK_TRIM_LOCK_KEY (uint32 value)
 TRIM_LOCK - TRIM_LOCK_KEY.
 
static constexpr uint32 CSR_SCS (uint32 value)
 SCS.
 
static constexpr uint32 RCCR_SCS (uint32 value)
 CSR - SCS.
 
static constexpr uint32 SOSCCSR_SOSCEN (uint32 value)
 RCCR - SOSCEN.
 
static constexpr uint32 SOSCCSR_SOSCSTEN (uint32 value)
 SOSCCSR - SOSCSTEN.
 
static constexpr uint32 SOSCCSR_SOSCCM (uint32 value)
 SOSCCSR - SOSCCM.
 
static constexpr uint32 SOSCCSR_SOSCCMRE (uint32 value)
 SOSCCSR - SOSCCMRE.
 
static constexpr uint32 SOSCCSR_LK (uint32 value)
 SOSCCSR - LK.
 
static constexpr uint32 SOSCCSR_SOSCVLD (uint32 value)
 SOSCVLD.
 
static constexpr uint32 SOSCCSR_SOSCSEL (uint32 value)
 SOSCCSR - SOSCSEL.
 
static constexpr uint32 SOSCCSR_SOSCERR (uint32 value)
 SOSCCSR - SOSCERR.
 
static constexpr uint32 SOSCCSR_SOSCVLD_IE (uint32 value)
 SOSCCSR - SOSCVLD_IE.
 
static constexpr uint32 SOSCCFG_EREFS (uint32 value)
 SOSCCFG - EREFS.
 
static constexpr uint32 SOSCCFG_RANGE (uint32 value)
 SOSCCFG - RANGE.
 
static constexpr uint32 SIRCCSR_SIRCSTEN (uint32 value)
 SIRCCSR - SIRCSTEN.
 
static constexpr uint32 SIRCCSR_SIRC_CLK_PERIPH_EN (uint32 value)
 SIRCCSR - SIRC_CLK_PERIPH_EN.
 
static constexpr uint32 SIRCCSR_SIRCTREN (uint32 value)
 SIRCCSR - SIRCTREN.
 
static constexpr uint32 SIRCCSR_SIRCTRUP (uint32 value)
 SIRCTRUP.
 
static constexpr uint32 SIRCCSR_TRIM_LOCK (uint32 value)
 SIRCCSR - TRIM_LOCK.
 
static constexpr uint32 SIRCCSR_COARSE_TRIM_BYPASS (uint32 value)
 SIRCCSR - COARSE_TRIM_BYPASS.
 
static constexpr uint32 SIRCCSR_LK (uint32 value)
 SIRCCSR - LK.
 
static constexpr uint32 SIRCCSR_SIRCVLD (uint32 value)
 SIRCCSR - SIRCVLD.
 
static constexpr uint32 SIRCCSR_SIRCSEL (uint32 value)
 SIRCCSR - SIRCSEL.
 
static constexpr uint32 SIRCCSR_SIRCERR (uint32 value)
 SIRCCSR - SIRCERR.
 
static constexpr uint32 SIRCCSR_SIRCERR_IE (uint32 value)
 SIRCCSR - SIRCERR_IE.
 
static constexpr uint32 SIRCTCFG_TRIMSRC (uint32 value)
 SIRCTCFG - TRIMSRC.
 
static constexpr uint32 SIRCTCFG_TRIMDIV (uint32 value)
 SIRCTCFG - TRIMDIV.
 
static constexpr uint32 SIRCTRIM_CCOTRIM (uint32 value)
 SIRCTRIM - CCOTRIM.
 
static constexpr uint32 SIRCTRIM_CLTRIM (uint32 value)
 SIRCTRIM - CLTRIM.
 
static constexpr uint32 SIRCTRIM_TCTRIM (uint32 value)
 SIRCTRIM - TCTRIM.
 
static constexpr uint32 SIRCTRIM_FVCHTRIM (uint32 value)
 SIRCTRIM - FVCHTRIM.
 
static constexpr uint32 SIRCSTAT_CCOTRIM (uint32 value)
 SIRCSTAT - CCOTRIM.
 
static constexpr uint32 SIRCSTAT_CLTRIM (uint32 value)
 SIRCSTAT - CLTRIM.
 
static constexpr uint32 FIRCCSR_FIRCEN (uint32 value)
 FIRCEN.
 
static constexpr uint32 FIRCCSR_FIRCSTEN (uint32 value)
 FIRCCSR - FIRCSTEN.
 
static constexpr uint32 FIRCCSR_FIRC_SCLK_PERIPH_EN (uint32 value)
 FIRCCSR - FIRC_SCLK_PERIPH_EN.
 
static constexpr uint32 FIRCCSR_FIRC_FCLK_PERIPH_EN (uint32 value)
 FIRCCSR - FIRC_FCLK_PERIPH_EN.
 
static constexpr uint32 FIRCCSR_FIRCTREN (uint32 value)
 FIRCCSR - FIRCTREN.
 
static constexpr uint32 FIRCCSR_FIRCTRUP (uint32 value)
 FIRCCSR - FIRCTRUP.
 
static constexpr uint32 FIRCCSR_TRIM_LOCK (uint32 value)
 FIRCCSR - TRIM_LOCK.
 
static constexpr uint32 FIRCCSR_COARSE_TRIM_BYPASS (uint32 value)
 FIRCCSR - COARSE_TRIM_BYPASS.
 
static constexpr uint32 FIRCCSR_LK (uint32 value)
 FIRCCSR - LK.
 
static constexpr uint32 FIRCCSR_FIRCVLD (uint32 value)
 FIRCCSR - FIRCVLD.
 
static constexpr uint32 FIRCCSR_FIRCSEL (uint32 value)
 FIRCCSR - FIRCSEL.
 
static constexpr uint32 FIRCCSR_FIRCERR (uint32 value)
 FIRCCSR - FIRCERR.
 
static constexpr uint32 FIRCCSR_FIRCERR_IE (uint32 value)
 FIRCCSR - FIRCERR_IE.
 
static constexpr uint32 FIRCCSR_FIRCACC_IE (uint32 value)
 FIRCCSR - FIRCACC_IE.
 
static constexpr uint32 FIRCCSR_FIRCACC (uint32 value)
 FIRCCSR - FIRCACC.
 
static constexpr uint32 FIRCCFG_FREQ_SEL (uint32 value)
 FIRCCFG - FREQ_SEL.
 
static constexpr uint32 FIRCTCFG_TRIMSRC (uint32 value)
 FIRCCFG - TRIMSRC.
 
static constexpr uint32 FIRCTCFG_TRIMDIV (uint32 value)
 FIRCCFG - TRIMDIV.
 
static constexpr uint32 FIRCTRIM_TRIMFINE (uint32 value)
 FIRCTRIM - TRIMFINE.
 
static constexpr uint32 FIRCTRIM_TRIMCOAR (uint32 value)
 FIRCTRIM - TRIMCOAR.
 
static constexpr uint32 FIRCTRIM_TRIMTEMP2 (uint32 value)
 FIRCTRIM - TRIMTEMP2.
 
static constexpr uint32 FIRCTRIM_TRIMSTART (uint32 value)
 FIRCTRIM - TRIMSTART.
 
static constexpr uint32 FIRCSTAT_TRIMFINE (uint32 value)
 FIRCSTAT - TRIMFINE.
 
static constexpr uint32 FIRCSTAT_TRIMCOAR (uint32 value)
 FIRCSTAT - TRIMCOAR.
 
static constexpr uint32 FIRCATC1_IDEALC (uint32 value)
 FIRCATC1 - IDEALC.
 
static constexpr uint32 FIRCATC2_COARMINC (uint32 value)
 FIRCATC2 - COARMINC.
 
static constexpr uint32 FIRCATC2_COARMAXC (uint32 value)
 FIRCATC2 - COARMAXC.
 
static constexpr uint32 FIRCATC3_FINEMINC (uint32 value)
 FIRCATC3 - FINEMINC.
 
static constexpr uint32 FIRCATC3_FINEMAXC (uint32 value)
 FIRCATC3 - FINEMAXC.
 
static constexpr uint32 ROSCCSR_LK (uint32 value)
 ROSCCSR - LK.
 
static constexpr uint32 ROSCCSR_ROSCVLD (uint32 value)
 ROSCCSR - ROSCVLD.
 
static constexpr uint32 ROSCCSR_ROSCSEL (uint32 value)
 ROSCCSR - ROSCSEL.
 
static constexpr uint32 ROSCCSR_ROSCERR (uint32 value)
 ROSCCSR - ROSCERR.
 

保護方法(Protected Methods)

virtual ~SCG (void) override
 Destroy the object.
 
- 保護方法(Protected Methods) 繼承自 ufm::lang::NonInstantiable
 NonInstantiable (void)=delete
 禁止實例化 NonInstantiable 類別
 
 NonInstantiable (const NonInstantiable &)=delete
 禁止複製建構函式
 
virtual ~NonInstantiable (void) override=default
 Destroy the Non Instantiable object.
 
NonInstantiableoperator= (const NonInstantiable &)=delete
 
NonInstantiableoperator= (NonInstantiable &&)=delete
 

額外的繼承成員

- 公開方法(Public Methods) 繼承自 ufm::lang::Object
void * operator new (size_t n)
 使用運算子 new 分配記憶體
 
void * operator new (size_t n, void *p)
 在指定記憶體上調用運算子 new
 
virtual ufm::lang::ObjectgetObject (void) override
 取得對應的 Object 物件
 
void delay (int milliseconds) const
 延遲指定的毫秒數進行執行緒等待
 
bool equals (Object *object) const
 判斷與另一物件是否為相同參照(指標型態比較)
 
bool equals (Object &object) const
 判斷與另一物件是否為相同參照(參照型態比較)
 
void wait (void) const
 使當前線程等待直到被通知
 
bool wait (int timeout) const
 等待通知或超時
 
bool yield (void) const
 讓執行緒讓渡控制權給同優先權的下一個執行緒
 
int lock (void) const
 核心鎖定,鎖定期間禁止線程切換
 
int unlock (void) const
 核心解鎖
 
ufm::sys::ThreadcurrentThread (void) const
 取得當前執行緒指標
 
virtual int hashcode (void) const
 返回對象的哈希碼值。支持這種方法是為了散列表,如HashMap提供的那樣。
 
- 公開方法(Public Methods) 繼承自 ufm::lang::Interface
virtual ~Interface (void)=default
 虛擬析構函式
 

詳細描述

MCXA153 系統時脈產生器 (SCG) 控制介面

SCG類別提供MCXA153系統時脈產生與管理的全面控制功能。包括多重時脈源配置、 系統時脈選擇、時脈監控、自動調校功能以及電源管理特性。

主要功能特色:

  • 多重時脈源支援: • SOSC (系統振盪器):8-50 MHz外部晶體/時脈參考 • SIRC (慢速內部RC):8 MHz內部RC振盪器,具備自動調校功能 • FIRC (快速內部RC):48-192 MHz高頻內部RC振盪器 • ROSC (恢復振盪器):低功耗備用振盪器,用於系統恢復
  • 進階時脈管理: • 動態時脈源切換,具備無突波轉換機制 • 個別時脈啟用/停用控制,最佳化功耗管理 • 時脈監控功能,具備錯誤偵測與中斷/復位產生 • 深度睡眠模式時脈保持控制
  • 自動調校系統: • USB SOF基礎的調校功能,提供精確頻率產生 • SOSC參考調校,具備溫度補償功能 • 自動粗調與細調調整機制 • 調校鎖定偵測與旁路功能
  • 系統整合功能: • 與電源管理控制器(PMC)和復位控制(MRCC)無縫整合 • 周邊裝置時脈分配控制 • 版本識別與參數報告功能 • 安全關鍵應用的暫存器鎖定機制

時脈源詳細說明:

  • SOSC:外部晶體振盪器,支援頻率範圍選擇(8-50 MHz) 同時支援晶體與外部時脈輸入模式 包含時脈監控器,用於振盪器故障偵測
  • SIRC:8 MHz慢速內部RC振盪器 具備自動調校功能,使用外部參考(SOSC) 提供溫度補償與頻率精度維持功能 支援周邊裝置時脈輸出控制
  • FIRC:高頻內部RC振盪器(48/64/96/192 MHz可選擇) 提供雙時脈輸出:系統時脈與周邊裝置時脈 支援USB SOF或SOSC參考調校 快速啟動時間,具備精度指示功能
  • ROSC:恢復振盪器,用於緊急系統運作 低功耗設計,適合備用情境使用 時脈故障時自動啟動功能

使用範例:

// 配置FIRC為96 MHz運作模式
SCG0.FIRCCFG = SCG::FIRCCFG_FREQ_SEL(0x5); // 選擇96 MHz
SCG0.FIRCCSR = SCG::FIRCCSR_FIRCEN(1); // 啟用FIRC
while(!(SCG0.FIRCCSR & SCG::FIRCCSR_FIRCVLD(1))); // 等待時脈有效
// 切換系統時脈至FIRC
SCG0.RCCR = SCG::RCCR_SCS(0x3); // 選擇FIRC作為系統時脈
while((SCG0.CSR & SCG::CSR_SCS(0x7)) != SCG::CSR_SCS(0x3)); // 確認切換完成
// 啟用時脈監控功能
SCG0.SOSCCSR |= SCG::SOSCCSR_SOSCCM(1); // 啟用SOSC監控器
static constexpr uint32 FIRCCFG_FREQ_SEL(uint32 value)
FIRCCFG - FREQ_SEL.
Definition SCG.h:924
static constexpr uint32 FIRCCSR_FIRCEN(uint32 value)
FIRCEN.
Definition SCG.h:708
static constexpr uint32 CSR_SCS(uint32 value)
SCS.
Definition SCG.h:271
static constexpr uint32 RCCR_SCS(uint32 value)
CSR - SCS.
Definition SCG.h:293
static constexpr uint32 FIRCCSR_FIRCVLD(uint32 value)
FIRCCSR - FIRCVLD.
Definition SCG.h:835
static constexpr uint32 SOSCCSR_SOSCCM(uint32 value)
SOSCCSR - SOSCCM.
Definition SCG.h:335
此類別僅提供靜態方法,無法實例化
所有暫存器存取應在多執行緒環境中進行適當同步處理
時脈切換操作可能需要依照MCXA153參考手冊進行特定序列操作
自動調校操作需要穩定的參考時脈,可能需要數毫秒時間完成

函式成員說明文件

◆ CSR_SCS()

static constexpr uint32 mcxa153::chip::scg::SCG::CSR_SCS ( uint32 value)
inlinestaticconstexpr

SCS.

System Clock Source

  • [0b000]Reserved
  • [0b001]SOSC
  • [0b010]SIRC
  • [0b011]FIRC
  • [0b100]ROSC
  • [0b101-0b111]Reserved

◆ FIRCATC1_IDEALC()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCATC1_IDEALC ( uint32 value)
inlinestaticconstexpr

FIRCATC1 - IDEALC.

FIRC Auto-trimming Counter 1 - Ideal Counter

◆ FIRCATC2_COARMAXC()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCATC2_COARMAXC ( uint32 value)
inlinestaticconstexpr

FIRCATC2 - COARMAXC.

FIRC Auto-trimming Counter 1 - Coarse Trim Maximum Counter

◆ FIRCATC2_COARMINC()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCATC2_COARMINC ( uint32 value)
inlinestaticconstexpr

FIRCATC2 - COARMINC.

FIRC Auto-trimming Counter 1 - Coarse Trim Minimum Counter

◆ FIRCATC3_FINEMAXC()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCATC3_FINEMAXC ( uint32 value)
inlinestaticconstexpr

FIRCATC3 - FINEMAXC.

FIRC Auto-trimming Counter 2 - Fine Trim Maximum Counter

◆ FIRCATC3_FINEMINC()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCATC3_FINEMINC ( uint32 value)
inlinestaticconstexpr

FIRCATC3 - FINEMINC.

FIRC Auto-trimming Counter 2 - Fine Trim Minimum Counter

◆ FIRCCFG_FREQ_SEL()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCFG_FREQ_SEL ( uint32 value)
inlinestaticconstexpr

FIRCCFG - FREQ_SEL.

FIRC Configuration Register - Frequency select

  • [0b111]192 MHz FIRC clock selected
  • [0b101]96 MHz FIRC clock selected
  • [0b011]64 MHz FIRC clock selected
  • [0b001]48 MHz FIRC clock selected, divided from 192 MHz

◆ FIRCCSR_COARSE_TRIM_BYPASS()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_COARSE_TRIM_BYPASS ( uint32 value)
inlinestaticconstexpr

FIRCCSR - COARSE_TRIM_BYPASS.

FIRC Control Status Register - Coarse Auto Trim Bypass

  • [0b0]FIRC Coarse Auto Trim NOT Bypassed
  • [0b1]FIRC Coarse Auto Trim Bypassed

◆ FIRCCSR_FIRC_FCLK_PERIPH_EN()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_FIRC_FCLK_PERIPH_EN ( uint32 value)
inlinestaticconstexpr

FIRCCSR - FIRC_FCLK_PERIPH_EN.

FIRC Control Status Register - FRO_HF Clock to peripherals Enable

[0b0]FRO_HF to peripherals is disabled

[0b1]FRO_HF to peripherals is enabled

◆ FIRCCSR_FIRC_SCLK_PERIPH_EN()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_FIRC_SCLK_PERIPH_EN ( uint32 value)
inlinestaticconstexpr

FIRCCSR - FIRC_SCLK_PERIPH_EN.

FIRC Control Status Register - FIRC 48 MHz Clock to peripherals Enable

[0b0]FIRC 48 MHz to peripherals is disabled

[0b1]FIRC 48 MHz to peripherals is enabled

◆ FIRCCSR_FIRCACC()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_FIRCACC ( uint32 value)
inlinestaticconstexpr

FIRCCSR - FIRCACC.

FIRC Control Status Register - FIRC Frequency Accurate

-[0b0]FIRC is not enabled or clock is not accurate.

-[0b1]FIRC is enabled and output clock is accurate after some preparation time which is obtained by counting FRO_HF clock.

◆ FIRCCSR_FIRCACC_IE()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_FIRCACC_IE ( uint32 value)
inlinestaticconstexpr

FIRCCSR - FIRCACC_IE.

FIRC Control Status Register - FIRC Accurate Interrupt Enable

  • [0b0]FIRCACC interrupt is not enabled
  • [0b1]FIRCACC interrupt is enabled

◆ FIRCCSR_FIRCEN()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_FIRCEN ( uint32 value)
inlinestaticconstexpr

FIRCEN.

SIRC Auto-trimming Status Register - FIRC Enable

  • [0b0]FIRC is disabled
  • [0b1]FIRC is enabled

◆ FIRCCSR_FIRCERR()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_FIRCERR ( uint32 value)
inlinestaticconstexpr

FIRCCSR - FIRCERR.

FIRC Control Status Register - FIRC Clock Error

  • [0b0]Error not detected with the FIRC trimming
  • [0b1]Error detected with the FIRC trimming

◆ FIRCCSR_FIRCERR_IE()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_FIRCERR_IE ( uint32 value)
inlinestaticconstexpr

FIRCCSR - FIRCERR_IE.

FIRC Control Status Register - FIRC Clock Error Interrupt Enable

  • [0b0]FIRCERR interrupt is not enabled
  • [0b1]FIRCERR interrupt is enabled

◆ FIRCCSR_FIRCSEL()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_FIRCSEL ( uint32 value)
inlinestaticconstexpr

FIRCCSR - FIRCSEL.

FIRC Control Status Register - FIRC Selected

  • [0b0]FIRC is not the system clock source
  • [0b1]FIRC is the system clock source

◆ FIRCCSR_FIRCSTEN()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_FIRCSTEN ( uint32 value)
inlinestaticconstexpr

FIRCCSR - FIRCSTEN.

FIRC Control Status Register - FIRC Stop Enable

  • [0b0]FIRC is disabled in Deep Sleep mode
  • [0b1]FIRC is enabled in Deep Sleep mode

◆ FIRCCSR_FIRCTREN()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_FIRCTREN ( uint32 value)
inlinestaticconstexpr

FIRCCSR - FIRCTREN.

FIRC Control Status Register - FRO_HF Trim Enable

  • [0b0]Disables trimming FRO_HF by an external clock source
  • [0b1]Enables trimming FRO_HF by an external clock source

◆ FIRCCSR_FIRCTRUP()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_FIRCTRUP ( uint32 value)
inlinestaticconstexpr

FIRCCSR - FIRCTRUP.

FIRC Control Status Register - FIRC Trim Update

  • [0b0]Disables FIRC trimming updates
  • [0b1]Enables FIRC trimming updates

◆ FIRCCSR_FIRCVLD()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_FIRCVLD ( uint32 value)
inlinestaticconstexpr

FIRCCSR - FIRCVLD.

FIRC Control Status Register - FIRC Valid status

  • [0b0]FIRC is not enabled or clock is not valid.
  • [0b1]FIRC is enabled and output clock is valid. The clock is valid after there is an output clock from the FIRC analog.

◆ FIRCCSR_LK()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_LK ( uint32 value)
inlinestaticconstexpr

FIRCCSR - LK.

FIRC Control Status Register - Lock Register

  • [0b0]Control Status Register can be written
  • [0b1]Control Status Register cannot be written

◆ FIRCCSR_TRIM_LOCK()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCCSR_TRIM_LOCK ( uint32 value)
inlinestaticconstexpr

FIRCCSR - TRIM_LOCK.

FIRC Control Status Register - FIRC TRIM LOCK

  • [0b0]FIRC auto trim not locked to target frequency range
  • [0b1]FIRC auto trim locked to target frequency range

◆ FIRCSTAT_TRIMCOAR()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCSTAT_TRIMCOAR ( uint32 value)
inlinestaticconstexpr

FIRCSTAT - TRIMCOAR.

FIRC Auto-trimming Status Register - Trim Coarse

◆ FIRCSTAT_TRIMFINE()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCSTAT_TRIMFINE ( uint32 value)
inlinestaticconstexpr

FIRCSTAT - TRIMFINE.

FIRC Auto-trimming Status Register - Trim Fine

◆ FIRCTCFG_TRIMDIV()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCTCFG_TRIMDIV ( uint32 value)
inlinestaticconstexpr

FIRCCFG - TRIMDIV.

FIRC Configuration Register - FIRC Trim Pre-divider

◆ FIRCTCFG_TRIMSRC()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCTCFG_TRIMSRC ( uint32 value)
inlinestaticconstexpr

FIRCCFG - TRIMSRC.

FIRC Configuration Register - Trim Source

  • [0b00]USB0 Start of Frame (1 KHz). This option does not use TRIMDIV .
  • [0b01]Reserved
  • [0b10]SOSC. This option requires that SOSC be divided using the TRIMDIV field to get a frequency of 1 MHz.
  • [0b11]Reserved

◆ FIRCTRIM_TRIMCOAR()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCTRIM_TRIMCOAR ( uint32 value)
inlinestaticconstexpr

FIRCTRIM - TRIMCOAR.

FIRC Trim Register - Trim Coarse

◆ FIRCTRIM_TRIMFINE()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCTRIM_TRIMFINE ( uint32 value)
inlinestaticconstexpr

FIRCTRIM - TRIMFINE.

FIRC Trim Register - Trim Fine

◆ FIRCTRIM_TRIMSTART()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCTRIM_TRIMSTART ( uint32 value)
inlinestaticconstexpr

FIRCTRIM - TRIMSTART.

FIRC Trim Register - Trim Start

◆ FIRCTRIM_TRIMTEMP2()

static constexpr uint32 mcxa153::chip::scg::SCG::FIRCTRIM_TRIMTEMP2 ( uint32 value)
inlinestaticconstexpr

FIRCTRIM - TRIMTEMP2.

FIRC Trim Register - Trim Temperature2

◆ PARAM_FIRCCLKPRES()

static constexpr uint32 mcxa153::chip::scg::SCG::PARAM_FIRCCLKPRES ( uint32 value)
inlinestaticconstexpr

PARAM - FIRCCLKPRES.

Parameter Register - FIRC Clock Present

  • [0b1]FIRC clock source is present
  • [0b0]FIRC clock source is not present

◆ PARAM_ROSCCLKPRES()

static constexpr uint32 mcxa153::chip::scg::SCG::PARAM_ROSCCLKPRES ( uint32 value)
inlinestaticconstexpr

PARAM - ROSCCLKPRES.

Parameter Register - ROSC Clock Present

  • [0b1]ROSC clock source is present
  • [0b0]ROSC clock source is not present

◆ PARAM_SIRCCLKPRES()

static constexpr uint32 mcxa153::chip::scg::SCG::PARAM_SIRCCLKPRES ( uint32 value)
inlinestaticconstexpr

PARAM - SIRCCLKPRES.

Parameter Register - SIRC Clock Present

  • [0b1]SIRC clock source is present
  • [0b0]SIRC clock source is not present

◆ PARAM_SOSCCLKPRES()

static constexpr uint32 mcxa153::chip::scg::SCG::PARAM_SOSCCLKPRES ( uint32 value)
inlinestaticconstexpr

PARAM - SOSCCLKPRES.

Parameter Register - SOSC Clock Present

  • [0b1]SOSC clock source is present
  • [0b0]SOSC clock source is not present

◆ RCCR_SCS()

static constexpr uint32 mcxa153::chip::scg::SCG::RCCR_SCS ( uint32 value)
inlinestaticconstexpr

CSR - SCS.

Clock Status Register - System Clock Source

  • [0b000]Reserved
  • [0b001]SOSC
  • [0b010]SIRC
  • [0b011]FIRC
  • [0b100]ROSC
  • [0b101-0b111]Reserved

◆ ROSCCSR_LK()

static constexpr uint32 mcxa153::chip::scg::SCG::ROSCCSR_LK ( uint32 value)
inlinestaticconstexpr

ROSCCSR - LK.

ROSC Control Status Register - Lock Register

  • [0b0]Control Status Register can be written
  • [0b1]Control Status Register cannot be written

◆ ROSCCSR_ROSCERR()

static constexpr uint32 mcxa153::chip::scg::SCG::ROSCCSR_ROSCERR ( uint32 value)
inlinestaticconstexpr

ROSCCSR - ROSCERR.

ROSC Control Status Register - ROSC Clock Error

  • [0b0]ROSC Clock has not detected an error
  • [0b1]ROSC Clock has detected an error

◆ ROSCCSR_ROSCSEL()

static constexpr uint32 mcxa153::chip::scg::SCG::ROSCCSR_ROSCSEL ( uint32 value)
inlinestaticconstexpr

ROSCCSR - ROSCSEL.

ROSC Control Status Register - ROSC Selected

  • [0b0]ROSC is not the system clock source
  • [0b1]ROSC is the system clock source

◆ ROSCCSR_ROSCVLD()

static constexpr uint32 mcxa153::chip::scg::SCG::ROSCCSR_ROSCVLD ( uint32 value)
inlinestaticconstexpr

ROSCCSR - ROSCVLD.

ROSC Control Status Register - ROSC Valid

  • [0b0]ROSC is not enabled or clock is not valid
  • [0b1]ROSC is enabled and output clock is valid

◆ SIRCCSR_COARSE_TRIM_BYPASS()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCCSR_COARSE_TRIM_BYPASS ( uint32 value)
inlinestaticconstexpr

SIRCCSR - COARSE_TRIM_BYPASS.

SIRC Control Status Register - Coarse Auto Trim Bypass

  • [0b0]SIRC Coarse Auto Trim NOT Bypassed
  • [0b1]SIRC Coarse Auto Trim Bypassed

◆ SIRCCSR_LK()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCCSR_LK ( uint32 value)
inlinestaticconstexpr

SIRCCSR - LK.

SIRC Control Status Register - Lock Register

  • [0b0]Control Status Register can be written
  • [0b1]Control Status Register cannot be written

◆ SIRCCSR_SIRC_CLK_PERIPH_EN()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCCSR_SIRC_CLK_PERIPH_EN ( uint32 value)
inlinestaticconstexpr

SIRCCSR - SIRC_CLK_PERIPH_EN.

SIRC Control Status Register - SIRC Clock to Peripherals Enable

  • [0b0]SIRC clock to peripherals is disabled
  • [0b1]SIRC clock to peripherals is enabled

◆ SIRCCSR_SIRCERR()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCCSR_SIRCERR ( uint32 value)
inlinestaticconstexpr

SIRCCSR - SIRCERR.

SIRC Control Status Register - SIRC Clock Error

  • [0b0]Error not detected with the SIRC trimming
  • [0b1]Error detected with the SIRC trimming

◆ SIRCCSR_SIRCERR_IE()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCCSR_SIRCERR_IE ( uint32 value)
inlinestaticconstexpr

SIRCCSR - SIRCERR_IE.

SIRC Control Status Register - SIRC Clock Error Interrupt Enable

  • [0b0]SIRCERR interrupt is not enabled
  • [0b1]SIRCERR interrupt is enabled

◆ SIRCCSR_SIRCSEL()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCCSR_SIRCSEL ( uint32 value)
inlinestaticconstexpr

SIRCCSR - SIRCSEL.

SIRC Control Status Register - SIRC Selected

  • [0b0]SIRC is not the system clock source
  • [0b1]SIRC is the system clock source

◆ SIRCCSR_SIRCSTEN()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCCSR_SIRCSTEN ( uint32 value)
inlinestaticconstexpr

SIRCCSR - SIRCSTEN.

SIRC Control Status Register - SIRC Stop Enable

  • [0b0]SIRC is disabled in Deep Sleep mode
  • [0b1]SIRC is enabled in Deep Sleep mode

◆ SIRCCSR_SIRCTREN()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCCSR_SIRCTREN ( uint32 value)
inlinestaticconstexpr

SIRCCSR - SIRCTREN.

SIRC Control Status Register - SIRC 12 MHz Trim Enable (SIRCCFG[RANGE]=1)

  • [0b0]Disables trimming SIRC to an external clock source
  • [0b1]Enables trimming SIRC to an external clock source

◆ SIRCCSR_SIRCTRUP()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCCSR_SIRCTRUP ( uint32 value)
inlinestaticconstexpr

SIRCTRUP.

SIRC Control Status Register - SIRC Trim Update

  • [0b0]Disables SIRC trimming updates
  • [0b1]Enables SIRC trimming updates

◆ SIRCCSR_SIRCVLD()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCCSR_SIRCVLD ( uint32 value)
inlinestaticconstexpr

SIRCCSR - SIRCVLD.

SIRC Control Status Register - SIRC Valid

  • [0b0]SIRC is not enabled or clock is not valid
  • [0b1]SIRC is enabled and output clock is valid

◆ SIRCCSR_TRIM_LOCK()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCCSR_TRIM_LOCK ( uint32 value)
inlinestaticconstexpr

SIRCCSR - TRIM_LOCK.

SIRC Control Status Register - SIRC TRIM LOCK

  • [0b0]SIRC auto trim not locked to target frequency range
  • [0b1]SIRC auto trim locked to target frequency range

◆ SIRCSTAT_CCOTRIM()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCSTAT_CCOTRIM ( uint32 value)
inlinestaticconstexpr

SIRCSTAT - CCOTRIM.

SIRC Trim Register - CCO Trim

◆ SIRCSTAT_CLTRIM()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCSTAT_CLTRIM ( uint32 value)
inlinestaticconstexpr

SIRCSTAT - CLTRIM.

SIRC Auto-trimming Status Register - CL Trim

◆ SIRCTCFG_TRIMDIV()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCTCFG_TRIMDIV ( uint32 value)
inlinestaticconstexpr

SIRCTCFG - TRIMDIV.

SIRC Trim Configuration Register - SIRC Trim Pre-divider

◆ SIRCTCFG_TRIMSRC()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCTCFG_TRIMSRC ( uint32 value)
inlinestaticconstexpr

SIRCTCFG - TRIMSRC.

SIRC Trim Configuration Register - Trim Source

  • [0b00]Reserved
  • [0b01]Reserved
  • [0b10]SOSC. This option requires that SOSC be divided using the TRIMDIV field to get a frequency of 1 MHz.
  • [0b11]Reserved

◆ SIRCTRIM_CCOTRIM()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCTRIM_CCOTRIM ( uint32 value)
inlinestaticconstexpr

SIRCTRIM - CCOTRIM.

SIRC Trim Register - CCO Trim

◆ SIRCTRIM_CLTRIM()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCTRIM_CLTRIM ( uint32 value)
inlinestaticconstexpr

SIRCTRIM - CLTRIM.

SIRC Trim Register - CL Trim

◆ SIRCTRIM_FVCHTRIM()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCTRIM_FVCHTRIM ( uint32 value)
inlinestaticconstexpr

SIRCTRIM - FVCHTRIM.

SIRC Trim Register

◆ SIRCTRIM_TCTRIM()

static constexpr uint32 mcxa153::chip::scg::SCG::SIRCTRIM_TCTRIM ( uint32 value)
inlinestaticconstexpr

SIRCTRIM - TCTRIM.

SIRC Trim Register - Trim Temp

◆ SOSCCFG_EREFS()

static constexpr uint32 mcxa153::chip::scg::SCG::SOSCCFG_EREFS ( uint32 value)
inlinestaticconstexpr

SOSCCFG - EREFS.

SOSC Configuration Register - External Reference Select

  • [0b0]External reference clock selected.
  • [0b1]Internal crystal oscillator of OSC selected.

◆ SOSCCFG_RANGE()

static constexpr uint32 mcxa153::chip::scg::SCG::SOSCCFG_RANGE ( uint32 value)
inlinestaticconstexpr

SOSCCFG - RANGE.

SOSC Configuration Register - SOSC Range Select

  • [0b00]Frequency range select of 8-16 MHz.
  • [0b01]Frequency range select of 16-25 MHz.
  • [0b10]Frequency range select of 25-40 MHz.
  • [0b11]Frequency range select of 40-50 MHz.

◆ SOSCCSR_LK()

static constexpr uint32 mcxa153::chip::scg::SCG::SOSCCSR_LK ( uint32 value)
inlinestaticconstexpr

SOSCCSR - LK.

SOSC Control Status Register - Lock Register

  • [0b0]This Control Status Register can be written
  • [0b1]This Control Status Register cannot be written

◆ SOSCCSR_SOSCCM()

static constexpr uint32 mcxa153::chip::scg::SCG::SOSCCSR_SOSCCM ( uint32 value)
inlinestaticconstexpr

SOSCCSR - SOSCCM.

SOSC Control Status Register - SOSC Clock Monitor Enable

  • [0b0]SOSC Clock Monitor is disabled
  • [0b1]SOSC Clock Monitor is enabled

◆ SOSCCSR_SOSCCMRE()

static constexpr uint32 mcxa153::chip::scg::SCG::SOSCCSR_SOSCCMRE ( uint32 value)
inlinestaticconstexpr

SOSCCSR - SOSCCMRE.

SOSC Control Status Register - SOSC Clock Monitor Reset Enable

  • [0b0]Clock monitor generates an interrupt when an error is detected
  • [0b1]Clock monitor generates a reset when an error is detected

◆ SOSCCSR_SOSCEN()

static constexpr uint32 mcxa153::chip::scg::SCG::SOSCCSR_SOSCEN ( uint32 value)
inlinestaticconstexpr

RCCR - SOSCEN.

Run Clock Control Register - SOSC Enable

  • [0b0]SOSC is disabled
  • [0b1]SOSC is enabled

◆ SOSCCSR_SOSCERR()

static constexpr uint32 mcxa153::chip::scg::SCG::SOSCCSR_SOSCERR ( uint32 value)
inlinestaticconstexpr

SOSCCSR - SOSCERR.

SOSC Control Status Register - SOSC Clock Error

-[0b0]SOSC Clock Monitor is disabled or has not detected an error

-[0b1]SOSC Clock Monitor is enabled and detected an error

◆ SOSCCSR_SOSCSEL()

static constexpr uint32 mcxa153::chip::scg::SCG::SOSCCSR_SOSCSEL ( uint32 value)
inlinestaticconstexpr

SOSCCSR - SOSCSEL.

SOSC Control Status Register - SOSC Selected

  • [0b0]SOSC is not the system clock source
  • [0b1]SOSC is the system clock source

◆ SOSCCSR_SOSCSTEN()

static constexpr uint32 mcxa153::chip::scg::SCG::SOSCCSR_SOSCSTEN ( uint32 value)
inlinestaticconstexpr

SOSCCSR - SOSCSTEN.

SOSC Control Status Register - SOSC Stop Enable

[0b0]SOSC is disabled in Deep Sleep mode

[0b1]SOSC is enabled in Deep Sleep mode only if SOSCEN is set

◆ SOSCCSR_SOSCVLD()

static constexpr uint32 mcxa153::chip::scg::SCG::SOSCCSR_SOSCVLD ( uint32 value)
inlinestaticconstexpr

SOSCVLD.

SOSC Control Status Register - SOSC Valid

  • [0b0]SOSC is not enabled or clock is not valid
  • [0b1]SOSC is enabled and output clock is valid

◆ SOSCCSR_SOSCVLD_IE()

static constexpr uint32 mcxa153::chip::scg::SCG::SOSCCSR_SOSCVLD_IE ( uint32 value)
inlinestaticconstexpr

SOSCCSR - SOSCVLD_IE.

SOSC Control Status Register - SOSC Valid Interrupt Enable

  • [0b0]SOSCVLD interrupt is not enabled
  • [0b1]SOSCVLD interrupt is enabled

◆ TRIM_LOCK_IFR_DISABLE()

static constexpr uint32 mcxa153::chip::scg::SCG::TRIM_LOCK_IFR_DISABLE ( uint32 value)
inlinestaticconstexpr

TRIM_LOCK - IFR_DISABLE.

Trim Lock register - IFR_DISABLE

[0b0]IFR write access to SCG trim registers not disabled. The SCG Trim registers are reprogrammed with the IFR values after any system reset.

[0b1]IFR write access to SCG trim registers during system reset is blocked.

◆ TRIM_LOCK_TRIM_LOCK_KEY()

static constexpr uint32 mcxa153::chip::scg::SCG::TRIM_LOCK_TRIM_LOCK_KEY ( uint32 value)
inlinestaticconstexpr

TRIM_LOCK - TRIM_LOCK_KEY.

Trim Lock register - TRIM_LOCK_KEY

◆ TRIM_LOCK_TRIM_UNLOCK()

static constexpr uint32 mcxa153::chip::scg::SCG::TRIM_LOCK_TRIM_UNLOCK ( uint32 value)
inlinestaticconstexpr

PARAM - TRIM_UNLOCK.

Parameter Register - TRIM_UNLOCK

  • [0b0]SCG Trim Registers locked and not writable.
  • [0b1]SCG Trim registers unlocked and writable.

◆ VERID_VERSION()

static constexpr uint32 mcxa153::chip::scg::SCG::VERID_VERSION ( uint32 value)
inlinestaticconstexpr

VERID - VERSION.

Version ID Register - SCG Version Number


此類別(class) 文件是由下列檔案中產生: