12310911231091
【發明所屬之技術領域】 本發明係有關於一種互補金氧半導體(CM〇s) 晶體振盪器’尤其是有關於一種具有啟動控制的時脈產生 【先前技術】 第la圖係為一習知的晶體單元1〇〇a,用以產生一時脈 矾號。為了產生該時脈訊號,輸入端點丨〇工和輸出端點】〇 3 耦接於一外接振盪源,例如石英晶體電路,藉以使一振盪 訊號可被放大器1 0 2放大並輸出至成形電路丨〇 4。該振蘯訊 號基本上疋個弦波,而該成形電路1 〇 4可以是個成形暫衝 斋,用以轉換該振盪訊號為方波。藉此該晶體單元1 〇 h便 成為一時脈產生器。如此的架構因可靠簡便而廣為使用, 但有一些缺點,但如啟動時間不確定。如第丨b圖所示,傳 統做法是加上一計數器丨07以解決這個問題。該計數器 1 0 7可以計异方波變化次數,在該變化次數到達一定值時 發出一就緒訊號。這種設計需要額外的成本,而且可能因 雜訊跳動而計數錯誤,導致系統當機。 b 第lc圖顯示習知技術中另一種晶體單元1〇〇b。該輸入 端點1 01,放大器1 〇 2和輸出端點1 〇 3與第1 a圖無異。然而 该成形電路1 0 4被代換成一遲滯電路1 〇 5。此法仍然因為維 持著可靠易用與低廉成本而受歡迎。然而,該遲滯電路 1 0 5若採用小遲滯裝置,則計數錯誤的問題仍然存在於計 數器1 0 7中(如第1 d圖所示),而若是採用大遲滯裝置, 則較容易因為電源彈跳(power bouncing)而使工作週期[Technical field to which the invention belongs] The present invention relates to a complementary metal-oxide-semiconductor (CM0s) crystal oscillator ', and more particularly to a clock generator with start-up control. [Prior Art] Figure 1a is a conventional knowledge The crystal unit 100a is used to generate a clock pulse alum. In order to generate the clock signal, the input terminal and the output terminal] are coupled to an external oscillation source, such as a quartz crystal circuit, so that an oscillation signal can be amplified by the amplifier 102 and output to the shaping circuit.丨 〇4. The vibrating signal is basically a sine wave, and the shaping circuit 104 may be a shaping transient, used to convert the oscillating signal into a square wave. With this, the crystal unit becomes a clock generator for 10 h. This architecture is widely used due to its reliability and simplicity, but it has some disadvantages, such as uncertain startup time. As shown in Figure 丨 b, the traditional approach is to add a counter 07 to solve this problem. The counter 1 0 7 can count the number of times of the square wave change, and send out a ready signal when the number of changes reaches a certain value. This design requires additional costs and can cause counting errors due to noise bounces, which can cause the system to crash. b Figure lc shows another crystal unit 100b in the conventional technique. The input terminal 101, the amplifier 102 and the output terminal 103 are no different from those in the first figure. However, the shaping circuit 104 is replaced with a hysteresis circuit 105. This method is still popular for its reliability, ease of use, and low cost. However, if the hysteresis circuit 105 uses a small hysteresis device, the problem of counting errors still exists in the counter 107 (as shown in Figure 1d), and if a large hysteresis device is used, it is easier to jump because of the power supply. (Power bouncing)
12310911231091
頁 1231091Page 1231091
(deasserted ) 步可包含一開關 電路。 阻止輸出該時脈訊號。該時脈產生器進一 用以在s亥就緒訊號被設立時關閉該偵測 本發明另提供一時脈訊號的啟動控制方法。首先,產 生-振盪訊號’轉換成一時脈訊號。接著提供一偵測電路 以偵測該振盪訊號的振幅,並在該振幅超過一全擺動電壓 的-比例時,設立-就緒訊號。最後,在該就緒訊號被設 立時,關閉該偵測電路並輸出時脈訊號。 【實施方式】 & 本發明的詳細實施例提供如下。 本發明主要精神在於新增一組偵測電路,以協定判斷 該振盪訊號何時就緒可用。如第2 a圖所示,在一晶體單元 20 0a中,輸入端點101,放大器1〇2,輸出端點1〇3和成形 電路104與第la圖無異。不同的是,新增了 一包含大遲滯 電路202的偵測電路201,耦接於輸出端點1〇3。該大遲滯 電路202可用來偵測從放大器丨〇2輸出的弦波的振幅。該大 遲滯電路20 2專責處理就緒偵測的功能,其大遲滯特性免 除了計數錯誤的問題。相對地,該成形電路丨〇4中所包含 的是一小遲滯電路,或史密斯觸發器(Schmit1: trigger ),其小遲滯特性可用來防止電源彈跳帶來的衝擊。 二。如第3圖所示,當該時脈產生器電源啟動時,該振盪 訊號顯示為一弦波,隨著時間,振幅漸增,最後終於形成 一全擺動訊號。在一實施例中,與該全擺動訊號的振幅做 比較,當该振盪訊號的波峰高於百分之七十五,而波谷低The (deasserted) step may include a switching circuit. Prevent the clock signal from being output. The clock generator is further configured to turn off the detection when the sah-ready signal is established. The present invention also provides a method for controlling the start of a clock signal. First, the generation-oscillation signal 'is converted into a clock signal. A detection circuit is then provided to detect the amplitude of the oscillating signal, and a -ready signal is set when the amplitude exceeds a -ratio of a full swing voltage. Finally, when the ready signal is set, the detection circuit is turned off and a clock signal is output. [Embodiment] & Detailed examples of the present invention are provided as follows. The main spirit of the present invention is to add a set of detection circuits to determine when the oscillating signal is ready for use. As shown in Fig. 2a, in a crystal unit 200a, the input terminal 101, the amplifier 102, the output terminal 103, and the shaping circuit 104 are no different from those in Fig. 1a. The difference is that a detection circuit 201 including a large hysteresis circuit 202 is added, which is coupled to the output terminal 103. The large hysteresis circuit 202 can be used to detect the amplitude of the sine wave output from the amplifier 02. The large hysteresis circuit 202 is responsible for handling the readiness detection function, and its large hysteresis characteristic eliminates the problem of counting errors. In contrast, what is included in the forming circuit 〇04 is a small hysteresis circuit, or a Smith trigger (Schmit1: trigger). The small hysteresis characteristic can be used to prevent the impact caused by power bounce. two. As shown in Figure 3, when the clock generator is powered on, the oscillating signal is displayed as a sine wave. With time, the amplitude gradually increases, and finally a full swing signal is finally formed. In an embodiment, compared with the amplitude of the full swing signal, when the peak of the oscillating signal is higher than 75% and the trough is lower
1231091 五、發明說明(4) 於百分之二十五時,該時脈產生器便視為準備就緒。於是 該大遲滯電路202發出一就緒訊號,使後續相關動作接連 進行。 在第2 b圖中,新增了 一開關2 0 4。由於該偵測電路2 〇 j 僅用於偵測就緒狀態,在工作結束後可以關閉。例如透過 該就緒訊號,使該開關2 0 4關閉該偵測電路2 〇 1。 在第2 c圖中,舉另一實施例,該偵測電路2 〇 1更進一 步新增一計數器2 0 6,用來計數該大遲滞電路2 〇 2所輸出 的振幅變化次數。因此訊號就緒的判斷方式,可以根據振 幅大小,也可以根據振盪電壓來回正負之間的次數是否超 過一定值。由於大遲滯電路2 0 2的大遲滯特性,不容易發 生計數錯誤的問題,因此確保了偵測的可靠度。此外該X振 盪訊號係透過該成形電路104轉換成方波,而不是透過該、 大遲滯電路,所以不會因為電源彈跳而產生不平衡的工作 週期。當該計數器2 0 6設立了該就緒訊號,開關2〇4便同時 關閉’使該偵測電路2 0 1停止運作(包含了大遲滯電路2 〇 2 和計數器2 0 6 )。 彳 第2d圖另舉一實施例,其中新增一邏輯及閘(and gate) 210,用以控制該晶體單元2〇〇d的輪出。該邏輯及 閘210在從啟動重置計數器2〇8接收到該就緒訊號之前, 都不會輸出方波。&句話說,此時脈產生器在該邏輯及閘 210的控制之下,不會輸出任何不需要的雜訊或未就緒的 日寸脈訊號。直到該邏輯及閘210因就緒訊號而開啟,時脈 訊號才可被輸出使用。1231091 V. Description of the invention (4) At 25%, the clock generator is considered ready. Then, the large hysteresis circuit 202 sends a ready signal, so that subsequent related actions are successively performed. In Figure 2b, a switch 2 0 4 is added. Since the detection circuit 2 0 j is only used to detect the ready state, it can be turned off after the work is completed. For example, by using the ready signal, the switch 204 turns off the detection circuit 201. In Fig. 2c, taking another embodiment, the detection circuit 201 further adds a counter 206 for counting the number of amplitude changes output by the large hysteresis circuit 202. Therefore, the method of determining the signal readiness can be based on the amplitude of the amplitude or whether the number of times between the positive and negative values of the oscillation voltage has exceeded a certain value. Due to the large hysteresis characteristic of the large hysteresis circuit 202, the problem of counting errors is unlikely to occur, so the reliability of detection is ensured. In addition, the X-oscillation signal is converted into a square wave by the shaping circuit 104, rather than through the large hysteresis circuit, so an unbalanced working cycle will not be generated due to power bounce. When the ready signal is set by the counter 2 0 6, the switch 2 0 is closed at the same time to stop the detection circuit 2 1 (including the large hysteresis circuit 2 0 2 and the counter 2 0 6).彳 FIG. 2d illustrates another embodiment, in which a logic AND gate 210 is added to control the rotation of the crystal unit 200d. The logic AND gate 210 will not output a square wave until it receives the ready signal from the start reset counter 208. In other words, at this time, the pulse generator is under the control of the logic AND gate 210, and will not output any unwanted noise or unread pulse signals. Until the logic AND gate 210 is opened due to the ready signal, the clock signal can be used for output.
12310911231091
1231091 圖式簡單說明 【圖示簡單說明】 本發明所舉之實施例,將搭配下列圖示得到最佳理 解,其中: 第1 a圖到第1 d圖係為習知時脈產生器的各種架構圖; 第2a圖與第2d圖係為本發明時脈產生器的各種實施例 架構圖;以及 第3圖係為關於第2a圖至第2d圖的訊號變化曲線。 【主要元件符號說明】 10 0a 〜100d晶體單元 101〜 ,輸 入 端 點 102〜 '放 大 器 103〜 ,輸 出 端 點 104〜 ,成 形 電 路 105〜 .遲 滯 電 路 107〜 ’計 數 器 201〜 ,偵 測 電 路 2 0 2〜 大 遲 滯 電路 204〜 開 關 2 0 6〜 計 數 器 20 8〜 啟 動 重 置計數器 210〜 邏 輯 及 閘(A N D g a t 2 0 0 a , ~ 2 0 0 d , -晶體單元1231091 Brief description of the drawings [Simplified illustration of the drawings] The embodiments of the present invention will be best understood with the following drawings, among which: Figures 1a to 1d are the various types of conventional clock generators. Architecture diagrams; Figures 2a and 2d are structural diagrams of various embodiments of the clock generator of the present invention; and Figure 3 is a signal variation curve regarding Figures 2a to 2d. [Description of main component symbols] 10 0a to 100d crystal unit 101 to, input terminal 102 to 'amplifier 103 to, output terminal 104 to, forming circuit 105 to. Hysteresis circuit 107 to' counter 201 to ', detection circuit 2 0 2 ~ Large hysteresis circuit 204 ~ Switch 2 0 6 ~ Counter 20 8 ~ Start reset counter 210 ~ Logic AND gate (AND gat 2 0 0 a, ~ 2 0 0 d,-crystal unit
0697-A40233TWF(N2);P2004-002-TW-B;YEATSLUQ;.ptd 第11頁0697-A40233TWF (N2); P2004-002-TW-B; YEATSLUQ; .ptd Page 11