soc(二) 時鐘

  • 時鐘與soc的關係
時鐘爲soc的各個組件提供統一步調.原理是什麼?
	關鍵詞:D觸發器,flip-flop
	https://www.cnblogs.com/PengfeiSong/p/6348093.html
	https://blog.csdn.net/weixin_38440112/article/details/70543982
	https://blog.csdn.net/beeka/article/details/50240565
	http://www.360doc.com/content/16/0419/07/908538_551811235.shtml
	https://blog.csdn.net/weixin_34111819/article/details/93275151
	https://www.zhihu.com/question/360077496/answer/929824757
	https://www.zhihu.com/question/21981280
	https://www.zhihu.com/question/53019975
	CPU大部分由數字同步邏輯組成,可以看作成某種意義上的流水線.
	Flop保持數據,邏輯門處理數據;處理好了傳遞給下一個人。
	邏輯門處理數據需要一定時間,在這個時間裏,要Flop要保持數據的穩定性。
	這個過程需要Clock這個節奏器來同步,來告訴Flop啥時候可以接受新的從上面一個人那裏傳來的數據,來給自己的邏輯門處理.
各個組件時鐘頻率相同嗎?如果不同怎麼協調?
	sram 與 cpu 頻率一致
	如果不同,一般中間加個控制器就行了
時鐘一般在 soc 中表現爲什麼?
  * 外部直接輸入時鐘信號,SoC有個引腳用來輸入外部時鐘信號,用的很少。
  * 外部晶振+內部時鐘發生器產生時鐘,大部分低頻單片機都是這麼工作的。
  * 外部晶振+內部時鐘發生器+內部PLL產生高頻時鐘+內部分頻器分頻得到各種頻率的時鐘,210屬於這種。

soc實例中的時鐘

  • cortex-m
時鐘供給分類
	外部時鐘
		外部高速時鐘 // HSE
			– external 4-to-26 MHz crystal oscillator // 需要外接
		外部低速時鐘 // LSE
			LSE OSC 32.768K
	內部時鐘
		內部高速時鐘 // HSI
			– Internal 16 MHz factory-trimmed RC (1% accuracy)
			The wakeup times given in Table 25 is measured on a wakeup phase with a 16 MHz HSI RC oscillator. 
		外部高速時鐘
			– Internal 32 kHz RC with calibration
				– 32 kHz oscillator for RTC with calibration // 供獨立看門狗和自動喚醒單元使用

時鐘倍頻分頻
	PLL

啓動時的時鐘配置
	On reset the 16 MHz internal RC oscillator is selected as the default CPU clock. 
	The 16 MHz internal RC oscillator is factory-trimmed to offer 1% accuracy over the full temperature range. 
	
	The application can then select as system clock either the RC oscillator or an external 4-26 MHz clock source. 
	
	This clock can be monitored for failure. If a failure is detected, the system automatically switches back to the internal RC oscillator and a software interrupt is generated (if enabled). This clock source is input to a PLL thus allowing to increase the frequency up to 168 MHz. 

cpu的頻率
	frequency up to 168 MHz
  • s2c2440
OM[3:2] 配置 Clock Source Selection at Boot-Up
  • i.mx6ull
晶振經 OSC(振盪器之後) ,經 時鐘產生器, 產生時鐘,然後經過CCM,經過 LPCG 產生各個模塊的時鐘

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章