SU758171A1 - Digital computer of sine and cosine functions - Google Patents

Digital computer of sine and cosine functions Download PDF

Info

Publication number
SU758171A1
SU758171A1 SU782585523A SU2585523A SU758171A1 SU 758171 A1 SU758171 A1 SU 758171A1 SU 782585523 A SU782585523 A SU 782585523A SU 2585523 A SU2585523 A SU 2585523A SU 758171 A1 SU758171 A1 SU 758171A1
Authority
SU
USSR - Soviet Union
Prior art keywords
counter
input
adder
cosine
sine
Prior art date
Application number
SU782585523A
Other languages
Russian (ru)
Inventor
Vladislav Gorokhov
Anatolij A Ilin
Original Assignee
Vladislav Gorokhov
Anatolij A Ilin
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 Vladislav Gorokhov, Anatolij A Ilin filed Critical Vladislav Gorokhov
Priority to SU782585523A priority Critical patent/SU758171A1/en
Application granted granted Critical
Publication of SU758171A1 publication Critical patent/SU758171A1/en

Links

Landscapes

  • Complex Calculations (AREA)

Description

Изобретение относится к вычислительной технике и может быть применено в устройствах отображения графической информации и в устройствах цифровых радиально-круговых разверток 5 для одновременного вычисления функций синуса и косинуса от аргумента, задаваемого в виде унитарного кода.The invention relates to computing and can be applied in devices for displaying graphic information and in devices of digital radial-circular sweeps 5 for the simultaneous calculation of the sine and cosine functions of the argument given in the form of a unitary code.

Известен генератор периодических колебаний, содержащий источник опорного напряжения, интегратор, второй источник опорного напряжения, четыре ключа, функциональный частотный преобразователь, реверсивный счетчик, преобразователь код-напряжение, два 15 триггера, фильтр [ί] . Выходы источников опорного напряжения через первый и второй ключи соединены с входом интегратора. Выход интегратора соединен с входом функционального частот- 20 ного преобразователя, выход которого через третий и четвертый ключи, соединен с вычитающим и суммирующим входами реверсивного счетчика. Один выход счетчика подключен к входу первого 25 триггера, а выход последнего соединен с управляющими входами первого и третьего ключей, второй'выход триггера подключен к управляющим входам второго и четвертого ключей и к входу втс 30The known generator of periodic oscillations, containing a reference voltage source, an integrator, a second reference voltage source, four keys, a functional frequency converter, a reversible counter, a code-voltage converter, two 15 triggers, a filter [ί]. The outputs of the voltage sources through the first and second keys are connected to the input of the integrator. The integrator output is connected to the input of a functional frequency converter, the output of which is through the third and fourth keys, connected to the subtracting and summing inputs of a reversible counter. One output of the counter is connected to the input of the first 25 trigger, and the output of the latter is connected to the control inputs of the first and third keys, the second output of the trigger is connected to the control inputs of the second and fourth keys and to the input vts 30

рого триггера, а его выход соединен с преобразователем код-напряжение. Выход преобразователя код-напряжение подключен к фильтру, а входы соединены с выходами реверсивного счетчика, В таком устройстве сначала формируется синусоидальное напряжение с использованием аналоговых элементов, а затем данное напряжение преобразуется в косинусоидально-изменяющиеся коды.trigger, and its output is connected to the code-voltage converter. The code-voltage converter output is connected to a filter, and the inputs are connected to the outputs of a reversible counter. In such a device, a sinusoidal voltage is first formed using analog elements, and then this voltage is converted into cosine-varying codes.

Однако низкая точность получаемой' функции косинуса вследствие наличия большого количества аналоговых элементов, а также процесса преобразования напряжение-код и невозможность получения других функций, кроме косинуса, снижает эксплуатационные возможности устройства.However, the low accuracy of the obtained cosine function due to the large number of analog elements, as well as the voltage-code conversion process and the impossibility of obtaining other functions besides cosine, reduces the operational capabilities of the device.

Известен синусно-косинусный функциональный преобразователь, содержащий реверсивный счетчик, дешифратор, шифратор кода синуса, шифратор кода косинуса, линию задержки, триггер управления реверсивным счетчиком, четыре группы вентилей, триггер управления коммутацией вентилей, два вентиля, два триггера, триггер знака, вентиль, триггер управления вентилем, переключатель ^2]. Реверсивный счетчик соединен с дешифратором, выходы которого соединены с шифратором кода синуса и шифратором кода косинуса.Known sine-cosine functional converter containing reversible counter, decoder, sine code coder, cosine code coder, delay line, reversible counter control trigger, four valve groups, valve switching control trigger, two valves, two triggers, sign trigger, valve, trigger valve control, switch ^ 2]. A reversible counter is connected to a decoder, the outputs of which are connected to a sine code coder and a cosine code coder.

Вход триггера управления коммутацией вентилей через линию задержки подключен к единичному выходу триггера управления реверсивным счетчиком. Первые входы вентилей группы поразрядно соединены с первыми входами вентилей четвертой группы и с выходами соответствующих разрядов шифратора кода синуса. Первые входы вентилей второй группы поразрядно соединены с первыми входами вентилей третьей группы и с выходами соответствующихразрядов шифратора кода косинуса. Вторые входы вентилей первой и третьей групп подключены к единичному выходу триггера управления коммутацией вентилей. Вторые и четвертые группы вентилей подключены к нулевому выходу триггера управления коммутацией вентилей. Выходы вентилей первой и второй групп поразрядно соединены между собой и соответствующими выходами клеммами кода модуля синуса. Выходы вентилей третьей и четвертой групп поразрядно соединены между собой и соответствующими выходными клеммами кода модуля косинуса. Первый и второй входы реверсивного счетчика соединены с единичным и с нулевым выходами триггера управления реверсивным счетчиком, входы которого подключены к выходам дешифратора через линию задержки и связаны с входной клеммой устройства. Счетный вход триггера знака подключен к нулевому выходу триггера управления реверсивным счетчиком, а выходы через триггеры соединены с первыми входами вентилей. Вторые клеммы вентилей через линию задержки соединены с выходной клеммой, а выходы вентилей связаны с выходными клеммами знака синуса и знака косинуса.The trigger input of the switch switching control through the delay line is connected to a single output of the reversible counter control trigger. The first inputs of the gates of the group are digitally connected with the first inputs of the gates of the fourth group and with the outputs of the corresponding bits of the sine code encoder. The first inputs of the valves of the second group are digitally connected with the first inputs of the valves of the third group and with the outputs of the corresponding bits of the cosine code encoder. The second inputs of the valves of the first and third groups are connected to a single output of the switch switching control trigger. The second and fourth valve groups are connected to the zero output of the valve switching control trigger. The outputs of the gates of the first and second groups are bitwise connected to each other and the corresponding outputs of the terminals of the sine module code. The outputs of the valves of the third and fourth groups are digitally connected to each other and the corresponding output terminals of the code of the cosine module. The first and second inputs of the reversible counter are connected to the single and zero outputs of the trigger control of the reversible counter, the inputs of which are connected to the outputs of the decoder via a delay line and connected to the input terminal of the device. The counting input of the sign trigger is connected to the zero output of the control trigger of the reversible counter, and the outputs are connected via the triggers to the first inputs of the gates. The second valve terminals are connected via a delay line to the output terminal, and the valve outputs are connected to the output terminals of the sine and cosine signs.

В таком устройстве формирование функций синуса и косинуса производится одновременно, причем цифровые коды данных функций постоянно хранятся в шифраторах, откуда выбираются в зависимости от изменения аргумента функции или от состояния реверсивного счетчика.In such a device, the sine and cosine functions are formed simultaneously, and the digital codes of these functions are permanently stored in encoders, where they are selected depending on the change in the function argument or on the state of the reversible counter.

Однако сложность и большой объем оборудования ввиду наличия больших аппаратных затрат, приходящихся на дешифратор и шифраторы синуса и косинуса, снижают надежность устройства. Кроме того с помощью данного устрой• ства невозможно изменять в больших пределах амплитуду цифровых синусоидальных значений, что снижает его функциональные возможности.However, the complexity and large amount of equipment due to the high hardware costs attributable to the decoder and the sine and cosine coders, reduce the reliability of the device. In addition, using this device it is impossible to change the amplitude of digital sinusoidal values over large limits, which reduces its functionality.

Наиболее близким к изобретению является цифровой вычислитель функций синуса и косинуса, содержащий четыре блока управления, генератор тактовых импульсов, счетчик аргумента, четыре группы схем И, регистрClosest to the invention is a digital calculator of sine and cosine functions, containing four control units, a clock generator, an argument counter, four groups of AND circuits, a register

71 471 4

косинуса, регистр синуса, два триггера, группу схем ИЛИ, сумматор приращений синуса, сумматор приращений косинуса, счетчик коррекции [з].cosine, sine register, two triggers, OR circuit group, sine increment adder, cosine increment adder, correction counter [3].

Один из входов первого блока управления подключен к выходу генератора тактовых импульсов. Второй вход первого блока управления связан'с входом вычислителя и входом счетчика аргумента. Выходы первого блока управ ления связаны с первыми входами четырех групп схем И и с входами второго и третьего блоков управления, выходы которых соединены соответственно с входами регистра косинуса и регистра синуса. Остальные входы регистра косинуса и регистра синуса подключены к выходам четвертого блока управления Входы четвертого блока управления через два последовательно соединенных триггера подключены к выходу счетчика аргумента. Вторые входы первой и третьей групп схем И подключены к выходу регистра косинуса, а их выходы соединены с входами первой группы схем ИЛИ. Вторые входы второй и четвертой групп схем И подключены к выходам регистра синуса, а их выходы соединены с входами второй группы схем ИЛИ. Вход счетчика коррекции соединен с входом вычислителя. Выход счетчика коррекции подключен к третьему входу первого блока управления. Входы сумматора приращений синуса присоединены к выходам схем ИЛИ первой группы и выходу первой схемы И первой группы. Выход сумматора приращений синуса подключен к второму входу третьего блока управления. Входы сумматора приращений косинуса присоединены к выходам схем ИЛИ второй группы и· выходу первой схемы И второй группы.' Выход сумматора приращений косинуса подключен к второму входу второго блока управления.One of the inputs of the first control unit is connected to the output of the clock generator. The second input of the first control unit is connected to the input of the calculator and the input of the argument counter. The outputs of the first control unit are connected to the first inputs of the four groups of circuits I and to the inputs of the second and third control units, the outputs of which are connected respectively to the inputs of the cosine register and the sine register. The remaining inputs of the cosine register and the sine register are connected to the outputs of the fourth control unit. The inputs of the fourth control unit are connected via two successively connected flip-flops to the output of the argument counter. The second inputs of the first and third groups of circuits AND are connected to the output of the cosine register, and their outputs are connected to the inputs of the first group of OR circuits. The second inputs of the second and fourth groups of AND circuits are connected to the outputs of the sine register, and their outputs are connected to the inputs of the second group of OR circuits. The input of the correction counter is connected to the input of the calculator. The output of the correction counter is connected to the third input of the first control unit. The inputs of the adder of the sine increments are connected to the outputs of the OR circuit of the first group and the output of the first AND circuit of the first group. The output of the adder of the sine increments is connected to the second input of the third control unit. The inputs of the cosine increment adder are connected to the outputs of the OR circuit of the second group and · the output of the first AND circuit of the second group. ' The output of the adder of the cosine increments is connected to the second input of the second control unit.

Это устройство не позволяет изменять амплитуду цифровых значений синуса и косинуса, т.е. вычислять функцию А · 5ΐ η X, А соз X, где А — амплитуда цифровых значений синуса и косинуса, что ограничивает его функциональные возможности.This device does not allow changing the amplitude of the digital values of sine and cosine, i.e. calculate the function A · 5ΐ η X, A cos X, where A is the amplitude of the digital values of sine and cosine, which limits its functionality.

Целью изобретения является расширение функциональных возможностей устройства путем вычисления функций А · 5ΐη X, А - Соз X, что позволяет широко изменять амплитуду вычисляемых функций.The aim of the invention is to expand the functionality of the device by calculating the functions A · 5ΐη X, A - Ces X, which allows you to widely change the amplitude of the calculated functions.

Достигается это тем, что цифровой вычислитель функций синуса и косинуса, содержащий счетчик аргумента, пер вый и второй сумматоры, коммутатор, счетчик синуса, счетчик косинуса и блок управления, выходы которого подключены к управляющим входам счетчика синуса и счетчика косинуса, выходы которых являются выходами вычислителя выход коммутатора подключен к входу второго сумматора, содержащий дешиф5This is achieved by the fact that the digital calculator of sine and cosine functions contains the argument counter, the first and second adders, the switch, the sine counter, the cosine counter and the control unit whose outputs are connected to the control inputs of the sine counter and cosine counter whose outputs are the outputs of the calculator the switch output is connected to the input of the second adder, containing decryption5

758171758171

66

ратор нуля и переключатель, причем вход унитарного кода аргумента вычислителя подключен к входу счетчика аргумента и входу переключателя, управляющие входы которого соединены со знаковыми выходами первого и второго сумматоров, а выходы — с входами счетчика синуса и счетчика косинуса, входы коммутатора подключены к выходам первого сумматора и счетчика аргумента, вход первого сумматора подключен к знаковому выходу второго сумматора, который соединен также с управляющим входом коммутатора, вход значения амплитуды вычислителя подключен к входам начальной установки первого и второго сумматоров и счет- 15 чика косинуса, выход счетчика аргумента подключен к входу дешифратора нуля, выход которого подключен к входу блока управления и входам разрешения записи начальной установки 20 счетчика аргумента и второго сумматора, управляющий вход счетчика аргумента соединен со знаковым выходом -первого сумматора.Routing zero and a switch, the input of the unitary argument code of the calculator connected to the input of the argument counter and the input of the switch, the control inputs of which are connected to the sign outputs of the first and second adders, and the outputs to the inputs of the sine counter and cosine counter, the inputs of the switch are connected to the outputs of the first adder and the argument counter, the input of the first adder is connected to the sign output of the second adder, which is also connected to the control input of the switch, the input value of the amplitude of the calculator is connected to the inputs of the initial installation of the first and second adders and the cosine counter 15, the output of the argument counter is connected to the input of the zero decoder, the output of which is connected to the input of the control unit and the enable inputs of the recording of the initial installation 20 of the argument counter and the second adder a sign output - the first adder.

На чертеже изображен цифровой вы- 25 числитель функций синуса и косинуса.The drawing shows the digital calculator of the sine and cosine functions.

Он содержит счетчик аргумента 1, первый сумматор 2, коммутатор 3, второй сумматор 4, блок управления 5, счетчик синуса 6, счетчик косинуса 39 7. Выходы блока управления 5 подключены соответственно к входам счетчика синуса 6 и счетчика косинуса 7. Выходы счетчика синуса 6 и счетчика косинуса 7 подсоединены к 35 выходным шинам кодов синуса и косинуса соответственно. Выход коммутатора 3 связан с входом второго сумматора 4 .It contains the argument counter 1, the first adder 2, the switch 3, the second adder 4, the control unit 5, the sine counter 6, the cosine counter 39 7. The outputs of the control unit 5 are connected respectively to the inputs of the sine counter 6 and the cosine counter 7. The outputs of the sine counter 6 and the cosine counter 7 is connected to 35 output buses of the sine and cosine codes, respectively. The output of the switch 3 is connected to the input of the second adder 4.

Предлагаемое устройство содержит 40 также блок 8 выделения нуля и переключатель 9. Входная шина амплитуды подключена к первому входу первого сумматора 2 и к вторым входам второго сумматора 4 и счетчика косинуса 7. 45The proposed device also contains 40 block 8 allocation zero and switch 9. The input amplitude bus is connected to the first input of the first adder 2 and to the second inputs of the second adder 4 and the cosine counter 7. 45

Один из выходов первого сумматора 2 связан с первым входом коммутатора 3. Второй выход первого сумматора 2 подключен к первому входу счетчика аргумента 1 и к одному из входов пе- ддOne of the outputs of the first adder 2 is connected to the first input of the switch 3. The second output of the first adder 2 is connected to the first input of the argument counter 1 and to one of the pedals

10ten

реключателя 9. Выход счетчика аргумента 1 связан с вторым входом коммутатора 3 и с входом блока 8 выделения нуля. Первый выход блока 8 выделения нуля подключен к второму входу счетчика аргумента 1 и к одному из входов второго сумматора 4. Второй выход блока 8 выделения нуля связан с входом блока управления 5. Выход второго сумматора 4 связан с вторым входом первого сумматора 2, с вторым входом переключателя 9 и с третьим входом коммутатора 3. Входная шина унитарного кода подключена к третьим входам счетчика аргумента 1 и переключателя 9. Выходы переключателя 9 65switch 9. The output of the argument counter 1 is connected to the second input of the switch 3 and to the input of the block 8 for the selection of zero. The first output of the zero allocation block 8 is connected to the second input of the argument counter 1 and to one of the inputs of the second adder 4. The second output of the zero allocation block 8 is connected to the input of the control unit 5. The output of the second adder 4 is connected to the second input of the first adder 2, to the second input switch 9 and with the third input of the switch 3. The input bus of the unitary code is connected to the third inputs of the counter of argument 1 and switch 9. The outputs of the switch 9 65

подсоединены к второму входу счетчика синуса 6 и к третьему входу счетчика косинуса 7.connected to the second input of the sine counter 6 and to the third input of the cosine counter 7.

Счетчик аргумента 1 преобразует последовательно поступающие по шине унитарного кода импульсы в соответственно возрастающие или убывающие числовые значения. Режимы сложения или вычитания импульсов задаются первым сумматором 2.The counter of argument 1 converts the impulses successively coming along the bus of the unitary code into respectively increasing or decreasing numerical values. Modes of addition or subtraction of pulses are set by the first adder 2.

Первый сумматор 2 представляет собой накапливающий сумматор или реверсивный счетчик и производит операцию вычитания по каждому импульсу унитарного кода иэ содержимого сумматора 2 цифры "1" или "2" в зависимости от знака результата, полученного на втором сумматоре 4.The first adder 2 is a accumulating adder or reversible counter and performs a subtraction operation for each pulse of the unitary code and the contents of the adder 2 digits "1" or "2" depending on the sign of the result obtained on the second adder 4.

Коммутатор 3 выполняет логическую функцию И-ИЛИ и умножения на два, и в зависимости от знака результата, полученного на втором сумматоре 4, производит подключение к входу второго сумматора входа счетчика аргумента 1 или выхода первого сумматора 2.Switch 3 performs the logical function of AND-OR and multiplying by two, and depending on the sign of the result obtained on the second adder 4, connects to the input of the second adder the input of the argument counter 1 or the output of the first adder 2.

Второй сумматор 4 представляет собой накапли в акаций сумматор и выполняет алгебраическую операцию суммирования хранящегося в нем числа с числом, имеющимся на выходе коммутатора 3 .The second adder 4 is an accumulator in the acacia adder and performs an algebraic operation of summing the number stored in it with the number present at the output of the switch 3.

Блок управления 5 по сигналам, поступающим с блока выделения нуля, задает режима сложения или вычитания импульсов счетчику синуса 6 и счетчику косинуса 7. The control unit 5 on the signals coming from the block allocation zero, sets the mode of addition or subtraction of pulses to the sine counter 6 and the cosine counter 7.

Счетчик синуса 6 и счетчик косинуса' 7 представляют собой реверсивные счетчики и по сигналам, поступающим с переключателя 9, формируют на своих выходах числовые значения функций синуса и косинуса соответственно.The sine counter 6 and the cosine counter '7 are reversible counters and the signals from the switch 9, form at their outputs the numerical values of the functions of the sine and cosine, respectively.

Блок 8 выделения нуля фиксирует нулевое значение счетчика аргумента 1, после чего возвращает в исходное состояние счетчик аргумента 1 и второй сумматор 4, а также вырабатывает сигнал, по которому изменяет режим работы счетчиков 6 и 7.Block 8 selection of zero captures the zero value of the counter of argument 1, then returns to its original state the counter of argument 1 and the second adder 4, and also generates a signal, which changes the mode of operation of counters 6 and 7.

Переключатель 9 в зависимости от знака результатов, полученных на сумматорах 2 и 4, подключает импульсы унитарного кода к счетным входам счетчиков 6 и 7.Switch 9, depending on the sign of the results obtained on adders 2 and 4, connects the pulses of the unitary code to the counting inputs of counters 6 and 7.

В исходном состоянии в первом сумматоре 2, во втором сумматоре 4 и в счетчике косинуса 7 записан код амплитуды функции. В счетчике аргумента 1 записана цифра "1". Блок управления 1 задает режимы сложения импульсов для счетчика синуса 6 и вычитания — для счетчика косинуса 7. Коммутатор 3 подключает к входу второго сумматора 4 выход счетчика аргумента.In the initial state, in the first adder 2, in the second adder 4 and in the cosine counter 7, the code of the amplitude of the function is written. In the counter of argument 1 the number "1" is written. The control unit 1 sets the pulse addition modes for the sine counter 6 and subtraction for the cosine counter 7. Switch 3 connects the output of the argument counter to the input of the second adder 4.

Данное исходное состояние соответствует начальным условиям функцийThis initial state corresponds to the initial conditions of the functions.

А · 5ϊ π X = 0 ; А - соз У - АA · 5ϊ π X = 0; A - cos U - A

77

758171758171

8eight

Процесс формирования числовых значений функций синуса и косинуса производится по поступающим на вход вычислителя сигналам унитарнфго кода. Так как второй сумматор 4 представляет собой сумматор накапливающего типа и к его входу подключен выход счетчика аргумента 1, то по каждому импульсу унитарного крда на втором сумматоре 4 выполняются следующие действия, причем состояние счетчика аргумента 'по каждому импульсу унитарного кода увеличивается на единицуThe process of forming the numerical values of the sine and cosine functions is performed on the unitary code signals that come to the input of the calculator. Since the second adder 4 is an accumulator of the accumulating type and the output of the counter of argument 1 is connected to its input, the following actions are performed for each pulse of the unitary bank on the second adder 4, and the state of the argument counter for each pulse of the unitary code is increased by one

А - 2 · 1 ·,A - 2 · 1 ·,

А — 2· (1 + 2) ;A - 2 · (1 + 2);

А — 2 · (1 + 2 +3);A - 2 · (1 + 2 +3);

.· · ............... П(.· · ............... P(

А - 2(1 + 2+3+...П. )»А - 2-.Σ».A - 2 (1 + 2 + 3 + ... P.) "A - 2-.Σ".

* 1-4* 1-4

Если результат, помеченный после выполнения каждого из этих действий, положительный, то после выполнения каждого действия на первом сумматоре выполняются следующие операцииIf the result, marked after performing each of these actions, is positive, then after the execution of each action, the following operations are performed on the first adder

А - 1;A - 1;

(А — 1) —. Ί = А — 2;(A - 1) -. Ί = A - 2;

(А—2)—1= А—Зит.д.(A — 2) —1 = A — Sit.d.

Есл{1, например, после действия А — 2·Σι на втором сумматоре 4 получен отрицательный результат, то на первом сумматоре вместо операции А — (Пд — 1) — 1 = А — п. выполняется операцияIf {1, for example, after the action A - 2 · Σι on the second adder 4, a negative result is obtained, then on the first adder instead of the operation A - (AP - 1) - 1 = A - p.

А - (п4 - 1) - 2 - А - (п+ + 1)A - (n 4 - 1) - 2 - A - (n + + 1)

Одновременно коммутация 3 подключает к входу второго сумматора 4 выход первого сумматора 2, в результате 35 чего по следующему импульсу унитарного кода (η4 + 1) на втором сумматоре 4 выполняется действиеSimultaneously, the switching 3 connects to the input of the second adder 4 the output of the first adder 2, as a result of which 35 the next impulse code (η 4 + 1) pulse is performed on the second adder 4

если В4 < 0. Причем,счетчик синуса 6if B4 <0. Moreover, the sine counter is 6

работает в режиме сложения импульсов,works in the mode of addition of impulses,

а счетчик косинусов 7 - в режиме вычитания, что задается блоком управления 5.and the cosine counter 7 is in the subtraction mode, which is set by the control unit 5.

Вышеприведенный алгоритм работы вычислителя имеет место до тех пор, пока на первом сумматоре 2 не получится отрицательный результат, что будет означать переход через фазу ϊ . В этом случае счетчик аргумента 1 переводится в режим вычитания импульсов, а переключатель 9 подключает каждый импульс унитарного кода к входу счетчика косинуса 7, а на вход счетчика синуса 6 с выхода переключателя 9 импульсы унитарного кода выдаются толь'ко в случае отрицательного результата, полученного на втором сумматоре.The above algorithm for the operation of the calculator takes place until the first adder 2 has a negative result, which means going through phase ϊ. In this case, the argument counter 1 is switched to the pulse subtraction mode, and the switch 9 connects each pulse of the unitary code to the input of the cosine counter 7, and to the input of the sine counter 6 from the output of switch 9, the unitary code pulses are issued only in the case of a negative result second adder.

Если по очередному импульсу унитарного кода счетчик аргумента 1 примет нулевое состояние, что будет означать переход через фазу ($ + ^ ), где (К = 0, 1, 2...), срабатывает блок 8 выделения нуля, по сигналам которого счетчик аргумента 1 и второй 25 сумматор 4 принимают исходное состояние , а блок управления 5 изменяет режим работы счетчиков 6 или 7. Например, при переходе через фазу счетчик синуса 6 переключается в режим вычитания импульсов.If according to the next impulse of the unitary code, the counter of argument 1 assumes the zero state, which means going through the phase ($ + ^), where (K = 0, 1, 2 ...), the block 8 of the zero selection is triggered, according to the signals of which the argument counter 1 and 25 second adder 4 take the initial state, and the control unit 5 changes the operation mode of the counters 6 or 7. For example, when going through the phase, the sine counter 6 switches to the pulse subtraction mode.

Таким образом, при поступлении на вход вычислителя импульсов унитарного кода, что будет Соответствовать изменению во времени аргумента функции Χ(ι) на счетчике синуса 6 и на счетчике косинуса 7, будем иметь периодические функцииThus, when a pulse of a unitary code arrives at the input of the calculator, which will correspond to the time variation of the function argument Χ (ι) on the sine counter 6 and on the cosine counter 7, we will have periodic functions

Υ(ΐ) = А · з!п X (ί) и Υ(I) = А-соз Χ(ΐ£Υ (ΐ) = A · s! N X (ί) and Υ (I) = A-cos Χ (ΐ £

Ошибка, возникающая при вычислении данных функций, не будет превышать единицы младшего разряда числа Υ(ι). Однако оно создает технический эффект, заключающийся в расширении функциональных возможностей устройства.The error arising from the calculation of these functions will not exceed the low order unit of the number Υ (ι). However, it creates a technical effect, which consists in expanding the functionality of the device.

По сравнению с устройством-прототипом предложенный вычислитель позволяет при постоянном значении аргумента X вычислять функции А · з!п X,Compared with the device-prototype, the proposed calculator allows, at a constant value of the argument X, to calculate the functions А · з! X,

А· со5 X. В этом случае число импульсов унитарного кода должно быть равно либо пропорционально коду числа X. При переменном аргументе функции Χ(ί), т.е. при формировании кодов, изменяющихся во времени по синусоидальному закону А · 5Ϊη X (ϊ) и А· соз X(ί),A · co5 X. In this case, the number of pulses of a unitary code must be equal to or proportional to the code of X. With a variable argument of the function (), i.e. when forming codes that vary in time according to the sinusoidal law A · 5Ϊη X (ϊ) and A · cos X (ί),

55 данное устройство позволяет в широких пределах изменять амплитуду цифровых синусов и косинусоидальных значений функции. Это обстоятельство важно прй использовании данного вычислите60 ля в составе устройств отображения графической информации и в устройствах радиальной развертки для изображения окружностей с различным радиусом, так как в противном случае для 65 выполнения операции умножения А х55 This device allows to change the amplitude of digital sine and cosine function values over a wide range. This circumstance is important when using this calculator for graphic information display devices and radial sweep devices for the image of circles with different radii, since otherwise for 65 performing the multiplication operation A x

(А 2-,,2 -. ) + 2-| А — (п4+ 1)| = В4 40 (A 2 - ,, 2 -.) + 2- | A - (n 4 + 1) | = 4 40

Если полученный таким образом результат В4 положительный, то на первом сумматоре 2 выполняется действие'If the result B 4 thus obtained is positive, then on the first adder 2 the action '

А — (η4 + 1) -1 и по импульсу (п4 + 2) ..A - (η 4 + 1) -1 and by impulse (n 4 + 2) ..

на первом сумматоре 4 выполняется следующая операция:the first adder 4 performs the following operation:

В4 - 2 (п< + 2).In 4 - 2 ( n < + 2).

Если же полученный В4 отрицательный , то выполняются следующие действия :If the resulting B 4 is negative, then the following actions are performed:

первый сумматор 2 - Г А - (п, +the first adder 2 - G And - (p, +

+ 1)3-2 " второй сумматор 4— В4 — 2·)А —+ 1) 3-2 "second adder 4— B 4 - 2 ·) A -

~(η4 + 1) | — 2 « и т.д.~ (η 4 + 1) | - 2 "etc.

Так Как шина унитарного кода подключена к входу переключателя 9, то данные импульсы поступают на счетчики 6 и 7. в следующем порядке: на счетчик синуса 6 поступает каждый импульс унитарного кода, на счетчик косинуса 7 выдается тот импульс унитарного кода, при котором на втором сумматоре 4 получен отрицательный результат, т.е. импульс п4 и (η4 + 1),Since the bus of the unitary code is connected to the input of the switch 9, these pulses go to counters 6 and 7. In the following order: each impulse of the unitary code arrives at the sine counter 6, the impulse of the unitary code is output to the cosine counter 7 at which the second adder 4 received a negative result, i.e. pulse n 4 and (η 4 + 1),

99

758171758171

10ten

*5ίη Χ(ΐ), А · соз Χ(ΐ) потребуются дополнительные аппаратурные затраты, что увеличит объем устройства отображения графической информации, а также увеличит время выполнения операции А · 5 ϊ η X(г) , А - соз X (г) за счет выполнения операции умножения.* 5ίη Χ (ΐ), A · cos Χ (ΐ) will require additional hardware costs, which will increase the amount of graphic information display devices, as well as increase the execution time of the operation A · 5 ϊ η X (g), A - cos X (g) by performing a multiplication operation.

Claims (1)

Формула изобретения .Claim . Цифровой вычислитель функций синуса и косинуса, содержащий счетчик аргумента, первый и «второй сумматоры, коммутатор, счетчик синуса, счетчик косинуса и блок управления, выходы которого подключены к управляющим входам счетчика синуса и счетчика косинуса, выходы которых являются выходами вычислителя, выход коммутатора подключен к входу второго сумматора, отличающийся тем, что, с целью расширения функциональных возможностей, заключающихся в возможности широкого изменения амплитуды вычисляемых функций, вычислитель содержит дешифратор нуля и переключатель, причем вход унитарного кода аргумента вычислителя подключен к входу счетчика аргумента и входу переключателя, управляющие входы которого соединеныThe digital calculator of sine and cosine functions containing the argument counter, the first and second adders, the switch, the sine counter, the cosine counter and the control unit whose outputs are connected to the control inputs of the sine and cosine counter whose outputs are the outputs of the calculator, the output of the switch is connected to the input of the second adder, characterized in that, in order to extend the functionality consisting in the possibility of a wide change in the amplitude of the calculated functions, the calculator contains a decoder n the hub and the switch, and the input of the unitary argument code of the calculator is connected to the input of the argument counter and the input of the switch, the control inputs of which are connected с знаковыми выходами первого и второго сумматоров, а выходы — с входами счетчика синуса и счетчика косинуса, входы коммутатора подключены к выходам первого сумматора и счетчика ар$ гумента, вход первого сумматора подключен к знаковому выходу второго сумматора, который соединен также с управляющим входом коммутатора, вход значения амплитуды вычислителя подΙθ ключей к входам начальной установки первого и второго сумматоров и счетчика косинуса, выход счетчика аргумента подключен к входу дешифратора нуля, выход которого подключен к входу блока управления и входам разреше•5 ния записи начальной установки счетчика аргумента и второго сумматора, управляющий вход счетчика аргумента соединен со знаковым выходом первого сумматора.with the sign outputs of the first and second adders, and the outputs with the inputs of the sine and cosine counters, the switch inputs are connected to the outputs of the first adder and the instrument counter, the input of the first adder is connected to the sign output of the second adder, which is also connected to the control input of the switch, input of the amplitude value of the calculator for keys к to the inputs of the initial installation of the first and second adders and the cosine counter, the output of the argument counter is connected to the input of the zero decoder, the output of which is connected to the input Lok management and access permitted • 5 Nia recording initial setup argument counter and a second adder, a control input of the counter argument is connected to the output of the first adder landmark. 20 20
SU782585523A 1978-03-02 1978-03-02 Digital computer of sine and cosine functions SU758171A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU782585523A SU758171A1 (en) 1978-03-02 1978-03-02 Digital computer of sine and cosine functions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU782585523A SU758171A1 (en) 1978-03-02 1978-03-02 Digital computer of sine and cosine functions

Publications (1)

Publication Number Publication Date
SU758171A1 true SU758171A1 (en) 1980-08-23

Family

ID=20751458

Family Applications (1)

Application Number Title Priority Date Filing Date
SU782585523A SU758171A1 (en) 1978-03-02 1978-03-02 Digital computer of sine and cosine functions

Country Status (1)

Country Link
SU (1) SU758171A1 (en)

Similar Documents

Publication Publication Date Title
SU758171A1 (en) Digital computer of sine and cosine functions
RU176659U1 (en) ANALOG-DIGITAL CONVERTER
SU898609A1 (en) Voltage-to-code converter with dynamic error correction
SU892703A1 (en) Analogue-digital converter
SU1270776A1 (en) Analog-digital function generator
SU888111A1 (en) Sine-cosine function generator
SU616633A1 (en) Arrangement for computing sine and cosine trigonometric functions
RU2205500C1 (en) Analog-to-digital converter
SU732867A1 (en) Multiplier
SU1013953A1 (en) Exponential function computing device
SU1043615A1 (en) Sine function digital generator
SU723608A1 (en) Random process generator
SU771672A1 (en) Device for computing logarithmic functions
RU2240651C1 (en) Shaft angle-of-turn to code converter
SU970354A1 (en) Converter of binarycode to angular valve binary coded decimals
SU448461A1 (en) Device for dividing numbers
SU1273922A1 (en) Device for extracting root
SU842810A1 (en) Binary frequency divider
SU1423730A2 (en) Apparatus for measuring depth parameters of oil well
SU974371A1 (en) Device for computing sin x andcos x functions
SU903893A1 (en) Digital correlometer
SU593211A1 (en) Digital computer
SU961118A2 (en) Digital double-phase shaper of sine signals
SU1652933A1 (en) Digital voltmeter for measuring ac effective values
SU983578A1 (en) Digital phase meter