DE4026169A1 - PROGRAMMABLE RECTANGULAR GENERATOR - Google Patents
PROGRAMMABLE RECTANGULAR GENERATORInfo
- Publication number
- DE4026169A1 DE4026169A1 DE4026169A DE4026169A DE4026169A1 DE 4026169 A1 DE4026169 A1 DE 4026169A1 DE 4026169 A DE4026169 A DE 4026169A DE 4026169 A DE4026169 A DE 4026169A DE 4026169 A1 DE4026169 A1 DE 4026169A1
- Authority
- DE
- Germany
- Prior art keywords
- counter
- value
- pulse width
- pulse
- output
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K3/00—Circuits for generating electric pulses; Monostable, bistable or multistable circuits
- H03K3/02—Generators characterised by the type of circuit or by the means used for producing pulses
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K19/00—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
- H03K19/02—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components
- H03K19/08—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components using semiconductor devices
- H03K19/094—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components using semiconductor devices using field-effect transistors
- H03K19/0944—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components using semiconductor devices using field-effect transistors using MOSFET or insulated gate field-effect transistors, i.e. IGFET
- H03K19/0948—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components using semiconductor devices using field-effect transistors using MOSFET or insulated gate field-effect transistors, i.e. IGFET using CMOS or complementary insulated gate field-effect transistors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/04—Generating or distributing clock signals or signals derived directly therefrom
- G06F1/08—Clock generators with changeable or programmable clock frequency
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K19/00—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
- H03K19/02—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components
- H03K19/08—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components using semiconductor devices
- H03K19/094—Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits using specified components using semiconductor devices using field-effect transistors
- H03K19/096—Synchronous circuits, i.e. using clock signals
- H03K19/0963—Synchronous circuits, i.e. using clock signals using transistors of complementary type
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K3/00—Circuits for generating electric pulses; Monostable, bistable or multistable circuits
- H03K3/01—Details
- H03K3/017—Adjustment of width or dutycycle of pulses
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K3/00—Circuits for generating electric pulses; Monostable, bistable or multistable circuits
- H03K3/64—Generators producing trains of pulses, i.e. finite sequences of pulses
- H03K3/72—Generators producing trains of pulses, i.e. finite sequences of pulses with means for varying repetition rate of trains
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Power Engineering (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- General Physics & Mathematics (AREA)
- Manipulation Of Pulses (AREA)
- Pulse Circuits (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Description
Die Erfindung bezieht sich auf einen programmierbaren Rechteck- Wellengenerator, insbesondere auf einen programmierbaren Rechteck-Wellengenerator, welcher in einer Mikrocomputer- Einheit angeordnet ist, in welcher die Periodendauer der Rechteckwelle und die Impulsdauer mit Hilfe eines Programms gesteuert werden können.The invention relates to a programmable rectangular Wave generator, especially on a programmable one Rectangular wave generator, which is in a microcomputer Unit is arranged in which the period of the Square wave and pulse duration using a program can be controlled.
Es zählt zum Stand der Technik, einen Zeitzähler, welcher eine Nachladefunktion aufweist, in einem Schaltkreis zur Erzeugung der Rechteckwelle vorzusehen, und zwar für einen einzigen Chip, also einem Mikrobaustein in der integrierten Schaltungstechnik. Ein derartiger vorbekannter Zeitzähler arbeitet in der Weise, daß ein Eingangswert für den Zeitzähler mittels eines Mikroprozessors gesetzt wird. Nachfolgend läuft dieser Wert gegen Null, wobei ein Zähleingangssignal des Zeitzählers gezählt wird. Wird dieser Wert dann zu Null, so gelangt das periodische Signal zum Ausgang und führt zum Umsetzen eines Flipflops. Für einen derartigen Zähler kann die Periode verändert werden, aber die Impulsdauer ist auf 50% festgelegt.It is part of the state of the art, a time counter, which has a reload function in a circuit for To provide generation of the square wave, for one single chip, i.e. a micro-chip in the integrated Circuit technology. Such a known time counter works in such a way that an input value for the time counter is set by means of a microprocessor. Below this value runs towards zero, being a counting input signal of the time counter is counted. If this value becomes zero, so the periodic signal arrives at the output and leads to Implement a flip-flop. For such a counter can the period can be changed but the pulse duration is at 50% fixed.
Ferner ist ein Zeitzähler bekannt, dessen Impulsdauer veränderbar ist. Die Funktionsweise ist hierbei derart, daß der Ausgang zu der Zeit gesetzt wird, wenn der Wert eines Laderegisters des Zeitgebers einen Zählerstand des Zeitgebers erreicht. Der Ausgang wird zu der Zeit zurückgesetzt, wenn der Zeitzähler überläuft. Bei einem derartigen Zähler liegt die Impulsdauer jedoch nur innerhalb einer vorgegebenen Periode, oder die Impulsdauer kann verändert werden, wenn der Zeitzähler eine selbständige Wiederaufladungsfunktion aufweist, wobei jedoch nur ein Puls mit einer vorgegebenen Impulsdauer ausgegeben werden kann.Furthermore, a time counter is known, the pulse duration is changeable. The mode of operation is such that the output is set at the time when the value of a Load register of the timer a counter reading of the timer reached. The output is reset at the time when the time counter overflows. With such a counter lies the pulse duration, however, only within a predetermined Period, or the pulse duration can be changed if the Time counter has an independent recharge function, however, only one pulse with a given one Pulse duration can be output.
Der Erfindung liegt daher die Aufgabe zugrunde, einen programmierbaren Rechteck-Wellengenerator in einer Mikrocomputereinheit vorzusehen, in welchem sowohl die Periodendauer der Rechteckwelle als auch die Impulsdauer mittels eines Programms gesteuert werden können. Hierbei wird der Wert eines Pulsbreitenregisters mit dem Wert eines Zählers verglichen. Der erfindungsgemäße, programmierbare Rechteckgenerator enthält zwei Pulsbreitenregister zum Feststellen der Daten der Pulsbreite, einen Zähler, zwei Vergleichsschaltungen, einen Impulsgenerator sowie einen Datenbus.The invention is therefore based on the object of being programmable Rectangle wave generator in a microcomputer unit provide in which both the period the square wave and the pulse duration using a Program can be controlled. Here the value a pulse width register is compared with the value of a counter. The programmable rectangular generator according to the invention contains two pulse width registers for determining the data the pulse width, a counter, two comparison circuits, a pulse generator and a data bus.
Die Erfindung wird nachfolgend anhand der Zeichnungen näher erläutert. Es zeigtThe invention will now be described with reference to the drawings explained. It shows
Fig. 1 ein Blockschaltbild der Erfindung, Fig. 1 is a block diagram of the invention,
Fig. 2 das Ausgangssignal gemäß dieser Erfindung, Fig. 2 the output signal according to this invention,
Fig. 3 ein Beispiel des Eingangssignals des Zählers, Fig. 3 shows an example of the input signal of the counter,
Fig. 4 ein Beispiel des System-Taktgebers, Fig. 4 shows an example of the system clock,
Fig. 5 einen Impulserzeuger und einen Steuerkreis gemäß dieser Erfindung, Fig. 5 is a pulse generator and a control circuit according to this invention,
Fig. 6-1 den Schaltkreis eines Zählers gemäß dieser Erfindung, Fig. 6-1 the circuit of a counter according to this invention,
Fig. 6-2 vergrößert den internen Schaltkreis des CNR- Teiles des Zähler-Schaltkreises, Fig. 6-2 increases the internal circuit of the CNR part of the counter circuit,
Fig. 7-1 einen Vergleichs-Schaltkreis gemäß dieser Erfindung, Fig. 7-1 a comparison circuit according to this invention,
Fig. 7-2 vergrößert den internen Schaltkreis des ND-Teiles des Vergleichs-Schaltkreises, Fig. 7-2 increases the internal circuit of the LP part of the comparison circuit,
Fig. 8 ein Zeitdiagramm gemäß dieser Erfindung, Fig. 8 is a timing chart according to this invention,
Fig. 9 ein Ablaufdiagramm der Funktion gemäß dieser Erfindung. Fig. 9 is a flow diagram of the operation of this invention.
Wie in Fig. 1 dargestellt, enthält der programmierbare Rechteck-Wellengenerator gemäß dieser Erfindung ein Pulsbreitenregister I (1), einen Vergleicher-Schaltkreis I (2), einen Zähler (3), einen zweiten Vergleicher-Schaltkreis II (4), ein zweites Pulsbreitenregister II (5), einen Impulsgenerator (6) sowie einen Datenbus (7). Nachfolgend werden die Strukturen und Funktionen dieses programmierbaren Rechteck-Wellengenerators unter der Voraussetzung erläutert, daß diese als eine periphere Einrichtung einer Mikrocomputereinheit ausgebildet ist. Die Zentraleinheit (CPU) liefert die Daten, um die Breite des niedrigen Pegels der Rechteckwelle in dem Pulsbreitenregister I (1) zu bestimmen und ferner die Daten, um die Breite des hohen Pegels des Rechtecksignals in dem Pulsbreitenregister II (5) zu bestimmen.As shown in Fig. 1, the programmable square wave generator according to this invention includes a pulse width register I ( 1 ), a comparator circuit I ( 2 ), a counter ( 3 ), a second comparator circuit II ( 4 ), a second one Pulse width register II ( 5 ), a pulse generator ( 6 ) and a data bus ( 7 ). The structures and functions of this programmable rectangular wave generator are explained below on the assumption that it is designed as a peripheral device of a microcomputer unit. The central processing unit (CPU) supplies the data to determine the width of the low level of the square wave in the pulse width register I ( 1 ) and also the data to determine the width of the high level of the square wave signal in the pulse width register II ( 5 ).
Wenn die Zentraleinheit CPU den Zähler (3) dazu befähigt, beginnt der Zähler aufgrund der empfangenen Eingangstaktsignale (CK) herunterzuzählen. Wie in Verbindung mit Fig. 6-1 zu ersehen ist, kann die Funktionsweise des Zählers (3) unter der Voraussetzung erklärt werden, daß der Eingangstakt die gleiche Impulsform aufweist wie in Fig. 3 dargestellt. Der am Anfang anstehende Eingangstakt wird zu -1 (i=0) geführt. Die anfänglichen Schaltzustände der einzelnen Teile des genannten Zählers sind wie folgt gesetzt, wobei nachfolgend für hohen Pegel "High" und für niedrigen Pegel "Low" geschrieben wird: CLR ist auf High gesetzt, der Ausgang von CNR ist Low, der Ausgang von N4 ist High, der Ausgang von CN4 ist Low, der Ausgang N5 ist High, der Ausgang von NR2 ist Low und der Ausgang von N3 ist High. Vom Anfangszustand aus wird CLR zu Low und der Zähler beginnt zu arbeiten. Für den Fall, daß der Eingangstakt High ist, bleibt der Ausgang von NR2 noch Low. Solange der Eingang des CNR1, und zwar an dem AND-Teil mit dem Eingangstakt und dem Ausgang von N5 auf High steht, bleibt der Ausgang von CNR1 auf Low, und zwar solange der Systemtakt 2 (Φ₂) High steht. Wenn der Eingangstakt zu Low wird, bleibt der Ausgang von NR2 ohne Änderung auf Low.When the CPU enables the counter ( 3 ), the counter starts counting down based on the received input clock signals (CK). As can be seen in connection with Fig. 6-1, the operation of the counter ( 3 ) can be explained on the assumption that the input clock has the same pulse shape as shown in Fig. 3. The input clock pending at the beginning is led to -1 (i = 0). The initial switching states of the individual parts of the counter are set as follows, with "High" being written for high level and "Low" for low level: CLR is set to high, the output from CNR is low, the output from N 4 is high, the output of CN 4 is low, the output N 5 is high, the output of NR 2 is low and the output of N 3 is high. From the initial state, CLR goes low and the counter starts to work. In the event that the input clock is high, the output of NR 2 remains low. As long as the input of CNR 1 , namely at the AND part with the input clock and the output from N 5 is high, the output from CNR 1 remains low, and as long as the system clock 2 (Φ₂) is high. When the input clock goes low, the output from NR 2 remains low without changing.
Hingegen wird der Ausgang von CNR1 zu High, wenn das AND- Gatter von CNR1 auf Low geht und der System-Takt 2 (Φ₂) zu High wird.On the other hand, the output of CNR 1 becomes high when the AND gate of CNR 1 goes low and the system clock 2 (Φ₂) becomes high.
Der Ausgang von N4 wird zu Low. Der Wert (CNTi) des Zählers wird High, wenn der System-Takt 1 (Φ₁) zu High wird. Entsprechend wird der Ausgang von N5 gleichfalls Low. Hingegen kehrt der Eingangs-Takt zu High zurück, und zwar entsprechend wenn der System-Takt 1 (Φ₁) zu High wird. Darüber hinaus bleibt der Ausgang von NR2 bei Low und der Ausgang von (i=0) bleibt ebenfalls High. Ferner gilt, daß der Wert von CNR1 auf High stehenbleibt, während der Ausgang von N5 zu Low wird, entsprechend wie der Eingangs-Takt bei High stehenbleibt. Entsprechend wie der Eingangs-Takt =0) zu Low wird, wird der Ausgang von NR2 High und schließlich wird der Ausgang von OFi (i=0) zu Low.The output of N 4 becomes low. The value (CNTi) of the counter goes high when the system clock 1 (Φ₁) becomes high. Accordingly, the output of N 5 also goes low. On the other hand, the input clock returns to high, correspondingly when the system clock 1 (Φ₁) becomes high. In addition, the output of NR 2 remains low and the output of (i = 0) also remains high. Furthermore, the value of CNR 1 remains high while the output from N 5 becomes low, corresponding to how the input clock remains high. According to how the input clock = 0) becomes low, the output of NR 2 becomes high and finally the output of OFi (i = 0) becomes low.
In dem Fall, daß der System-Takt 2 (Φ₂) auf High steht, wird der Ausgang von CNRI zu Low, und der Ausgang von N5 wird zu High. In dem Fall, daß der System-Takt 1 (Φ₁) auf High steht, wird der Ausgang CNTi zu Low und der Ausgang von N5 zu High. Wie oben bereits erwähnt, startet der Zähler 3 das Zählen, wenn der Eingang von -1 auf Low steht, während der Zähler den eingenommenen Zustand beibehält, wenn der Eingang von -1 auf High steht. Ferner wird das Ausgangssignal zu einem Low, in Antwort auf jeweils zwei Low-Eingangssignale an -1.In the event that system clock 2 (Φ₂) is high, the output from CNRI becomes low and the output from N 5 becomes high. In the event that the system clock 1 (Φ₁) is high, the output CNTi becomes low and the output from N 5 to high. As already mentioned above, counter 3 starts counting when the input is from -1 to low, while the counter remains in the assumed state when the input is from -1 to high. Furthermore, the output signal becomes a low in response to two low input signals at -1.
Die Fig. 6-2 zeigt den internen Schaltkreis von CNR1 der Fig. 6-1, und in der Tabelle 1 ist der Ausgangszustand entsprechend den Eingängen I₁, I₂, I₃ und I₄ dargestellt. Hierbei wird mit L der Schaltzustand Low und mit H der Schaltzustand High bezeichnet. Fig. 6-2 shows the internal circuit of CNR 1 of Fig. 6-1, and in Table 1, the output state corresponding to the inputs I₁, I₂, I₃ and I₄ is shown. L is the switching state Low and H the switching state High.
Unter Bezugnahme auf Fig. 7-1 wird die Funktionsweise des Vergleicher-Schaltkreises erläutert. Wenn der Zählerwert (CNTi) gleich groß ist wie der Wert (PDRi) des Pulsbreitenregisters, und zwar wenn beide Werte Low sind, so wird der Ausgang von NR3 High, am Netzknoten A steht das Signal High an. Falls beide Werte von CNTi und PDRi High sind, so steht auch am Netzknoten A das High-Signal an. Falls jedoch die Werte von CTNi und PDRi unterschiedlich sind, wobei das eine High und das andere Low ist, so steht auch am Ausgang von NR3 das Signal Low an. Entsprechend wird das AND-Gatter in ND1 zu Low und gleichfalls wird das Signal am Netzknoten A zu Low. Für den Fall, daß der Wert CNTi des Zählers und der Wert PDRi des Pulsbreitenregisters gleich sind, und zwar unter der Voraussetzung, daß der Wert von -1 auf Low steht, ist am Netzknoten A das Signal High, wobei der Ausgang von N6 gleichfalls auf High steht, so daß der Ausgang von zu Low wird. In dem anderen Fall, daß die Werte von PDRi und CNTi unterschiedlich sind, und zwar unter der Voraussetzung, daß der Wert von -1 High ist, wird der Ausgang von zu High. Hierbei gilt EQi-1 (i=0, -1), und der erste Bereich des Vergleicher-Schaltkreises behält das Signal Low. Wenn nunmehr der Wert des Zählers und der Wert des ersten Pulsbreiten- Datenregisters I (1) gleich sind, und zwar unter der Voraussetzung, daß der Ausgang des Impulsgenerators Low ist, so wird der Ausgang von EQI₇ zu Low. Schließlich wird das korrespondierende Signal von EQI zu High und EQII wird zu Low. In dem Fall, daß der Ausgang des Impulsgenerators auf High steht, und zwar unter der Bedingung, daß der Wert des Zählers und der Wert des zweiten Pulsbreiten-Datenregisters II (5) gleich groß sind, so wird zu Low, während EQII zu High wird. Es gilt folglich:The operation of the comparator circuit will be explained with reference to FIG. 7-1. If the counter value (CNTi) is the same as the value (PDRi) of the pulse width register, and if both values are low, the output of NR 3 becomes high, and the signal high is present at network node A. If both values of CNTi and PDRi are high, then the high signal is also present at network node A. If, however, the values of CTNi and PDRi are different, one being high and the other low, the signal Low is also present at the output of NR 3 . Accordingly, the AND gate in ND 1 becomes low and the signal at node A also becomes low. In the event that the value CNTi of the counter and the value PDRi of the pulse width register are the same, provided that the value is from -1 to low, the signal at node A is high, with the output of N 6 likewise is high so that the output goes from to low. In the other case, the values of PDRi and CNTi are different, provided that the value of -1 is high, the output of becomes too high. Here EQi-1 (i = 0, -1) applies, and the first area of the comparator circuit keeps the signal low. Now if the value of the counter and the value of the first pulse width data register I ( 1 ) are the same, provided that the output of the pulse generator is low, the output from EQI₇ to low. Eventually the corresponding signal from EQI becomes high and EQII becomes low. In the event that the output of the pulse generator is high, provided that the value of the counter and the value of the second pulse width data register II ( 5 ) are equal, it will go low, while EQII will go high . The following therefore applies:
In Fig. 7-2 ist der interne Schaltkreis von ND1 der Fig. 7-1 dargestellt kund in der nachfolgenden Tabelle 2 ist der Schaltzustand entsprechend den Eingängen von I₁, I₂, I₃ und I₄ dargestellt.In Fig. 7-2, the internal circuit of ND 1 of Fig. 7-1 is shown customer in the following Table 2, the switching state corresponding to the inputs of I₁, I₂, I₃ and I₄ is shown.
Anhand von Fig. 5 wird die Funktionsweise des Schaltkreises der Pulserzeugung erläutert. Wie oben bereits erwähnt, steht am Ausgang des AND das Signal High an, wenn der Ausgang von EQI auf High steht und der Ausgang von EQII auf Low steht. Somit ist, da der Ausgang von AND auf Low steht, das Flipflop (F/F) gesetzt. Ferner wird der Ausgnag von CN1 zu Low in Synchronisation mit dem System-Takt 2 (Φ₂) und der Ausgang von NR1 erhält den Signalwert High. Der Ausgang von CN2 wird zu Low in Synchronisation mit dem System-Takt 1 (Φ₁) und der Ausgang von N2 wird auf High gesetzt. Da EQI den Signalwert High einnimmt, wird das CLR-Signal zu High und der Zähler ist freigegeben. Folglich werden die beiden Signale EQI und EQII zu Low. Daher behält das Flipflop den vorherigen Schaltzustand und der Ausgang des Impulsgenerators bleibt fortwährend auf dem Signalwert High.The mode of operation of the pulse generation circuit is explained with reference to FIG. 5. As already mentioned above, the signal High is present at the output of the AND if the output from EQI is high and the output from EQII is low. Thus, since the output from AND is low, the flip-flop (F / F) is set. Furthermore, the output of CN 1 becomes low in synchronization with the system clock 2 (Φ₂) and the output of NR 1 receives the signal value high. The output of CN 2 becomes low in synchronization with the system clock 1 (Φ₁) and the output of N 2 is set to high. Since EQI takes the signal value high, the CLR signal becomes high and the counter is enabled. As a result, the two signals EQI and EQII become low. Therefore, the flip-flop maintains the previous switching state and the output of the pulse generator remains high at the signal value.
Wenn der Wert des Zählers mit dem Wert des Pulsbreiten- Datenregisters I (1) übereinstimmt, und zwar entsprechend der Wirksamkeit des Zählers, wo wird zu Low, wobei jedoch EQI noch den Signalwert Low beibehält, da der Ausgang des Impulsgenerators auf High steht. In dem Fall, daß der Wert des Zählers mit dem Wert des Pulsbreiten-Datenregisters II (5) übereinstimmt, wird auch EQII₇ zu Low. Der Ausgang von EQII wird zu High, da es der Ausgang des NOR-Gatters am Eingang von EQII₇ und das reverierte Signal des Impulsgenerators bildet. Wenn EQII in dem Impulsgenerator den Signalwert High erreicht, wird das Flipflop zurückgesetzt, entsprechend wird der Ausgang von AND1 zu Low und der Ausgang von AND2 zu High.If the value of the counter coincides with the value of the pulse width data register I ( 1 ), in accordance with the effectiveness of the counter, where will go to low, but EQI still maintains the signal value low because the output of the pulse generator is high. In the event that the value of the counter matches the value of the pulse width data register II ( 5 ), EQII₇ also becomes low. The output of EQII becomes high because it forms the output of the NOR gate at the input of EQII₇ and the inverted signal of the pulse generator. When EQII in the pulse generator reaches the signal value high, the flip-flop is reset, accordingly the output from AND 1 becomes low and the output from AND 2 becomes high.
Der Ausgang von CN1 wird High in Synchronisation mit dem System-Takt 2 (Φ₂) und der Ausgang von NR1 wird zu Low. Der Ausgang von CN wird gleichfalls High in Synchronisation mit dem System-Takt 1 (Φ₁) und der Ausgang von N2, nämlich der Impulsgenerator, wird zurückgesetzt zu Low. Der Zähler wird freigegeben, sobald entsprechend der Ausgang von OR1 den Signalwert High erreicht, da nämlich EQII den Signalwert High einnimmt. Entsprechend der oben erläuterten Funktionsweise erzeugt der programmierbare Rechteckwellen-Generator ein Ausgangssignal, dessen Form in Fig. 2 dargestellt ist. Hierbei gelten erfindungsgemäß für die Periodendauer und die Impulsdauer folgende Bedingungen:The output of CN 1 becomes high in synchronization with the system clock 2 (Φ₂) and the output of NR 1 becomes low. The output of CN is also high in synchronization with the system clock 1 (Φ₁) and the output of N 2 , namely the pulse generator, is reset to low. The counter is enabled as soon as the output of OR 1 reaches the signal value high, since EQII takes the signal value high. In accordance with the mode of operation explained above, the programmable square wave generator generates an output signal, the form of which is shown in FIG. 2. According to the invention, the following conditions apply to the period and the pulse duration:
Periodendauer = [Wert des PBR I (1) + Wert des PBR II (5) + 2] × TckPeriod duration = [value of PBR I ( 1 ) + value of PBR II ( 5 ) + 2] × Tck
wobei mit PBR I das erste Pulsbreiten-Datenregister und mit PBR II das zweite Pulsbreiten-Datenregister II bezeichnet wird.with PBR I the first pulse width data register and with PBR II denotes the second pulse width data register II becomes.
Fig. 8 zeigt das Zeitdiagramm dieses programmierbaren Rechteckgenerators. Fig. 9 zeigt das Flußdiagramm gemäß dieser Erfindung. Unter Bezugnahme auf Fig. 9 soll die Funktionsweise erläutert werden. In einem ersten Schritt (100) aktiviert die Zentraleinheit (CPU) den Zähler und in einem nächsten Schritt (101) wird der Ausgang des Impulsgenerators abgefragt, ob er den Signalwert High einnimmt. Falls der Ausgang nicht auf High steht, kann der nächste Schritt (102) durchgeführt werden. In diesem Schritt (102) werden die Werte des Zählers und der Wert des Pulsbreitenregisters I (1) miteinander verglichen. Wenn diese Werte unterschiedlich sind, wird der Wert des Zählers im nachfolgenden Schritt (103) erhöht, und es wird zum vorherigen Schritt (102) zurückgeführt. Falls dann diese Werte gleich groß sind, wird der Ausgang des Impulsgenerators im Schritt (104) gesetzt und der Zähler wird zur gleichen Zeit (108) freigegeben. Falls der Ausgang des Signalgenerators in diesem Schritt (101) den Wert High einnimmt, werden der Wert des Zählers und der Wert des Pulsbreiten-Registers II (5) miteinander verglichen (105). Falls diese Werte unterschiedlich sind, wird der Wert des Zählers in einem nachfolgenden Schritt (106) erhöht und es wird zu dem vorherigen Schritt (105) zurückgekehrt. Falls die Werte gleich groß sind, wird der Ausgang des Impulsgenerators zurückgesetzt (107) und der Zähler wird zur gleichen Zeit (108) freigegeben. Da diese Funktionen kontinuierlich wiederholt werden, kann die Ausgangssignalkurve gemäß Fig. 2 erzeugt werden. Figure 8 shows the timing diagram of this programmable square wave generator. Fig. 9 shows the flow chart of this invention. The mode of operation will be explained with reference to FIG. 9. In a first step ( 100 ) the central processing unit (CPU) activates the counter and in a next step ( 101 ) the output of the pulse generator is queried whether it assumes the signal value High. If the output is not high, the next step ( 102 ) can be carried out. In this step ( 102 ) the values of the counter and the value of the pulse width register I ( 1 ) are compared with one another. If these values are different, the value of the counter is incremented in the subsequent step ( 103 ) and it is returned to the previous step ( 102 ). If these values are then the same, the output of the pulse generator is set in step ( 104 ) and the counter is released at the same time ( 108 ). If the output of the signal generator takes the value High in this step ( 101 ), the value of the counter and the value of the pulse width register II ( 5 ) are compared ( 105 ). If these values are different, the value of the counter is increased in a subsequent step ( 106 ) and the process is returned to the previous step ( 105 ). If the values are the same, the output of the pulse generator is reset ( 107 ) and the counter is released at the same time ( 108 ). Since these functions are repeated continuously, the output signal curve according to FIG. 2 can be generated.
Claims (6)
- - mit zwei Impulsbreiten-Datenregistern zum Speichern der Werte der Impulsbreiten,
- - mit einem Zähler,
- - mit einem ersten Vergleicher, welcher mit einem der genannten Impulsbreiten-Datenregistern und mit dem genannten Zähler verbunden ist, um den Wert eines der genannten Impulsbreiten-Datenregister mit dem Wert des genannten Zählers zu vergleichen, und
- - mit einem zweiten Vergleicher, welcher mit dem zweiten der genannten Impulsbreiten-Datenregister und mit dem genannten Zähler verbunden ist,
- - mit einem Impulsgenerator, der mit dem ersten und zweiten Vergleicher verbunden ist,
- with two pulse width data registers for storing the values of the pulse widths,
- - with a counter,
- with a first comparator which is connected to one of said pulse width data registers and to said counter in order to compare the value of one of said pulse width data registers with the value of said counter, and
- with a second comparator, which is connected to the second of said pulse width data registers and to said counter,
- with a pulse generator connected to the first and second comparators,
- - ein Signal High ausgibt, bis der Zähler einen Wert erreicht, welcher gleich einem im ersten genannten Impulsweiten-Datenregister gespeicherten Wert ist,
- - und dann ein Signal Low ausgibt, bis der Zähler einen Wert erreicht, welcher gleich einem im zweiten Impulsweiten- Datenregister gespeicherten Wert ist,
- - wodurch eine wählbare Impulsdauer erzielt wird, welche von einem Programm gesteuert ist, in welchem die Periode der Rechteckwelle und die Impulsdauer vom Programm gesteuert werden können.
- outputs a high signal until the counter reaches a value which is equal to a value stored in the first-mentioned pulse width data register,
- and then outputs a low signal until the counter reaches a value which is equal to a value stored in the second pulse width data register,
- - whereby a selectable pulse duration is achieved, which is controlled by a program in which the period of the square wave and the pulse duration can be controlled by the program.
ein Paar von Pulsbreitenregistern (1, 5) zum Aufzeichnen der Daten der Pulsbreite,
einen Zähler (3), um die empfangenen Taktimpulse zu zählen,
ein Paar von Vergleichern-Schaltkreisen (2, 4), um den Wert des Pulsbreitenregisters (1, 5) mit dem Wert des Zählers (3) zu vergleichen,
einen Impulsgenerator (6)
sowie einen Datenbus (7).2. A programmable square wave generator, in which the period of the square wave and the pulse duration are controlled by means of a program which compares the value of a pulse width register with the value of a counter, is characterized by:
a pair of pulse width registers ( 1, 5 ) for recording the data of the pulse width,
a counter ( 3 ) to count the received clock pulses,
a pair of comparator circuits ( 2, 4 ) to compare the value of the pulse width register ( 1, 5 ) with the value of the counter ( 3 ),
a pulse generator ( 6 )
and a data bus ( 7 ).
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019890011701A KR930000965B1 (en) | 1989-08-17 | 1989-08-17 | Programmable pulse generator |
Publications (1)
Publication Number | Publication Date |
---|---|
DE4026169A1 true DE4026169A1 (en) | 1991-04-04 |
Family
ID=19288997
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
DE4025378A Ceased DE4025378A1 (en) | 1989-08-17 | 1990-08-10 | PROGRAMMABLE RECTANGULAR GENERATOR |
DE4026169A Ceased DE4026169A1 (en) | 1989-08-17 | 1990-08-17 | PROGRAMMABLE RECTANGULAR GENERATOR |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
DE4025378A Ceased DE4025378A1 (en) | 1989-08-17 | 1990-08-10 | PROGRAMMABLE RECTANGULAR GENERATOR |
Country Status (5)
Country | Link |
---|---|
JP (1) | JPH03165620A (en) |
KR (1) | KR930000965B1 (en) |
DE (2) | DE4025378A1 (en) |
FR (1) | FR2651049A1 (en) |
GB (1) | GB2235103A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE4121736C1 (en) * | 1991-07-01 | 1993-01-07 | Telefunken Electronic Gmbh, 7100 Heilbronn, De | Switching pulses generating circuitry e.g. for vertical deflection in TV receiver - has oscillator with capacitor controlled from current sources and connected via terminal to integrated circuit |
DE4123388A1 (en) * | 1991-07-15 | 1993-01-21 | Thomson Brandt Gmbh | DEVICE FOR GENERATING VIBRATIONS AND THEIR APPLICATION |
US6127870A (en) * | 1997-07-29 | 2000-10-03 | Matsushita Electric Works, Ltd. | Output delay circuit |
DE10123742A1 (en) * | 2001-05-16 | 2002-11-28 | Siemens Ag | Control and error correction for pulse output |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3028841B2 (en) * | 1990-09-28 | 2000-04-04 | 株式会社東芝 | PWM generation circuit |
JP3322893B2 (en) * | 1991-09-30 | 2002-09-09 | エヌイーシーマイクロシステム株式会社 | Microcomputer |
GB2271232B (en) * | 1992-10-03 | 1997-05-07 | Motorola Inc | Pulse generation/sensing arrangement for use in a microprocessor system |
KR0147197B1 (en) * | 1995-05-22 | 1998-12-01 | 문정환 | Pwm circuit of the multi-channel |
DE19842141A1 (en) * | 1998-09-15 | 2000-03-16 | Wilo Gmbh | Function-generating control module for power transistors |
KR100424311B1 (en) * | 2001-12-17 | 2004-03-24 | 엘지전자 주식회사 | Square-Wave Generator and Generating Method for the Same |
KR100752651B1 (en) * | 2006-01-16 | 2007-08-29 | 삼성전자주식회사 | Analog level meter and method for measuring level of analog signal using duty ratio |
FR2918227A1 (en) * | 2007-06-27 | 2009-01-02 | Thomson Licensing Sas | METHOD FOR GENERATING A VARIABLE ANALOG SIGNAL GENERATED BY A PWM SIGNAL AND SYSTEM GENERATING SUCH A SIGNAL |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US3805167A (en) * | 1972-06-27 | 1974-04-16 | Telex Corp | Digital pulse generator with automatic duty cycle control |
JPS5445558A (en) * | 1977-09-17 | 1979-04-10 | Citizen Watch Co Ltd | Frequency adjusting set for oscillator |
JPS5533344A (en) * | 1978-08-31 | 1980-03-08 | Toshiba Corp | Pulse generating device |
JPS5853229A (en) * | 1981-09-26 | 1983-03-29 | Mitsubishi Electric Corp | Generating circuit of variable duty ratio pulse waveform |
-
1989
- 1989-08-17 KR KR1019890011701A patent/KR930000965B1/en not_active IP Right Cessation
-
1990
- 1990-08-10 DE DE4025378A patent/DE4025378A1/en not_active Ceased
- 1990-08-17 DE DE4026169A patent/DE4026169A1/en not_active Ceased
- 1990-08-17 FR FR9010436A patent/FR2651049A1/en not_active Withdrawn
- 1990-08-17 GB GB9018147A patent/GB2235103A/en not_active Withdrawn
- 1990-08-17 JP JP2218010A patent/JPH03165620A/en active Pending
Non-Patent Citations (2)
Title |
---|
radio fernsehen elektronik, 32 (1983) 10, S. 656-657 * |
Tietze, Schenk: Halbleiter-Schaltungstechnik, 6. Aufl., Springer-Verlag, Berlin u.a. 1983, S. 250-251 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE4121736C1 (en) * | 1991-07-01 | 1993-01-07 | Telefunken Electronic Gmbh, 7100 Heilbronn, De | Switching pulses generating circuitry e.g. for vertical deflection in TV receiver - has oscillator with capacitor controlled from current sources and connected via terminal to integrated circuit |
DE4123388A1 (en) * | 1991-07-15 | 1993-01-21 | Thomson Brandt Gmbh | DEVICE FOR GENERATING VIBRATIONS AND THEIR APPLICATION |
US6127870A (en) * | 1997-07-29 | 2000-10-03 | Matsushita Electric Works, Ltd. | Output delay circuit |
DE19834190C2 (en) * | 1997-07-29 | 2001-03-01 | Matsushita Electric Works Ltd | Output delay circuit |
DE10123742A1 (en) * | 2001-05-16 | 2002-11-28 | Siemens Ag | Control and error correction for pulse output |
Also Published As
Publication number | Publication date |
---|---|
DE4025378A1 (en) | 1991-02-21 |
GB2235103A (en) | 1991-02-20 |
FR2651049A1 (en) | 1991-02-22 |
KR930000965B1 (en) | 1993-02-11 |
KR910005566A (en) | 1991-03-30 |
JPH03165620A (en) | 1991-07-17 |
GB9018147D0 (en) | 1990-10-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE2917017C2 (en) | Clock signal generator | |
DE3632205C2 (en) | Data processing arrangement consisting of several data processing modules working in parallel with a multiple redundant clock arrangement | |
DE3818546C2 (en) | ||
DE2731336A1 (en) | CLOCK SYSTEM | |
DE4026169A1 (en) | PROGRAMMABLE RECTANGULAR GENERATOR | |
DE19983213B4 (en) | Detector device for detecting abnormal clocks | |
DE3246432C2 (en) | ||
DE19546805C2 (en) | Pulse width modulation circuit | |
DE3022746A1 (en) | DIGITAL PHASE COMPARATOR CIRCUIT | |
DE2414014A1 (en) | DEVICE FOR FEELING THE DURATION OF SIGNALS | |
EP0224707B1 (en) | Circuit arrangement for the self-control of a plurality of analogous electrical signals | |
DE69233345T2 (en) | Single-chip microcomputer with two timer functions | |
DE3032568C2 (en) | Generator for clock signals with period length controllable by command signals | |
DE3212453C2 (en) | ||
DE2917126C2 (en) | Method for testing an integrated circuit and arrangement for carrying out the method | |
DE2829709C2 (en) | Method and arrangement for generating pulse cycles immediately following one another in time | |
DE3306983A1 (en) | CONTROL CIRCUIT FOR INVERTER | |
EP0042961B1 (en) | Method and circuit arrangement for the generation of pulses of predetermined time relation within predetermined pulse intervals with high temporal resolution | |
DE2633155A1 (en) | DEVICE FOR GENERATING TIME-DEFINED CONTROL SIGNALS | |
DE3633461A1 (en) | CLOCK SIGNAL DEVICE | |
DE3836811C2 (en) | ||
DE3642193A1 (en) | IMAGE DISPLAY DEVICE | |
DE3133838C2 (en) | Circuit arrangement for transferring the refresh signal to a semiconductor memory | |
EP1099192A1 (en) | Clocked integrated semiconductor circuit and method for operating the same | |
EP1126615A1 (en) | Clock frequency dividing method and frequency divider for realising said method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
OP8 | Request for examination as to paragraph 44 patent law | ||
8131 | Rejection |