RU1793545C - Converter from code to pulse-width signal - Google Patents
Converter from code to pulse-width signalInfo
- Publication number
- RU1793545C RU1793545C SU904847181A SU4847181A RU1793545C RU 1793545 C RU1793545 C RU 1793545C SU 904847181 A SU904847181 A SU 904847181A SU 4847181 A SU4847181 A SU 4847181A RU 1793545 C RU1793545 C RU 1793545C
- Authority
- RU
- Russia
- Prior art keywords
- input
- output
- bus
- register
- pulse
- Prior art date
Links
- 238000009434 installation Methods 0.000 claims description 14
- 238000006243 chemical reaction Methods 0.000 description 15
- 230000002441 reversible effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 241001137251 Corvidae Species 0.000 description 1
- 238000010835 comparative analysis Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 235000015108 pies Nutrition 0.000 description 1
Landscapes
- Analogue/Digital Conversion (AREA)
Abstract
Изобретение относитс к автоматике и вычислительной технике и может быть использовано в цифровых системах управлени электроприводом. Цель изобретени - расширение эксплуатационных возможностей за счет повышени достоверности информации при изменении входного кода. Цель достигаетс тем, что в преобразователь код - широтно-импульсный сигнал, с первого по четвертый элементы И-НЕ, первый , второй и третий триггеры, введены вторые регистр и счетчик импульсов, п тый элемент И-НЕ, элементы ИЛИ, И, ИЛИ- НЕ, первый, второй и третий инверторы, информационные входы первого и второго регистров вл ютс шиной входного кода. 2 ил.The invention relates to automation and computer technology and can be used in digital drive control systems. The purpose of the invention is to expand operational capabilities by increasing the reliability of information when changing the input code. The goal is achieved in that the code converter is a pulse-width signal, the first through fourth AND-NOT elements, the first, second and third triggers, the second register and pulse counter, the fifth AND-NOT element, the OR, AND, OR elements - NOT, the first, second and third inverters, the information inputs of the first and second registers are the input code bus. 2 ill.
Description
Изобретение относитс к-автоматике и вычислительной технике и может быть использовано в цифровых системах управлени электроприводами.The invention relates to automation and computer technology and can be used in digital drive control systems.
Известен преобразователь кода во временной интервал 1. содержащий генератор импульсов, первый и второй счетчики импульсов, первый и второй триггеры, элементы И, ИЛИ, распределитель импульсов и блок инверторов. Недостатком данного преобразовател вл етс то, что после каждого преобразовани кода во временной интервал необходим повторный сигнал запуска , даже если код преобразовани не мен етс .A known code converter in time interval 1. comprising a pulse generator, first and second pulse counters, first and second triggers, AND, OR elements, a pulse distributor and an inverter unit. The disadvantage of this converter is that after each code conversion into a time interval, a repeated trigger signal is necessary, even if the conversion code does not change.
Наиболее близким к предлагаемому устройству вл етс преобразователь код - ШИМ 2. Он содержит генератор импульсов , первый и второй триггеры, регистр, информационные входы которого вл ютс соответствующими шинами входного кода. а выходы разр дов, кроме старшего, соответственно подключены к информационным входам реверсивного счетчика, первый и второй выходы которого соответственно соединены с S- и R-входами первого триггера , а также содержит цифровой элемент задержки , сумматор по модулю два, первый, второй, третий и четвертый элементы И-НЕ и третий триггер, D-вход которого вл етс шиной нулевого потенциала. С-вход объединен с С-входом второго триггера, входами обнулени регистра и реверсивного счетчика и вл етс шиной Начальна установка, а R-вход подключен к первому выходу переполнени реверсивного счетчика, второй выход переполнени которого соединен с R-входом второго триггера, информационный вход старшего разр да - с инверсным выходом старшего разр да регистра, а суммирующий и вычитающий входы соединены с выходами соответственно третьего и четвертого элементов И-НЕ, первые входы которых соответственно подключены к пр мым выходам третьего и второго триггеров и вл ютс первой и второй выходнымиClosest to the proposed device is a PWM-2 code converter. It contains a pulse generator, first and second triggers, a register, the information inputs of which are the corresponding input code buses. and the outputs of the bits, except for the older one, are respectively connected to the information inputs of a reversible counter, the first and second outputs of which are respectively connected to the S- and R-inputs of the first trigger, and also contains a digital delay element, an adder modulo two, the first, second, third and a fourth AND-NOT element and a third trigger, the D-input of which is a zero potential bus. The C-input is combined with the C-input of the second trigger, the inputs of zeroing the register and the reverse counter and is the Initial setting bus, and the R-input is connected to the first overflow output of the reverse counter, the second overflow output of which is connected to the R-input of the second trigger, information input high-order - with the inverse high-order output of the register, and the summing and subtracting inputs are connected to the outputs of the third and fourth AND-NOT elements, respectively, the first inputs of which are respectively connected to the direct outputs of the second and second triggers and are the first and second output
елate
сwith
VI ю со ел - елVI th eat - eat
шинами, а вторые входы объединены с первым входом цифрового элемента задержки и подключены к выходу генератора импульсов , при этом выход сумматора по модулю два соединен с входом разрешени записи реверсивного счетчика, а первый и второй входы соответственно объединены с вторым и третьим входами цифрового элемента задержки и подключены к инверсным выходам второго и третьего триггеров, S-входы которых соответственно подключены к выходам первого и второго элементов И-НЕ, первые входы которых объединены и подключены к выходу цифрового элемента задержки , а вторые входы соответственно соединены с пр мым и инверсным выходами первого триггера, причем выход разрешени записи регистра вл етс шиной Запись, а D-вход второго триггера - шиной установки логической 1.buses, and the second inputs are combined with the first input of the digital delay element and connected to the output of the pulse generator, while the output of the adder modulo two is connected to the recording enable input of the reverse counter, and the first and second inputs are combined with the second and third inputs of the digital delay element and connected to the inverse outputs of the second and third triggers, the S-inputs of which are respectively connected to the outputs of the first and second elements AND NOT, the first inputs of which are combined and connected to the digital output lementa delay, and second inputs respectively connected to the direct and inverse outputs of the first flip-flop, and a register write enable bus output is recording, and D-input of the second flip-flop - setting a logic 1 bus.
Недостатком данного преобразовател вл етс то, что устройство, контролирующее его работу, не может записать новый код преобразовани в регистр в тот момент, когда код с регистра переписываетс в счетчик , т.е. устройство не позвол ет измен ть информацию на входной шине в любой момент времени. В противном случае счетчик может быть установлен неправильным кодом и преобразование код - ШИМ происходит неправильно.The disadvantage of this converter is that the device controlling its operation cannot write a new conversion code to the register at the moment when the code from the register is written to the counter, i.e. the device does not allow changing information on the input bus at any time. Otherwise, the counter may be set with the wrong code and the code-to-PWM conversion does not work correctly.
Целью изобретени вл етс расширение эксплуатационных возможностей за счет повышени достоверности информации при изменении входного кода.The aim of the invention is to expand operational capabilities by increasing the reliability of information when changing the input code.
Цель достигаетс тем, что в преобразователь , содержащий генератор импульсов, первые регистр и счетчик импульсов, с первого по четвертый элементы И-НЕ, первый, второй и третий триггеры, пр мой выход второго из которых вл етс первой выходной шиной, а пр мой выход третьего триггера - второй выходной шиной, причем S-вход первого триггера подключен к выходу переноса первого счетчика импульсов, первый вход первого элемента И-НЕ подключен к выходу генератора импульсов, а выход - к суммирующему входу первого счетчика импульсов , информационные входы которого подключены к соответствующим выходам первого регистра, информационные входы которого вл ютс шиной входной кода, а вход записи вл етс первой шиной Запись регистра, вход сброса счетчика импульсов вл етс шиной Начальна установка, введены вторые регистр и счетчик импульсов, п тый элемент И-НЕ, элементы ИЛИ, И, ИЛИ-НЕ, первый, второй и третий инверторы, причем информационные входы второго регистра вл ютс шиной входного кода, а выходы соединены с соответствующими информационными входами второго счетчика импульсов, вход сброса которого вл етс шиной Начальна установка, а суммирующий вход подключен к выходу первого элемента И-НЕ, первый вход элемента И подключен к выходу генератора импульсов, а выход соединен с первым входом второго элемента И-НЕ,The goal is achieved in that in the converter containing the pulse generator, the first register and pulse counter, the first to fourth AND-NOT elements, the first, second and third triggers, the direct output of the second of which is the first output bus, and the direct output the third trigger is the second output bus, and the S-input of the first trigger is connected to the transfer output of the first pulse counter, the first input of the first element is NOT connected to the output of the pulse generator, and the output is to the summing input of the first pulse counter, information the inputs of which are connected to the corresponding outputs of the first register, the information inputs of which are the input code bus, and the write input is the first bus. Register register, the pulse counter reset input is the bus. Initial setting, the second register and pulse counter are entered, the fifth element is And NOT, elements OR, AND, OR NOT, the first, second and third inverters, the information inputs of the second register being the input code bus and the outputs connected to the corresponding information inputs of the second pulse counter, the reset input of which is the Initial Installation bus, and the summing input is connected to the output of the first AND-NOT element, the first input of the AND element is connected to the output of the pulse generator, and the output is connected to the first input of the second AND-NOT element
0 выход которого соединен с С-входом третьего триггера, инверсный выход которого подключен к его D-входу и объединен с установочными входами первого и второго счетчиков импульсов и с С-входом первого0 the output of which is connected to the C-input of the third trigger, the inverse output of which is connected to its D-input and combined with the installation inputs of the first and second pulse counters and with the C-input of the first
5 триггера, инверсный выход которого соединен с вторым входом первого элемента И-НЕ , первым входом элемента ИЛИ и первым входом элемента ИЛИ-НЕ, а пр мой вход соединен с первым входом п того элемента5 a trigger whose inverse output is connected to the second input of the first AND-NOT element, the first input of the OR element and the first input of the OR-NOT element, and the direct input is connected to the first input of the fifth element
0 И-НЕ, выход которого подключен к первому входу четвертого элемента И-НЕ, выход которого соединен с вторым входом п того элемента И-НЕ и с вторым входом элемента ИЛИ, выход которого подключен к второму0 AND-NOT, whose output is connected to the first input of the fourth AND-NOT element, the output of which is connected to the second input of the fifth AND-NOT element and to the second input of the OR element, whose output is connected to the second
5 входу второго элемента И-НЕ, выход переноса второго счетчика импульсов подключен через третий инвертор к С-входу второго триггера, S-вход которого соединен с выходом переноса первого счетчика импульсов и5 to the input of the second AND-NOT element, the transfer output of the second pulse counter is connected through the third inverter to the C-input of the second trigger, the S-input of which is connected to the transfer output of the first pulse counter and
0 объединен с входом первого инвертора, выход которого подключен к второму входу элемента ИЛИ-НЕ, выход которого соединен с вторым входом элемента И, R-входы первого, второго и третьего триггеров объе5 динены и подключены к выходу второго инвертора , вход которого вл етс шиной Начальна установка, D- входы первого и второго триггеров вл ютс шиной нулевого потенциала, вход записи второго регист0 ра вл етс второй шиной Запись регистра и объединен с первым входом третьего элемента И-НЕ, второй вход которого объединен с входом записи первого регистра, а выход соединен с вторым вхо5 дом четвертого элемента И-НЕ.0 combined with the input of the first inverter, the output of which is connected to the second input of the OR element, the output of which is connected to the second input of the element AND, the R inputs of the first, second and third triggers are connected and connected to the output of the second inverter, the input of which is the bus Initial installation, the D inputs of the first and second triggers are a zero potential bus, the second input of the second register is the second bus. Register is combined with the first input of the third AND-NOT element, the second input of which is combined with the recording input Vågå register, and an output coupled to a second home vho5 fourth AND-NO element.
Сопоставительный анализ предлагаемого устройства с прототипом показывает, что предлагаемое устройство отличаетс наличием новых элементов: второго регистра,A comparative analysis of the proposed device with the prototype shows that the proposed device is characterized by the presence of new elements: a second register,
0 второго счетчика, элементов И, ИЛИ, ИЛИ- НЕ, И-НЕ, инверторов. Таким образом, предлагаемое устройство соответствует критерию новизна.0 of the second counter, elements AND, OR, OR-NOT, AND-NOT, inverters. Thus, the proposed device meets the criterion of novelty.
Сравнение предлагаемого решени неComparison of the proposed solution does not
5 только с прототипом, но и с другими техническими решени ми в данной области техники показывает, что элементы И, ИЛИ, ИЛИ-НЕ, И-НЕ, регистр, счетчик, инвертор широко известны. Но их введение в указанной св зи с остальными элементами схемы5 only with a prototype, but also with other technical solutions in the art, shows that the elements AND, OR, OR-NOT, AND-NOT, register, counter, inverter are widely known. But their introduction in this connection with other elements of the circuit
приводит к по влению нового свойства: информацию на входной шине можно измен ть в любой момент времени. Это позвол ет сделать вывод о соответствии критерию существенные отличи ,leads to the appearance of a new property: information on the input bus can be changed at any time. This allows us to conclude that the criterion is significant differences,
На фиг. 1 представлена структурна схема за вл емого преобразовател ; на фиг. 2 - диаграммы, по сн ющие его работу . In FIG. 1 is a structural diagram of an inventive converter; in FIG. 2 are diagrams illustrating his work.
Преобразователь код - широтно-им- пульсный сигнал содержит генератор 1 импульсов , регистр 2, счетчик 3, первый 4, второй 5, третий 6 и четвертуй 7 элемент И-НЕ, шину 8 входного кода, первую шину 9 Запись регистра, шину 10 Начальна установка, первый 11, второй 12 и третий 13 триггеры, причем пр мой выход второго триггера 12 вл етс первой выходной шиной 14, а пр мой выход третьего триггера 13 - второй выходной шиной 15, установочный вход первого триггера 11 подключен к выходу переноса счетчика 3, первый вход первого элемента И-НЕ 4 подключен к генератору 1 импупьсов, а выход - к суммирующему входу счетчика 3, установочные входы которого подключены к выходам регистра 2, входы которого подключены к шине 8 вводного кода, а вход записи подключен к первой шине Запись регистра 9, вход сброса счетчика 3 подключен к шине Начальна установка 10. В преобразователь введены второй регистр 16, второй счетчик 17, п тый элемент И-НЕ 18, элементы ИЛИ 19, И 20, ИЛ И-НЕ 21. первый 22, второй 23 и третий 24 инверторы, втора шина Запись регистра 25. Причем шина 8 входного кода подключена к входам второго .регистра 16, выходы которого соединены с входами второго счетчика 17, вход сброса которого подключен к шине Начальна установка 10, а суммирующий вход - к выходу первого элемента И-НЕ 4. Первый вход элемента И 20 подключен к генератору 1 импульсов, а выход соединен с первым входом второго элемента И-НЕ 5, выход которого соединен с С-входом третьего триггера 13. Инверсный выход последнего подключен к его D-входу, соединен с установочными входами первого 3 и второго 17 счетчиков и с С-входом первого триггера 11, инверсный выход которого соединен с вторым входом первого элемента И-НЕ 4, вторым входом элемента ИЛИ 19 и первым входом элемента ИЛИ- НЕ 21, а пр мой выход соединен с вторым входом п того элемента Й-НЕ 18. Выход элементов И-НЕ 18 подключен к второму входу четвертого элемента И-НЕ 7, выход которого соединен с первым входом п того элемента И-НЕ 18 и с первым входом элемента ИЛИ 19, выход которого подключен кConverter code - pulse-width signal contains a pulse generator 1, register 2, counter 3, first 4, second 5, third 6 and fourth 7 element NAND, bus 8 of the input code, first bus 9 Write register, bus 10 Initial installation, first 11, second 12 and third 13 triggers, the direct output of the second trigger 12 being the first output bus 14, and the direct output of the third trigger 13 being the second output bus 15, the installation input of the first trigger 11 is connected to the counter transfer output 3 , the first input of the first element AND NOT 4 is connected to the generator 1 imp pies, and the output goes to the summing input of counter 3, the installation inputs of which are connected to the outputs of register 2, the inputs of which are connected to bus 8 of the input code, and the recording input is connected to the first bus. Register 9, the reset input of counter 3 is connected to the bus. Initial setting 10 . The second register 16, the second counter 17, the fifth AND-NOT 18 element, the OR 19, AND 20, OR-NOT 21. elements are entered into the converter. The first 22, the second 23 and the third 24 inverters, the second bus. Register register 25. Moreover bus 8 of the input code is connected to the inputs of the second. register 16, the outputs of which are identical with the inputs of the second counter 17, the reset input of which is connected to the bus. The initial setting is 10, and the summing input is connected to the output of the first AND-NOT element 4. The first input of the AND 20 element is connected to the pulse generator 1, and the output is connected to the first input of the second AND element -NOT 5, whose output is connected to the C-input of the third trigger 13. The inverse output of the latter is connected to its D-input, connected to the installation inputs of the first 3 and second 17 counters and to the C-input of the first trigger 11, whose inverse output is connected to the second the input of the first element And E 4, the second input of the OR element 19 and the first input of the OR-NOT 21 element, and the direct output is connected to the second input of the fifth element NAND 18. The output of the NAND 18 elements is connected to the second input of the fourth AND-NOT 7 element, the output of which is connected to the first input of the fifth element AND-NOT 18 and to the first input of the element OR 19, the output of which is connected to
второму входу второго элемента И-НЕ 5. Выход переноса счетчика 17 подключен через третий инвертор 24 к С-входу второго триггера 12, S-вход которого и вход первого 5 инвертора 22 соединены с выходом переноса первого счетчика 3, а выход первого инвертора 22 подключен к второму входу элемента ИЛИ-НЕ 21, выход которого соединен с вторым входом элемента И 20. Вхо0 ды сброса первого 11, второго 12 и третьего 13 триггеров подключены к выходу второго инвертора 23, вход которого подключен к шине Начальна установка 10. D-входы первого 11 и второго 12 триггеров подклю5 чены к шине нулевого потенциала, втора шина Запись регистра 25 соединена с входом записи второго регистра 17 и с первым входом третьего элемента И-НЕ 6, выход которого подключен к первому входу чет0 вертого элемента И-НЕ 7.the second input of the second element AND-NOT 5. The transfer output of the counter 17 is connected through the third inverter 24 to the C-input of the second trigger 12, the S-input of which and the input of the first 5 inverter 22 are connected to the transfer output of the first counter 3, and the output of the first inverter 22 is connected to the second input of the OR-NOT 21 element, the output of which is connected to the second input of the And element 20. The reset inputs of the first 11, second 12, and third 13 triggers are connected to the output of the second inverter 23, the input of which is connected to the bus. Initial setting 10. D-inputs first 11 and second 12 triggers connect 5 cores to the zero potential bus, the second bus. Register register 25 is connected to the recording input of the second register 17 and to the first input of the third AND-NOT 6 element, the output of which is connected to the first input of the fourth AND-NOT 7 element.
Работу преобразовател код-широтно- импульсный сигнал по сн ет диаграмма на фиг. 1. где а - выход генератора 1 импульсов , б - выход первого элемента И-НЕ 4, вThe operation of the code-width-pulse converter is illustrated by the diagram in FIG. 1. where a is the output of the 1 pulse generator, b is the output of the first AND-NOT 4 element, c
5 - выход переноса первого счетчика 3, г - пр мой выход первого триггера 11, д мой выход второго триггера 12, перва выходна шина 14, е - выход элемента ИЛИ-НЕ 21, ж - выход элемента И 20, з 0 выход второго элемента И-НЕ 5, и - инверсный выход третьего триггера 13, и - выход переноса второго счетчика 17, к - втора шина Запись регистра, л - выход элемента ИЛИ.5 - transfer output of the first counter 3, d - direct output of the first trigger 11, d my output of the second trigger 12, first output bus 14, e - output of the OR-NOT 21 element, g - output of the AND 20 element, s 0 output of the second element AND NOT 5, and is the inverse output of the third trigger 13, and is the transfer output of the second counter 17, k is the second bus. Register write, l is the output of the OR element.
5 Преобразователь код - широтно-им- пульсный сигнал работает следующим образом . Устройство (в частном случае микроЭВМ) вырабатывает сигнал начальной установки. Счетчики 3, 17 и триггеры 11,5 Converter code - pulse width signal operates as follows. The device (in the particular case of the microcomputer) generates a signal of the initial installation. Counters 3, 17 and triggers 11,
0 12, 13 устанавливаютс в О. Через первый элемент И-НЕ 4 импульсы от генератора 1 поступают на суммирующий вход первого счетчика 3. Во втором полупериоде его состо ни 11...1 будет активный сигнал пере5 носа (фиг. 2а). Активный сигнал переноса (в) первого счетчика 3 устанавливает в 1 первый 11 (г) и второй 12 (д) триггеры. Активный логический О инверсного выхода первого триггера 11 через первый элемент И-НЕ 40 12, 13 are set to O. Through the first AND-NOT 4 element, pulses from the generator 1 are fed to the summing input of the first counter 3. In the second half-cycle of its state 11 ... 1 there will be an active transfer signal (Fig. 2a). The active transfer signal (c) of the first counter 3 sets the first 11 (g) and second 12 (e) triggers to 1. Active logical About the inverse output of the first trigger 11 through the first element AND NOT 4
0 импульс переноса первого счетчика 3 сделает максимально коротким. Его длительность равна сумме задержек на первом триггере 11, первом элементе И-НЕ 4 и первом счетчике 3. Элемент ИЛ И-НЕ 21 служит ключом,0 the transfer pulse of the first counter 3 will make it as short as possible. Its duration is equal to the sum of the delays at the first trigger 11, the first AND-NOT 4 element and the first counter 3. The IL-AND-21 element serves as a key,
5 который разрешает прохождение счетных импульсов через элемент И 20 (е). Они будут проходить в тот момент (ж), когда установлен в 1 первый триггер 11 и неактивный сигнал переноса первого счетчика 3. Примем , что в данный момент сигналы записи5 which allows the passage of counting pulses through the element And 20 (e). They will take place at that moment (g), when the first trigger 11 and the inactive transfer signal of the first counter 3 are set to 1. We assume that the recording signals are currently
неактивны. Тогда счетные импульсы поступают (з) на С-вход третьего триггера 13. Пер- вый после начальной установки положительный фронт сигнала после второго элемента И-НЕ 5 устанавливает третий триггер 13 в Г, потому что он включен как делитель на два. Активна 1 третьего триггера 13 формирует сигнал Нет преобразовани на второй выходной шине 15. Активный О инверсного выхода этого триггера 13 формирует сигнал установки (и) пер- вого 3 и второго 17 счетчиков кодом соответственно первого 2 и второго 16 регистров . Необходимо отметить, что дл начала правильного преобразовани кода в широт- но-импульсный сигнал нужно до того, пока первый счетчик 3 выработает сигнал переноса , в первый 2 и второй 16 регистры записать код преобразовани . Второй положительный перепад (з) сигнала после этого элемента И-НЕ 5 устанавливает третий триггер 13 в О. Положительный перепад на инверсном выходе третьего триггера 13 (и) устанавливает в О первый триггер 11. Логическа 1 инверсного выхода первого триггера 11 запрещает прохождение счетных импульсов на третий триггер 13 и разрешает их прохождение на суммирующие входы первого 3 и второго 17 счетчиков.inactive. Then the counting pulses are fed (h) to the C-input of the third trigger 13. The first positive edge of the signal after the initial installation after the second AND-NOT 5 element sets the third trigger 13 in G, because it is turned on as a divider by two. Active 1 of the third trigger 13 generates a signal. There is no conversion on the second output bus 15. Active О of the inverse output of this trigger 13 generates a signal for setting (first) the first 3 and second 17 counters with the code of the first 2 and second 16 registers, respectively. It should be noted that in order to start the correct conversion of the code into a pulse-width signal, it is necessary to write the conversion code into the first 2 and second 16 registers before the first counter 3 generates a transfer signal. The second positive edge (h) of the signal after this AND-NOT 5 element sets the third trigger 13 to O. The positive edge at the inverse output of the third trigger 13 (s) sets the first trigger 11 to 0. Logical 1 of the inverse output of the first trigger 11 prohibits the passage of counting pulses to the third trigger 13 and allows their passage to the summing inputs of the first 3 and second 17 counters.
Преобразователь работает правильно при условии, что код на входной шине 8 инверсный, и во втором регистре 16 меньше , чем в первом регистре 2. Тогда при синхронно работающих счетчиках во втором счетчике 17 импульс переноса (и) по вл етс раньше и через инвертор 24 сбрасывает в О второй триггер 12 (д).The converter operates correctly provided that the code on the input bus 8 is inverse, and in the second register 16 less than in the first register 2. Then, with synchronously working counters in the second counter 17, the transfer pulse (s) appears earlier and resets through the inverter 24 in O second trigger 12 (d).
Во втором полупериоде состо ни 11...1 первого счетчика 3 будет снова активный сигнал переноса. Тогда кончаетс текущий цикл преобразовани код - широтно-импульсный сигнал и начинаетс нова настройка преобразовател на коды, хран щиес в первом 2 и втором 16 регистрах , котора описана выше. Наличие первого регистра 2 позвол ет управл ть периодом преобразовани широтно-им- пульсного сигнала. Во втором регистре 16 хранитс собственно код преобразовани .In the second half-cycle of the state 11 ... 1 of the first counter 3, the transfer signal will again be active. Then the current code-to-pulse-width signal conversion cycle ends and a new tuning of the converter to the codes stored in the first 2 and second 16 registers, which is described above, begins. The presence of the first register 2 allows you to control the conversion period of the pulse width signal. In the second register 16, the actual conversion code is stored.
Теперь рассмотрим случай, когда запись нового кода преобразовани или периода преобразовани происходит в момент установки счетчиков.Now, consider the case when a new conversion code or conversion period is recorded at the time the counters are installed.
Решение конфликтной ситуации записывать код в регистры или. устанавливать счетчики решено в сторону высшего приоритета контролирующего устройства, Ему разрешено производить запись в регистрыConflict resolution write code in registers or. it was decided to set the counters in the direction of the highest priority of the monitoring device, He is allowed to write to the registers
влюбой момент времени. Если в тот момент, когда происходит запись в регистры, подошло врем , чтобы установить счетчики кодом этих регистров, то, пока внешнееany moment in time. If at the moment when writing to the registers occurs, the time has come to set the counters with the code of these registers, then while the external
устройство не закончит запись, установка счетчиков не происходит. Это реализовано следующим образом.the device does not finish recording, the installation of counters does not occur. This is implemented as follows.
На выходах регистров информаци должна измен тьс по положительному перепаду сигнала Запись, Активный низкий уровень сигналов на первой или второй шине Запись регистра через третий элемент И-НЕ 6 попадает на схему решени конфликтной ситуации: четвертый 7 и п тый 18At the outputs of the registers, the information should change according to the positive edge of the signal. Record. Active low level of signals on the first or second bus. Register record through the third AND-NOT 6 element gets to the conflict resolution scheme: fourth 7 and fifth 18
элементы И-НЕ, элемент ИЛИ 19. Когда раньше происходит сигнал установки счетчиков , чем сигнал записи в регистры, то логический О на выходе элемента ИЛИ 19 (л) не сформирован и установка происходит,AND-NOT elements, OR element 19. When the signal for setting the counters earlier than the write signal to the registers occurs, the logical O at the output of the OR element 19 (l) is not generated and the installation occurs,
как описано выше. Необходимо заметить, что длительность сигнала установки должна быть меньше, чем длительность сигнала записи . Если в момент, когда на первой или второй шине Запись регистра активныйas described above. It should be noted that the duration of the setup signal should be less than the duration of the recording signal. If at the moment when on the first or second bus Register Register is active
сигнал, приходит сигнал установки счетчиков , то на выходе элемента ИЛИ 19 (л) формируетс логический О, который запрещает прохождение импульсов на третий триггер 13. Тем самым третий триггерsignal, the signal for setting the counters arrives, then at the output of the OR element 19 (l) a logical O is formed, which prohibits the passage of pulses to the third trigger 13. Thus, the third trigger
13, который вырабатывает сигнал установки счетчиков, не установлен в 1 до тех пор, пока внешнее устройство не закончит запись в регистры.13, which generates a counter setup signal, is not set to 1 until the external device finishes writing to the registers.
На выходе второго триггера реализованы следующие временные соотношени : Т(а)3/2 t(0); T(b)(0) + T(a); T(c)(0) + T(a), где t(0) - период частоты генератора 1;At the output of the second trigger, the following time relations are implemented: T (a) 3/2 t (0); T (b) (0) + T (a); T (c) (0) + T (a), where t (0) is the frequency period of generator 1;
N1- код регистра 2; N2- код регистра 16. Точность преобразовани будет така же, как и в преобразователе 1. Однако, если установка счетчиков происходит в момент записи кода в регистры, то вноситс - дополнительна погрешность в один цикл преобразовани , котора определ етс по формуле f Тэ/Т(с)N1 - register code 2; N2 is the code of the register 16. The accuracy of the conversion will be the same as in the converter 1. However, if the counters are installed at the moment the code is written into the registers, an additional error is introduced in one conversion cycle, which is determined by the formula f Te / T (with)
где Т3 - врем записи кода в регистры;where T3 is the time the code was written to the registers;
Т(с) - период широтно-импульсного сигнала .T (s) is the period of the pulse-width signal.
За вл емый преобразователь по сравнению с прототипом позвол ет облегчитьThe inventive converter in comparison with the prototype allows to facilitate
работу контролирующего устройства по управлению преобразованием код - широтно- импульсный сигнал, расширить эксплуатационные возможности. the operation of the control device for managing the conversion code - pulse-width signal, to expand operational capabilities.
Claims (1)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU904847181A RU1793545C (en) | 1990-07-02 | 1990-07-02 | Converter from code to pulse-width signal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU904847181A RU1793545C (en) | 1990-07-02 | 1990-07-02 | Converter from code to pulse-width signal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| RU1793545C true RU1793545C (en) | 1993-02-07 |
Family
ID=21525326
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| SU904847181A RU1793545C (en) | 1990-07-02 | 1990-07-02 | Converter from code to pulse-width signal |
Country Status (1)
| Country | Link |
|---|---|
| RU (1) | RU1793545C (en) |
-
1990
- 1990-07-02 RU SU904847181A patent/RU1793545C/en active
Non-Patent Citations (1)
| Title |
|---|
| 1. Авторское свидетельство СССР № 1193818, кл. Н 03 М 1/82, 1983. 2. Авторское свидетельство СССР № 1295523, кл. Н 03 М 1/82, 1985. * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| RU1793545C (en) | Converter from code to pulse-width signal | |
| SU1187145A1 (en) | Device for holding zero crossings of periodic signal | |
| SU1115225A1 (en) | Code-to-time interval converter | |
| SU1762402A1 (en) | Digital pulse-length modulator | |
| RU1798901C (en) | Single-pulse frequency multiplier | |
| SU1667254A1 (en) | Number-to-time converter | |
| SU1427571A2 (en) | Frequency digitizer | |
| RU1798718C (en) | Frequency meter | |
| SU1737727A1 (en) | Controlled frequency divider with fractional division ratio | |
| SU1451680A1 (en) | Monitored arithmetic device | |
| SU1631509A1 (en) | Multicycle recirculating time-to-number converter | |
| SU960837A1 (en) | Digital function converter | |
| SU1179349A1 (en) | Device for checking microprograms | |
| SU1427366A1 (en) | Microprogram module | |
| SU1647903A2 (en) | Code-to-pulse repetition period converter | |
| SU1064458A1 (en) | Code/pdm converter | |
| SU1529454A1 (en) | Analog-digital converter | |
| SU1358063A1 (en) | Digital phase-frequency comparator | |
| RU1775854C (en) | Controlled pulse recurrence frequency divider | |
| SU1659997A1 (en) | Comparison number device | |
| SU1660153A1 (en) | Pulse-packet-to-rectangular-pulse converter | |
| SU970367A1 (en) | Microprogram control device | |
| SU1674376A1 (en) | Code to pulse-width signal converter | |
| SU1206780A1 (en) | Device for multiplying frequency by number | |
| SU1179362A1 (en) | Memory interface |