TWI751796B - Processor that can directly start output by external signal - Google Patents

Processor that can directly start output by external signal Download PDF

Info

Publication number
TWI751796B
TWI751796B TW109140366A TW109140366A TWI751796B TW I751796 B TWI751796 B TW I751796B TW 109140366 A TW109140366 A TW 109140366A TW 109140366 A TW109140366 A TW 109140366A TW I751796 B TWI751796 B TW I751796B
Authority
TW
Taiwan
Prior art keywords
signal
processor
voltage level
control module
timing counting
Prior art date
Application number
TW109140366A
Other languages
Chinese (zh)
Other versions
TW202222036A (en
Inventor
梁偉成
張平
Original Assignee
芯巧科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 芯巧科技股份有限公司 filed Critical 芯巧科技股份有限公司
Priority to TW109140366A priority Critical patent/TWI751796B/en
Application granted granted Critical
Publication of TWI751796B publication Critical patent/TWI751796B/en
Publication of TW202222036A publication Critical patent/TW202222036A/en

Links

Images

Landscapes

  • Microcomputers (AREA)

Abstract

本發明係一種可由外部訊號直接啟動輸出的處理器,主要由一輸入單 元、一輸出單元以及一計時計數控制模組組成,且該計時計數控制模組與該輸入單元以及該輸出單元電性連接,其中,由該輸入單元取得一觸發訊號,該計時計數控制模組根據該觸發訊號來控制該輸出單元輸出一可程式脈衝訊號,藉此,該處理器無須透過內部核心邏輯區塊即可根據該觸發訊號即時產生並輸出該可程式脈衝訊號,達到提升控制精準度的目的。 The present invention is a processor that can be directly activated and output by an external signal, mainly consisting of an input unit. unit, an output unit and a timing counting control module, and the timing counting control module is electrically connected with the input unit and the output unit, wherein a trigger signal is obtained from the input unit, and the timing counting control module The output unit is controlled to output a programmable pulse signal according to the trigger signal, whereby the processor can instantly generate and output the programmable pulse signal according to the trigger signal without passing through the internal core logic block, so as to improve the control accuracy the goal of.

Description

可由外部訊號直接啟動輸出的處理器 The output processor can be directly activated by an external signal

本發明係關於一種處理器,尤指一種可由外部訊號直接啟動輸出的處理器。 The present invention relates to a processor, especially a processor whose output can be directly activated by an external signal.

一般來說,微處理器(Micro Processing Unit,MPU)、微控制器(Micro Control Unit,MCU)等等的處理器通常係以內部核心邏輯區塊、周邊功能區塊以及輸入輸出介面所組成,如圖5所示,係一種已知的處理器600,其包括一內部核心邏輯區塊610(運算邏輯單元611)、一周邊功能區塊620(計時計數器621、程式記憶體622、暫存器623)以及一輸入輸出介面630(輸入埠631、輸岀埠632),該處理器600並藉由該內部核心邏輯區塊610來控制該周邊功能區塊620的運作以及該輸入輸出介面630所傳送或接收的訊號。而為了優化該處理器600的效能,通常該處理器600更包括一中斷產生器640,該中斷產生器640用以使該處理器600中斷執行現有的程式,轉而執行另一個程式,並在完成執行另一個程式後繼續執行現有的程式,藉由中斷操作而不等待現有的程式執行完畢。 Generally speaking, processors such as Micro Processing Unit (MPU) and Micro Control Unit (MCU) are usually composed of internal core logic blocks, peripheral function blocks and input and output interfaces. As shown in FIG. 5, a known processor 600 includes an internal core logic block 610 (operation logic unit 611), a peripheral function block 620 (timer counter 621, program memory 622, register 623) and an input and output interface 630 (input port 631, output port 632), the processor 600 controls the operation of the peripheral functional block 620 and the input and output interface 630 through the internal core logic block 610. transmitted or received signals. In order to optimize the performance of the processor 600, usually the processor 600 further includes an interrupt generator 640, and the interrupt generator 640 is used to cause the processor 600 to interrupt the execution of the existing program, and then execute another program, and then Continue the execution of the existing program after completing the execution of another program, by interrupting the operation without waiting for the completion of the existing program.

然而,雖然已知的處理器已引進了中斷操作的操作方式,但已知的處理器仍需要等待數十個時脈週期之後,才能輸出所需訊號,即現有的中斷操作仍造成訊號輸出的延遲,因此,確實有待提出更佳解決方案的必要性。 However, although the known processor has introduced the operation mode of the interrupt operation, the known processor still needs to wait for dozens of clock cycles before outputting the required signal, that is, the existing interrupt operation still causes the signal output to fail. delay, therefore, the need for a better solution is really pending.

有鑑於上述現有技術之不足,本發明的主要目的在於提供一可由外部訊號直接啟動輸出的處理器,其不須透過處理器的內部核心邏輯區塊,即可根據外部的觸發訊號來產生可程式脈衝訊號,藉此,達到提升控制精準度的目的。 In view of the above-mentioned deficiencies of the prior art, the main purpose of the present invention is to provide a processor that can be directly activated and output by an external signal, which can generate a programmable signal according to an external trigger signal without going through the internal core logic block of the processor. Pulse signal, thereby achieving the purpose of improving the control accuracy.

為達成上述目的所採取的主要技術手段係令前述可由外部訊號直接啟動輸出的處理器包括:一輸入單元;一輸出單元;一計時計數控制模組,與該輸入單元以及該輸出單元電性連接,一暫存器,與該計時計數控制模組電性連接;以及一內部核心邏輯區塊,與該暫存器電性連接;其中,由該輸入單元取得一觸發訊號,該計時計數控制模組根據該觸發訊號控制該輸出單元輸出一可程式脈衝訊號,該處理器不以該內部核心邏輯區塊來控制該輸出單元輸出該可程式脈衝訊號。 The main technical means adopted to achieve the above purpose is to make the aforementioned processor whose output can be directly activated by an external signal to include: an input unit; an output unit; a timing counting control module, which is electrically connected to the input unit and the output unit , a register, electrically connected with the timing counting control module; and an internal core logic block, electrically connected with the register; wherein, a trigger signal is obtained from the input unit, the timing counting control module The group controls the output unit to output a programmable pulse signal according to the trigger signal, and the processor does not use the internal core logic block to control the output unit to output the programmable pulse signal.

由上述構造,該計時計數控制模組可根據該觸發訊號產生該可程式脈衝訊號,使該處理器其不須等待該內部核心邏輯區塊的運算,即可根據外部的該觸發訊號來產生該可程式脈衝訊號,藉此達到提升控制精準度的目的。 With the above structure, the timing count control module can generate the programmable pulse signal according to the trigger signal, so that the processor can generate the programmable pulse signal according to the external trigger signal without waiting for the operation of the internal core logic block. Programmable pulse signal to achieve the purpose of improving control accuracy.

10:輸入單元 10: Input unit

20、20a、20b:計時計數控制模組 20, 20a, 20b: timing counting control module

21:正反器 21: Flip-flop

22:第一邏輯閘 22: The first logic gate

221:第一輸入端 221: the first input terminal

222:第二輸入端 222: The second input terminal

223:輸出端 223: output terminal

23:第二邏輯閘 23: The second logic gate

231:第一輸入端 231: the first input

232:第二輸入端 232: the second input

233:輸出端 233: output terminal

24:計時計數單元 24: Timing counting unit

30:輸出單元 30: Output unit

40、40a、40b:暫存器 40, 40a, 40b: scratchpad

50:內部核心邏輯區塊 50: Internal core logic block

100、100’:處理器 100, 100': Processor

600:處理器 600: Processor

610:內部核心邏輯區塊 610: Internal core logic block

611:運算邏輯單元 611: Operational logic unit

620:周邊功能區塊 620: Peripheral functional blocks

621:計時計數器 621: timer counter

622:程式記憶體 622: Program memory

623:暫存器 623: Scratchpad

630:輸入輸出介面 630: Input and output interface

631:輸入埠 631: input port

632:輸岀埠 632: Lost port

640:中斷產生器 640: Interrupt Generator

CLK:時脈輸入端 CLK: clock input terminal

Clock:內部時脈訊號 Clock: Internal clock signal

D:輸入端 D: input terminal

event:溢位訊號 event: overflow signal

gated clock:閘控時脈訊號 gated clock: gated clock signal

ONtrigger:觸發訊號 ONtrigger: trigger signal

ONlatch:閂鎖訊號 ONlatch: Latch signal

Pprogram:可程式脈衝訊號 Pprogram: Programmable pulse signal

Q:輸出端 Q: output terminal

R:重置端 R: reset terminal

D-FF Reset:重置訊號 D-FF Reset: reset signal

S:設定端 S: setting terminal

Ta、Ta1、Tb、Tc、Tc1:時點 Ta, Ta1, Tb, Tc, Tc1: time point

Vh:邏輯高電位 Vh: logic high potential

圖1係本發明之實施例的系統架構方塊圖。 FIG. 1 is a block diagram of a system architecture according to an embodiment of the present invention.

圖2係本發明之實施例的又一系統架構方塊圖。 FIG. 2 is a block diagram of yet another system architecture according to an embodiment of the present invention.

圖3係本發明之計時計數控制模組的一實施例的架構方塊圖。 FIG. 3 is a structural block diagram of an embodiment of the timing counting control module of the present invention.

圖4係本發明之一實施例的時序示意圖。 FIG. 4 is a timing diagram of an embodiment of the present invention.

圖5係一種已知的處理器之系統架構示意圖。 FIG. 5 is a schematic diagram of a system architecture of a known processor.

關於本發明可由外部訊號直接啟動輸出的處理器之一實施例,請參閱圖1所示,該處理器100至少包括一輸入單元10、一計時計數控制模組20,一輸出單元30、一暫存器40以及一內部核心邏輯區塊50。該輸入單元10用以接收一觸發訊號ONtrigger。該計時計數控制模組20與該輸入單元10電性連接,用以透過該輸入單元10接收該觸發訊號ONtrigger,該輸出單元30與該計時計數控制模組20電性連接,該輸出單元30用以輸出該計時計數控制模組20產生的一可程式脈衝訊號Pprogram,該暫存器40與該計時計數控制模組20電性連接,該內部核心邏輯區塊50與該暫存器40電性連接。換言之,該計時計數控制模組20係用以根據該觸發訊號ONtrigger控制該輸出單元30輸出該可程式脈衝訊號Pprogram。藉此,該處理器100無須等待該內部核心邏輯區塊50的運算,即可根據外部的該觸發訊號ONtrigger以及該計時計數控制模組20,即時地產生該可程式脈衝訊號Pprogram,避免該內部核心邏輯區塊50造成的延遲,達到提升精準控制的目的。 For an embodiment of the present invention, the processor that can be directly activated and output by an external signal, please refer to FIG. 1 , the processor 100 at least includes an input unit 10 , a timing counting control module 20 , an output unit 30 , a temporary memory 40 and an internal core logic block 50 . The input unit 10 is used for receiving a trigger signal ONtrigger. The timing counting control module 20 is electrically connected to the input unit 10 for receiving the trigger signal ONtrigger through the input unit 10 , the output unit 30 is electrically connected to the timing counting control module 20 , and the output unit 30 uses To output a programmable pulse signal Pprogram generated by the timing counting control module 20, the register 40 is electrically connected with the timing counting control module 20, and the internal core logic block 50 is electrically connected with the register 40 connect. In other words, the timing control module 20 is used for controlling the output unit 30 to output the programmable pulse signal Pprogram according to the trigger signal ONtrigger. In this way, the processor 100 can generate the programmable pulse signal Pprogram in real time according to the external trigger signal ONtrigger and the timing counting control module 20 without waiting for the operation of the internal core logic block 50 to avoid the internal The delay caused by the core logic block 50 achieves the purpose of improving precise control.

於一實施例中,該觸發訊號為該處理器100之內部觸發訊號或由該處理器100之外部電路所接收之一外部觸發訊號。 In one embodiment, the trigger signal is an internal trigger signal of the processor 100 or an external trigger signal received by an external circuit of the processor 100 .

於一實施例中,該處理器100可實現為應用於切換式電力轉換器、馬達驅動控制器或自動反應控制器之控制器,且本發明不以此為限制。 In one embodiment, the processor 100 can be implemented as a controller applied to a switching power converter, a motor drive controller or an automatic response controller, and the present invention is not limited thereto.

於一實施例中,該輸入單元10以及該輸出單元30為該處理器100之輸入輸出埠。 In one embodiment, the input unit 10 and the output unit 30 are input and output ports of the processor 100 .

於一實施例中,該可程式脈衝訊號Pprogram為一脈寬調變訊號、一時脈訊號或一單擊(single shot)訊號,且本發明不以此為限制。 In one embodiment, the programmable pulse signal Pprogram is a pulse width modulation signal, a clock signal or a single shot signal, and the invention is not limited thereto.

於一實施例中,為了配合電路設計,該處理器100更可配置多個計時計數控制模組。如圖2所示,在本實施例中,一處理器100’可配置兩個計時計數控制模組(即該計時計數控制模組20a以及一計時計數控制模組20b),該計時計數控制模組20a與一暫存器40a電性連接、該計時計數控制模組20b與一暫存器40b電性連接,該暫存器40a、該暫存器40b與該內部核心邏輯區塊50電性連接,且在此實施例中,該計時計數控制模組20b可用以實現訊號延遲或計數的功能,且本發明不以此為限制。 In one embodiment, in order to match the circuit design, the processor 100 can be further configured with a plurality of timing counting control modules. As shown in FIG. 2, in this embodiment, a processor 100' can be configured with two timing counting control modules (ie, the timing counting control module 20a and a timing counting control module 20b). The group 20a is electrically connected to a register 40a, the timing counting control module 20b is electrically connected to a register 40b, the register 40a, the register 40b and the internal core logic block 50 are electrically connected connection, and in this embodiment, the timing counting control module 20b can be used to realize the function of signal delay or counting, and the present invention is not limited thereto.

在另一實施例中,亦可先以該計時計數控制模組20a實現訊號延遲的功能來延遲該觸發訊號ONtrigger,再以該計時計數控制模組20b產生該可程式脈衝訊號Pprogram,且本發明不以此為限制。 In another embodiment, the timing and counting control module 20a can also be used to realize the function of signal delay to delay the trigger signal ONtrigger, and then the timing and counting control module 20b can be used to generate the programmable pulse signal Pprogram, and the present invention Not limited by this.

為了進一步說明本發明之該計時計數控制模組20,請參閱圖3所示,其至少包括一正反器21、一第一邏輯閘22、一第二邏輯閘23以及一計時計數單元24,其中該正反器21與該第一邏輯閘22電性連接,該第一邏輯閘22與該第二邏輯閘23電性連接,該計時計數單元24與該第一邏輯閘22以及該第二邏輯閘23電性連接,其中,圖3所揭示之實施例僅用以示例,而非用以限制本發明。 To further illustrate the timing counting control module 20 of the present invention, please refer to FIG. 3 , which at least includes a flip-flop 21 , a first logic gate 22 , a second logic gate 23 and a timing counting unit 24 , The flip-flop 21 is electrically connected to the first logic gate 22 , the first logic gate 22 is electrically connected to the second logic gate 23 , the timing counting unit 24 is electrically connected to the first logic gate 22 and the second logic gate 22 The logic gate 23 is electrically connected, wherein the embodiment disclosed in FIG. 3 is only used as an example, and is not used to limit the present invention.

進一步地,該正反器21具有一輸入端D、一輸出端Q、一時脈輸入端CLK、一設定端S以及一重置端R。該輸入端D與該設定端S用以接收一邏輯高電位Vh,該時脈輸入端CLK用以接收該觸發訊號ONtrigger,該輸出端Q用以輸出一閂鎖訊號ONlatch,該重置端R用以接收一重置訊號D-FF Reset,因此,該正反器21用以被該觸發訊號ONtrigger觸發並使該閂鎖訊號ONlatch改變狀態(例如:由低電壓準位轉換為高電壓準位),並用以根據該重置訊號D-FF Reset使該閂鎖訊號ONlatch改變狀態(例如:由高電壓準位轉換為低電壓準位)。 Further, the flip-flop 21 has an input terminal D, an output terminal Q, a clock input terminal CLK, a setting terminal S and a reset terminal R. The input terminal D and the setting terminal S are used to receive a logic high level Vh, the clock input terminal CLK is used to receive the trigger signal ONtrigger, the output terminal Q is used to output a latch signal ONlatch, the reset terminal R It is used to receive a reset signal D-FF Reset. Therefore, the flip-flop 21 is used to be triggered by the trigger signal ONtrigger and change the state of the latch signal ONlatch (for example, from a low voltage level to a high voltage level) ), and is used to change the state of the latch signal ONlatch according to the reset signal D-FF Reset (eg, from a high voltage level to a low voltage level).

於一實施例中,該正反器為D型正反器,且本發明不以此為限制。 In one embodiment, the flip-flop is a D-type flip-flop, and the present invention is not limited thereto.

該第一邏輯閘22具有一第一輸入端221、一第二輸入端222以及一輸出端223,該第一輸入端221與該計時計數單元24電性連接,用以接收一溢位訊號event,該第二輸入端222與該正反器21的該輸出端Q電性連接並接收該閂鎖訊號ONlatch,該輸出端223用以輸出該可程式脈衝訊號Pprogram,該第一邏輯閘22用以根據該溢位訊號event以及該閂鎖訊號ONlatch產生該可程式脈衝訊號Pprogram。 The first logic gate 22 has a first input terminal 221, a second input terminal 222 and an output terminal 223. The first input terminal 221 is electrically connected to the timing counting unit 24 for receiving an overflow signal event , the second input end 222 is electrically connected to the output end Q of the flip-flop 21 and receives the latch signal ONlatch, the output end 223 is used for outputting the programmable pulse signal Pprogram, the first logic gate 22 is used for The programmable pulse signal Pprogram is generated according to the overflow signal event and the latch signal ONlatch.

該第二邏輯閘23具有一第一輸入端231、一第二輸入端232以及一輸出端233,該第一輸入端231用以接收一內部時脈訊號Clock,該第二輸入端232與該第一邏輯閘22的該輸出端223電性連接並接收該可程式脈衝訊號Pprogram,該輸出端233與該計時計數單元24電性連接用以輸出一閘控時脈訊號gated clock至該計時計數單元24的時脈輸入端,該第二邏輯閘23用以根據該內部時脈訊號Clock以及該可程式脈衝訊號Pprogram產生該閘控時脈訊號gated clock。 The second logic gate 23 has a first input terminal 231, a second input terminal 232 and an output terminal 233. The first input terminal 231 is used for receiving an internal clock signal Clock. The second input terminal 232 is connected to the The output terminal 223 of the first logic gate 22 is electrically connected to receive the programmable pulse signal Pprogram, and the output terminal 233 is electrically connected to the timing counting unit 24 for outputting a gated clock signal to the timing counting The clock input end of the unit 24, the second logic gate 23 is used for generating the gated clock signal gated clock according to the internal clock signal Clock and the programmable pulse signal Pprogram.

於一實施例中,該第一邏輯閘22以及該第二邏輯閘23可由及閘來實現,且本發明不以此為限制。 In an embodiment, the first logic gate 22 and the second logic gate 23 can be implemented by AND gates, and the present invention is not limited thereto.

進一步的,該溢位訊號event為該計時計數單元24向上計數或向下計數發生溢位時所產生之控制訊號。舉例來說,於16進位時,當該計時計數單元24為向上計數,且由FFFF向上計數而溢位時,產生該溢位訊號event。 Further, the overflow signal event is a control signal generated when the timing counting unit 24 counts up or down when an overflow occurs. For example, in hexadecimal, when the timing counting unit 24 counts up and overflows by counting up from FFFF, the overflow signal event is generated.

於一實施例中,該溢位訊號event為低準位觸發的訊號,即當該溢位訊號event由高電壓準位轉換為低電壓準位時,使對應之電路執行對應之作動。 In one embodiment, the overflow signal event is a signal triggered by a low level, that is, when the overflow signal event is converted from a high voltage level to a low voltage level, the corresponding circuit is made to perform a corresponding action.

以下將配合圖4,並以前述之該計時計數控制模組20為例來說明該計時計數控制模組20之運作方法,需注意的是,下述之高電壓準位以及低電壓準位僅為用以說明本發明,並非用以限定本發明,本發明所屬技術領域之通常知識者可根據其需求替換使用高電壓準位或低電壓準位來完成本發明。請同時參考圖3以及圖4,首先,於時點Ta,該觸發訊號ONtrigger由低電壓準位轉換為高電壓準位,因此該正反器21被驅動,使該閂鎖訊號ONlatch由低電壓準位轉換為高電壓準位,同時,因為該溢位訊號event為高電壓準位,因此該可程式脈衝訊號Pprogram因為該閂鎖訊號ONlatch以及該溢位訊號event而由低電壓準位轉換為高電壓準位,同時,藉由該內部時脈訊號Clock與該可程式脈衝訊號Pprogram,產生對應之該閘控時脈訊號gated clock。時點Ta1,該觸發訊號ONtrigger由高電壓準位轉換為低電壓準位,而該閂鎖訊號ONlatch、該溢位訊號event、該可程式脈衝訊號Pprogram以及該重置訊號D-FF Reset維持不變。於時點Tb,該閂鎖訊號ONlatch仍保持高電壓準位,該溢位訊號event由高電壓準位轉換為低電壓準位,因此該可程式脈衝訊號Pprogram由高電壓準位轉換低高電壓準位。於時點Tc,該重置訊號D-FF Reset由高電壓準位轉換為低電壓準位,該正反器21被重置,因此該閂鎖訊號ONlatch由高電壓準位轉換低高電壓準位。於時點Tc1,該重置訊號Reset由低電 壓準位轉換為高電壓準位。於此,完成一個操作週期,該計時計數控制模組20回到初始狀態以等待下一個該觸發訊號ONtrigger。 The operation method of the timing counting control module 20 will be described below with reference to FIG. 4 and the aforementioned timing counting control module 20 as an example. It should be noted that the following high voltage level and low voltage level are only In order to illustrate the present invention, but not to limit the present invention, those skilled in the art to which the present invention pertains can alternatively use a high voltage level or a low voltage level to complete the present invention according to their needs. Please refer to FIG. 3 and FIG. 4 at the same time. First, at time point Ta, the trigger signal ONtrigger is converted from a low voltage level to a high voltage level, so the flip-flop 21 is driven to make the latch signal ONlatch from a low voltage level. The bit is converted to a high voltage level, and at the same time, because the overflow signal event is a high voltage level, the programmable pulse signal Pprogram is converted from a low voltage level to a high level due to the latch signal ONlatch and the overflow signal event. At the same time, through the internal clock signal Clock and the programmable pulse signal Pprogram, the corresponding gated clock signal is generated. At time Ta1, the trigger signal ONtrigger is converted from a high voltage level to a low voltage level, and the latch signal ONlatch, the overflow signal event, the programmable pulse signal Pprogram and the reset signal D-FF Reset remain unchanged . At the time point Tb, the latch signal ONlatch still maintains a high voltage level, the overflow signal event is converted from a high voltage level to a low voltage level, so the programmable pulse signal Pprogram is converted from a high voltage level to a low voltage level. bit. At time point Tc, the reset signal D-FF Reset is converted from a high voltage level to a low voltage level, the flip-flop 21 is reset, so the latch signal ONlatch is converted from a high voltage level to a low voltage level and a high voltage level . At time point Tc1, the reset signal Reset goes from low The voltage level is converted to a high voltage level. Here, an operation cycle is completed, and the timing control module 20 returns to the initial state to wait for the next trigger signal ONtrigger.

於此實施例中,該計時計數控制模組20除了根據該觸發訊號ONtrigger對應產生該可程式脈衝訊號Pprogram,更產生作為該計時計數單元24之時脈訊號之該閘控時脈訊號gated clock,換言之,該計時計數控制模組20根據該觸發訊號ONtrigger產生一個或多個脈衝訊號。 In this embodiment, the timing counting control module 20 not only generates the programmable pulse signal Pprogram according to the trigger signal ONtrigger, but also generates the gated clock signal gated clock which is the clock signal of the timing counting unit 24, In other words, the timing control module 20 generates one or more pulse signals according to the trigger signal ONtrigger.

在另一實施例中,可藉由節制(enable/halt)該計時計數單元24的計數與否來同步該計時計數單元24的動作。 In another embodiment, the actions of the timing counting unit 24 may be synchronized by enabling/halt the counting of the timing counting unit 24 .

在另一實施例中,該計時計數控制模組20可包括二個該計時計數單元(24A、24B),該等計時計數單元(24A、24B)彼此具有一計數起始差異值(例如:計時計數單元24B的計數值大於該計時計數單元24A),使該等計時計數單元(24A、24B)以相同時脈同時計數,並該觸發訊號ONtrigger直接鎖存該計時計數單元24B當時的值,並與該計時計數單元24A的值做比較,當該計時計數單元24A追上該計時計數單元24B時,產生該溢位訊號event。 In another embodiment, the timing counting control module 20 may include two timing counting units (24A, 24B), and the timing counting units (24A, 24B) have a counting start difference value (for example: timing The count value of the counting unit 24B is greater than that of the counting unit 24A), so that the counting units (24A, 24B) count simultaneously with the same clock, and the trigger signal ONtrigger directly latches the value of the counting unit 24B at that time, and Compared with the value of the timing counting unit 24A, when the timing counting unit 24A catches up with the timing counting unit 24B, the overflow signal event is generated.

綜上所述,由於本發明之該計時計數控制模組20可根據該觸發訊號ONtrigger即時產生該可程式脈衝訊號Pprogram,使該處理器100無須經由該內部核心邏輯區塊50進行運算,不受該內部核心邏輯區塊50能力或延遲的影響,即可快速且精準的產生周邊電路所需之該可程式脈衝訊號Pprogram,實現以低階處理器控制高階系統之功能,不僅減少系統控制成本,並達到提升控制精準度的目的。 To sum up, because the timing control module 20 of the present invention can generate the programmable pulse signal Pprogram in real time according to the trigger signal ONtrigger, the processor 100 does not need to perform operations through the internal core logic block 50, Influenced by the capability or delay of the internal core logic block 50, the programmable pulse signal Pprogram required by the peripheral circuit can be quickly and accurately generated, so as to realize the function of controlling the high-level system with a low-level processor, which not only reduces the system control cost, And achieve the purpose of improving the control accuracy.

10:輸入單元 10: Input unit

20:計時計數控制模組 20: Timing count control module

30:輸出單元 30: Output unit

40:暫存器 40: Scratchpad

50:內部核心邏輯區塊 50: Internal core logic block

100:處理器 100: Processor

ONtrigger:觸發訊號 ONtrigger: trigger signal

Pprogram:可程式脈衝訊號 Pprogram: Programmable pulse signal

Claims (14)

一種可由外部訊號直接啟動輸出的處理器,其包括:一輸入單元,取得一觸發訊號;一輸出單元;一第一計時計數控制模組,與該輸入單元以及該輸出單元電性連接,該第一計時計數控制模組更包括:一正反器,其具有一時脈輸入端、一輸出端以及一重置端,該時脈輸入端接收該觸發訊號,該輸出端輸出一閂鎖訊號,該重置端接收一重置訊號;一暫存器,與該第一計時計數控制模組電性連接;以及一內部核心邏輯區塊,與該暫存器電性連接;其中,該第一計時計數控制模組的該正反器根據該觸發訊號,輸出該閂鎖訊號,以控制該輸出單元輸出一可程式脈衝訊號,其中,該處理器不以一內部核心邏輯區塊來控制該輸出單元輸出該可程式脈衝訊號。 A processor whose output can be directly activated by an external signal, comprising: an input unit to obtain a trigger signal; an output unit; a first timing counting control module electrically connected with the input unit and the output unit, the first A timing counting control module further includes: a flip-flop, which has a clock input terminal, an output terminal and a reset terminal, the clock input terminal receives the trigger signal, the output terminal outputs a latch signal, the The reset terminal receives a reset signal; a register is electrically connected to the first timing counting control module; and an internal core logic block is electrically connected to the register; wherein the first timing The flip-flop of the counting control module outputs the latch signal according to the trigger signal to control the output unit to output a programmable pulse signal, wherein the processor does not use an internal core logic block to control the output unit Output the programmable pulse signal. 如請求項1所述之處理器,其中,該處理器更包括:一第二計時計數控制模組,其與該第一計時計數控制模組以及該輸出單元電性連接,並配置於該第一計時計數控制模組以及該輸出單元之間;以及一第二暫存器,與該第二計時計數控制模組以及該內部核心邏輯區塊電性連接,並配置於該第二計時計數控制模組以及該內部核心邏輯區塊之間。 The processor of claim 1, wherein the processor further comprises: a second timing counting control module, which is electrically connected to the first timing counting control module and the output unit, and is disposed in the first timing counting control module Between a timing counting control module and the output unit; and a second register, electrically connected to the second timing counting control module and the internal core logic block, and configured in the second timing counting control module module and this internal core logic block. 如請求項1所述之處理器,其中,該計時計數控制模組更包括:一第一邏輯閘,其具有一第一輸入端、一第二輸入端以及一輸出端,該第一輸入端接收一溢位訊號,該第二輸入端與該正反器的該輸出端電性連接並接收該閂鎖訊號,該第一邏輯閘的該輸出端輸出該可程式脈衝訊號;一第二邏輯閘,其具有一第一輸入端、一第二輸入端以及一輸出端,該第二邏輯閘的該第一輸入端接收一內部時脈訊號,該第二邏輯閘的該第二輸入端與該第一邏輯閘的該輸入端電性連接並接收該可程式脈衝訊號,該第二邏輯閘的該輸出端輸出一閘控時脈訊號;以及一計時計數單元,與該第一邏輯閘的該第一輸入端電性連接,並與該第二邏輯閘的該輸出端電性連接。 The processor of claim 1, wherein the timing counting control module further comprises: a first logic gate having a first input end, a second input end and an output end, the first input end receiving an overflow signal, the second input terminal is electrically connected to the output terminal of the flip-flop to receive the latch signal, the output terminal of the first logic gate outputs the programmable pulse signal; a second logic gate The gate has a first input end, a second input end and an output end, the first input end of the second logic gate receives an internal clock signal, the second input end of the second logic gate is connected to The input end of the first logic gate is electrically connected to receive the programmable pulse signal, the output end of the second logic gate outputs a gate-controlled clock signal; and a timing counting unit is connected with the first logic gate The first input terminal is electrically connected to the output terminal of the second logic gate. 如請求項3所述之處理器,其中,於一第一時點,該觸發訊號、該閂鎖訊號、該溢位訊號、該重置訊號以及該可程式脈衝訊號為一第一電壓準位;於一第二時點,該溢位訊號由該第一電壓準位轉換為一第二電壓準位,該閂鎖訊號以及該重置訊號為該第一電壓準位,該可程式脈衝訊號由該第一電壓準位轉換為該第二電壓準位,該觸發訊號為該第二電壓準位;於一第三時點,該重置訊號、該閂鎖訊號由該第一電壓準位轉換為該第二電壓準位,該觸發訊號、該可程式脈衝訊號、該溢位訊號為該第二電壓準位,其中,該第一時點早於該第二時點,該第二時點早於該第三時點。 The processor of claim 3, wherein, at a first point in time, the trigger signal, the latch signal, the overflow signal, the reset signal and the programmable pulse signal are at a first voltage level ; At a second time point, the overflow signal is converted from the first voltage level to a second voltage level, the latch signal and the reset signal are the first voltage level, and the programmable pulse signal is composed of The first voltage level is converted to the second voltage level, and the trigger signal is the second voltage level; at a third time point, the reset signal and the latch signal are converted from the first voltage level to The second voltage level, the trigger signal, the programmable pulse signal, and the overflow signal are the second voltage level, wherein the first time point is earlier than the second time point, and the second time point is earlier than the third time. 如請求項4所述之處理器,其中,於一第四時點,該觸發訊號由該第一電壓準位轉換為該第二電壓準位,該第四時點晚於該第一時點並早於該第二時點。 The processor of claim 4, wherein at a fourth time point, the trigger signal is converted from the first voltage level to the second voltage level, the fourth time point is later than the first time point and earlier at the second point in time. 如請求項5所述之處理器,其中,於一第五時點,該重置訊號由該第二電壓準位轉換為該第一電壓準位,該第五時點晚於該第三時點。 The processor of claim 5, wherein at a fifth time point, the reset signal is converted from the second voltage level to the first voltage level, and the fifth time point is later than the third time point. 如請求項4、5或6其中一項所述之處理器,其中,該第一電壓準位為高電壓準位,該第二電壓準位為低電壓準位。 The processor of claim 4, 5 or 6, wherein the first voltage level is a high voltage level, and the second voltage level is a low voltage level. 如請求項3所述之處理器,其中,該正反器為一D型正反器。 The processor of claim 3, wherein the flip-flop is a D-type flip-flop. 如請求項3所述之處理器,其中,該第一邏輯閘以及該第二邏輯閘為一及閘。 The processor of claim 3, wherein the first logic gate and the second logic gate are a sum gate. 如請求項3所述之處理器,其中,以節制該計時計數單元的計數與否來同步該計時計數單元的動作。 The processor of claim 3, wherein the counting of the timing counting unit is controlled to synchronize the actions of the timing counting unit. 如請求項3所述之處理器,其中,該計時計數控制模組包括二計時計數單元,該等計時計數單元彼此具有一計數起始差異值,且以該觸發訊號鎖存該等計時計數單元其中一者的值,並於該等計時計數單元的其中另一者追上該等計時計數單元其中一者的值時,產生該溢位訊號。 The processor of claim 3, wherein the timing counting control module includes two timing counting units, the timing counting units have a count start difference value from each other, and the timing counting units are latched by the trigger signal The value of one of the timing counting units generates the overflow signal when the other one of the timing counting units catches up with the value of one of the timing counting units. 如請求項1所述之處理器,其中,該觸發訊號為來自該處理器外部之一外部觸發訊號。 The processor of claim 1, wherein the trigger signal is an external trigger signal from outside the processor. 如請求項1所述之處理器,其中,該可程式脈衝訊號為一脈寬調變訊號、一時脈訊號或一單擊訊號。 The processor of claim 1, wherein the programmable pulse signal is a pulse width modulation signal, a clock signal or a click signal. 如請求項1所述之處理器,其中,該計時計數控制模組根據該觸發訊號產生包括該可程式脈衝訊號的多個脈衝訊號。 The processor of claim 1, wherein the timing count control module generates a plurality of pulse signals including the programmable pulse signal according to the trigger signal.
TW109140366A 2020-11-18 2020-11-18 Processor that can directly start output by external signal TWI751796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109140366A TWI751796B (en) 2020-11-18 2020-11-18 Processor that can directly start output by external signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109140366A TWI751796B (en) 2020-11-18 2020-11-18 Processor that can directly start output by external signal

Publications (2)

Publication Number Publication Date
TWI751796B true TWI751796B (en) 2022-01-01
TW202222036A TW202222036A (en) 2022-06-01

Family

ID=80809161

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109140366A TWI751796B (en) 2020-11-18 2020-11-18 Processor that can directly start output by external signal

Country Status (1)

Country Link
TW (1) TWI751796B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5852370A (en) * 1994-12-22 1998-12-22 Texas Instruments Incorporated Integrated circuits for low power dissipation in signaling between different-voltage on chip regions
US7616026B2 (en) * 2003-07-31 2009-11-10 Actel Corporation System-on-a-chip integrated circuit including dual-function analog and digital inputs
US7622963B2 (en) * 2007-10-01 2009-11-24 Silicon Laboratories Inc. General purpose comparator with multiplexer inputs
US20140002133A1 (en) * 2012-06-30 2014-01-02 Silicon Laboratories Inc. Apparatus for mixed signal interface acquisition circuitry and associated methods
US8975916B1 (en) * 2009-08-28 2015-03-10 Cypress Semiconductor Corporation Self-modulated voltage reference

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5852370A (en) * 1994-12-22 1998-12-22 Texas Instruments Incorporated Integrated circuits for low power dissipation in signaling between different-voltage on chip regions
US7616026B2 (en) * 2003-07-31 2009-11-10 Actel Corporation System-on-a-chip integrated circuit including dual-function analog and digital inputs
US7622963B2 (en) * 2007-10-01 2009-11-24 Silicon Laboratories Inc. General purpose comparator with multiplexer inputs
US8975916B1 (en) * 2009-08-28 2015-03-10 Cypress Semiconductor Corporation Self-modulated voltage reference
US20140002133A1 (en) * 2012-06-30 2014-01-02 Silicon Laboratories Inc. Apparatus for mixed signal interface acquisition circuitry and associated methods

Also Published As

Publication number Publication date
TW202222036A (en) 2022-06-01

Similar Documents

Publication Publication Date Title
US7742551B2 (en) Pulse counter with clock edge recovery
US11016525B1 (en) Clock control circuit and clock control method
WO2022037708A1 (en) Led driving circuit, display device, and display system
CN102970013A (en) Resetting method and resetting control device of register inside chip based on scanning chain
US20040246810A1 (en) Apparatus and method for reducing power consumption by a data synchronizer
TWI751796B (en) Processor that can directly start output by external signal
KR101205589B1 (en) Synchronous memory devices and control methods for performing burst write operations
WO2002015398A2 (en) High speed multiple-bit flip-flop for multithreading
US7945718B2 (en) Microcontroller waveform generation
CN105306022A (en) Asymmetric time-delay apparatus used for asynchronous circuit four-phase handshake protocol
CN114545801A (en) Processor capable of directly starting output by external signal
CN111985174B (en) RT latch and latching method
JP4204655B2 (en) Microcomputer with pulse output function
CN105099407A (en) Pulse-type D flip-flop with asynchronous reset function
US20070234251A1 (en) Data Output Clock Selection Circuit For Quad-Data Rate Interface
JPH07326961A (en) Synchronous counter using carrier signal
CN115202438B (en) Implementation method of full-synchronous eFlash controller based on single clock
CN117435016B (en) Design method of reset circuit
JP4727799B2 (en) Semiconductor integrated circuit and external signal capturing method
JP2562995B2 (en) Data processing circuit control method
SU494844A1 (en) Single pulse shaper
CN112653446A (en) CMOS (complementary Metal oxide semiconductor) driving circuit with synchronous enabling and output level setting functions and driving method
SU1298911A2 (en) Polyfunctional counting device
JPS5855485Y2 (en) information processing equipment
JPH0730380A (en) Latch circuit and logic circuit using the same