SU1386986A1 - Data input device - Google Patents
Data input device Download PDFInfo
- Publication number
- SU1386986A1 SU1386986A1 SU864146096A SU4146096A SU1386986A1 SU 1386986 A1 SU1386986 A1 SU 1386986A1 SU 864146096 A SU864146096 A SU 864146096A SU 4146096 A SU4146096 A SU 4146096A SU 1386986 A1 SU1386986 A1 SU 1386986A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- counter
- output
- inputs
- outputs
- Prior art date
Links
Landscapes
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
Изобретение относитс к автоматике и вычислительной технике и может быть использовано дл ввода в ЭВМ информации от аналоговых датчиков. Цель изобретени - расширение области применени устройства за счет организации режима многократного циклического опроса и обеспечени пр мого доступа к пам ти ЭВМ. Устройство содержит коммутатор 2, аналого-цифровой преобразователь 3, первый счетчик 4, первый регистр 5, второй регистр 6, блок 7 сравнени , второй счетчик 9, третий счетчик 10, блок 12 управлени . Перед началом измерений в регистры 5 и 6 занос тс граничные номера каналов, в счетчик 9 загружаетс общее число измерений, а в счетчик 10 - начальный адрес пр мого доступа к пам ти. По сигналу пуска счетчика 10 начинаетс работа аналого-цифрового преобразовател 3. В момент окончани измерени по одному каналу в ЭВМ посылаетс запрос обмена. По окончании записи информации в пам ть ЭВМ выдает сигнал конца записи. При переполнении счетчика 9 формируетс сигнал конца обмена. Комбиниру числа, загружаемые в регистры 5, 6 и в счетчик 9, можно опрашивать либо все каналы, либо выбранную группу каналов , либо только один канал с максимальной частотой. 1 з.п. ф-лы, 2 ил. Q 9 (/ СThe invention relates to automation and computing and can be used to enter information from analog sensors into a computer. The purpose of the invention is to expand the field of application of the device by organizing a multiple cyclic polling mode and providing direct access to computer memory. The device comprises a switch 2, an analog-digital converter 3, a first counter 4, a first register 5, a second register 6, a comparison block 7, a second counter 9, a third counter 10, a control block 12. Before the start of measurements, the boundary numbers of channels are recorded in registers 5 and 6, the total number of measurements is loaded into counter 9, and the starting address of direct memory access is loaded into counter 10. At the start signal of the counter 10, the operation of the analog-to-digital converter 3 begins. At the time of the end of the measurement, an exchange request is sent to the computer via one channel. At the end of the recording of information in the computer memory, it generates a signal for the end of the recording. When counter 9 overflows, the end of exchange signal is generated. The combination of the numbers loaded into registers 5, 6 and into counter 9 can interrogate either all channels, or a selected group of channels, or only one channel with the maximum frequency. 1 hp f-ly, 2 ill. Q 9 (/ С
Description
02 00 Oi02 00 Oi
соwith
00 О500 O5
Изобретение относитс к автоматике и вычислительной технике и может быть использовано дл ввода в ЭВМ информации от аналоговых датчиков.The invention relates to automation and computing and can be used to enter information from analog sensors into a computer.
Цель изобретени - расширение об- ,ласти применени устройства за счет организации режима многократного циклического опроса и обеспечени пр мого доступа к пам ти ЭВМ.The purpose of the invention is to expand the scope of application of the device by organizing a multiple cyclic polling mode and providing direct access to computer memory.
На фиг. 1 представлена структурна схе- ;ма устройства; на фиг. 2 - структурна ;схема блока управлени устройства. i Устройство дл ввода информации со- |держит аналоговые каналы 1, коммутатор 2, аналого-цифровой преобразователь (АЦП)FIG. 1 shows the structural scheme of the device; in fig. 2 is a structural diagram of the control unit of the device. i Device for inputting information contains | analog channels 1, switch 2, analog-to-digital converter (ADC)
образовани поступает также на вход 19 блока 12 управлени , где устанавливает триггер 25. В результате этого на выходе 15 устройства выставл етс запрос к ЭВМ на г непосредственный доступ к пам ти. Одновременно сигнал конца преобразовани при помощи элементов 27 и 30 запускает аналого-цифровое преобразование по следующему входу.The formation also arrives at the input 19 of the control unit 12, where it sets the trigger 25. As a result of this, at the output 15 of the device, a request is sent to the computer for direct memory access. At the same time, the end of conversion signal, using elements 27 and 30, triggers the analog-to-digital conversion on the next input.
ЭВМ, получив запрос на ввод данных в режиме непосредственного доступа, считывает из устройства по выходам 11 из счетчика 10 адрес чейки пам ти и записывает в нее результат аналого-цифрового преобразовани , который из АЦП 3 выдаетс наThe computer, upon receiving a request for data input in the direct access mode, reads from the device at outputs 11 from counter 10 the address of the memory cell and writes into it the result of analog-to-digital conversion, which from ADC 3 is output to
10ten
3, первый счетчик 4, первый регистр 5, вто- выходы 13. После записи результата в регистр 6, блок 7 сравнени , инфор- :мационные входы 8 устройства, второй 9 и третий 10 счетчики, адресные выходы 11 :устройства, блок 12 управлени , информа- :ционные выходы 13 устройства, вход 14 ;пуска устройства, выход 15 запроса устрой- IcTBa, выход 16 конца обмена устройства, |вход 17 конца записи устройства, третий 18, второй 19 и первый 20 входы блока управлени , первый 21, четвертый 22 и п тый 23 |выходы блока управлени . Блок 12 управлени содержит первый ;24 и второй 25 триггеры, элемент И 26, первый 27 и второй 28 элементы ИЛИ, одно- вибратор 29 и элемент 30 задержки.3, first counter 4, first register 5, second outputs 13. After writing the result to register 6, comparison block 7, information inputs 8 of the device, second 9 and third 10 counters, address outputs 11: devices, control block 12 , information-: device outputs 13, input 14; device start-up, device 15 request for device IcTBa output, device exchange end output 16, device write end input 17, third 18, second 19 and first 20 inputs of the control unit, first 21, the fourth 22 and fifth 23 | outputs of the control unit. The control unit 12 contains the first; 24 and second 25 triggers, the AND element 26, the first 27 and second 28 OR elements, the single vibrator 29 and the delay element 30.
Устройство работает следующим образо.м.The device works as follows.
м ть из ЭВМ поступает сигнал конца записи на вход 17 устройства, который в блоке 12 сбрасывает триггер 25 и тем самым снимает запрос на непосредственный доступ, а также при помощи одновибратора 29 фор20 мирует импульс инкрементации второго 9 иFrom the computer, the signal of the end of the recording is sent to the device input 17, which in block 12 resets the trigger 25 and thereby removes the request for direct access, and also with the help of the single-oscillator 29 generates the increment pulse of the second 9 and
третьего 10 счетчиков, подготавлива адресthird 10 counters, preparing the address
следующей чейки в массиве пам ти ЭВМ.next cell in the computer memory array.
Операци повтор етс до переполнени The operation is repeated until overflow.
счетчика 9, сигна.т которого поступает наcounter 9, the signal of which is fed to
.J,.. вход 18 блока 12 и сбрасывает триггер 24. В результате сброса триггера 24 на выходе 16 устройства по вл етс сигнал конца обмена ..J, .. input 18 of block 12 and resets trigger 24. As a result of resetting trigger 24, output of the device appears at the output 16 of the device.
В устройстве возможны три режима: адресный, сканирование в заданных граниВначале загружаетс счетчик 10 по -JQ цах, многократный циклический опрос. Вывходам 8 из ЭВМ начальным адресом массива оперативной пам ти, куда в режиме непосредственного доступа передаютс ре- зультаты измерений. Затем ЭВМ загружает ; счетчик 9 по входам 8 числом в дополнибор режима определ етс соотношением между кодами, загружаемыми в регистры 5 и 6 и во второй счетчик 9.Three modes are possible in the device: address, scanning at given edges. At the beginning, the counter is loaded 10 by-JQ, and multiple cyclic polling. The outputs 8 from the computer are the starting address of the memory array, where the measurement results are transmitted in the direct access mode. Then the computer loads; the counter 9 by the inputs 8 by the number in the mode complement is determined by the ratio between the codes loaded into registers 5 and 6 and into the second counter 9.
В адресном режиме производитс одно аналого-цифровое преобразование по входу.In the address mode, one analog-to-digital conversion is performed on the input.
тельном коде, которое определ ет общее ко- ,- адресуемому регистром 5, содержимое кото:личество измерений. Далее ЭВМ выдает на ;входы 8 устройства код начального анало- i гового входа, который записываетс в регистр 5, и код конечного аналогового входа , который записываетс в регистр 6, при этом устройство оказываетс готовым к работе.There is a special code that determines the total code that is addressed by register 5, the contents of which are the number of measurements. Next, the computer issues to; device 8 inputs the code of the initial analog input, which is written to register 5, and the code of the final analog input, which is written to register 6, while the device is ready for operation.
ЭВМ запускает измерени сигналом пуска, который через вход 14 устройства устанавливает первый триггер 24 блока 12 управле40The computer starts the measurement with a start signal, which, through the device input 14, sets the first trigger 24 of the control unit 12
рого в начале преобразовани переписываетс в счетчик 4. В этом режиме счетчик 9 загружаетс всеми единицами дл задани только одного преобразовани . Загрузка регистра 6 канала в этом режиме не нужна.at the beginning of the conversion, is rewritten into counter 4. In this mode, counter 9 is loaded with all units to specify only one conversion. Loading of channel 6 register is not necessary in this mode.
Во втором режиме (сканирование в заданных границах) число преобразований, загружаемое в счетчик 9, соответствует разнице чисел в регистрах 6 и 5. В этомIn the second mode (scanning within the specified limits) the number of transformations loaded into counter 9 corresponds to the difference of the numbers in registers 6 and 5. In this
ни , через элемент ИЛИ 28 вызывает запись д,- режиме производитс однократное сканиро- вание по выбранной группе аналоговых входов . При достижении счетчиком 4 верхней границы, задаваемой регистром 6, операци завершаетс , так как в этот же момент переполн етс счетчик 9. При загрузке в ре- 50 гистр 5 кода «О, в регистр 6 - адреса последнего аналогового входа, а в счетчик 9 - числа, равного общему количеству входов, сканирование производитс по всем входам. В третьем режиме, цкилическом, по одной команде из ЭВМ выполн етс многократное сканирование в заданных границах адресов. Этот режим в н-ачале операции выполн етс аналогично второму-режиму до опроса входа, соответствующего регистсодержимого регистра 5 в первый счетчик 4. Кроме этого, сигнал пуска с помощью элемента 30 задержки формирует сигнал запуска преобразовани , который поступает на АЦП 3. Величина задержки определ етс временем, необходимым дл коммутации аналогового канала, адрес которого задаетс первым счетчиком 4. Выполн етс а 1алого-цифровое преобразование. По завершению его АЦП 3 формирует сигнал конца преобразовани , поступающий на тактовый вход счетчика 4, увеличивает его со- 55 держимое на единицу, и, таким образом, коммутатор 2 выбирает следующий аналоговый канал 1. Кроме того, сигнал конца преобразовани поступает также на вход 19 блока 12 управлени , где устанавливает триггер 25. В результате этого на выходе 15 устройства выставл етс запрос к ЭВМ на непосредственный доступ к пам ти. Одновременно сигнал конца преобразовани при помощи элементов 27 и 30 запускает аналого-цифровое преобразование по следующему входу.Nor, through the element OR 28, causes recording g, - the mode performs a single scan over the selected group of analog inputs. When counter 4 reaches the upper limit set by register 6, the operation is completed, as at the same time counter 9 overflows. When loading into the register 5 the code "O, into register 6 the addresses of the last analog input and in counter 9 - A number equal to the total number of inputs scanned on all inputs. In the third mode, the local one, a single command from the computer performs multiple scans in the specified address boundaries. This mode at the beginning of the operation is performed similarly to the second mode before polling the input corresponding to the register-containing register 5 to the first counter 4. In addition, the start signal using the delay element 30 generates a conversion start signal, which is fed to the ADC 3. The delay value is determined The time required for switching the analog channel whose address is specified by the first counter 4. A digital-to-digital conversion is performed. Upon completion, its A / D converter 3 generates a conversion end signal arriving at the clock input of counter 4, increases its content by one, and thus switch 2 selects the next analog channel 1. In addition, the conversion end signal also enters input 19 control unit 12, where it sets the trigger 25. As a result of this, at the output 15 of the device, a request is sent to the computer for direct access to the memory. At the same time, the end of conversion signal, using elements 27 and 30, triggers the analog-to-digital conversion on the next input.
ЭВМ, получив запрос на ввод данных в режиме непосредственного доступа, считывает из устройства по выходам 11 из счетчика 10 адрес чейки пам ти и записывает в нее результат аналого-цифрового преобразовани , который из АЦП 3 выдаетс наThe computer, upon receiving a request for data input in the direct access mode, reads from the device at outputs 11 from counter 10 the address of the memory cell and writes into it the result of analog-to-digital conversion, which from ADC 3 is output to
выходы 13. После записи результата в павыходы 13. После записи результата в пам ть из ЭВМ поступает сигнал конца записи на вход 17 устройства, который в блоке 12 сбрасывает триггер 25 и тем самым снимает запрос на непосредственный доступ, а также при помощи одновибратора 29 формирует импульс инкрементации второго 9 иoutputs 13. After writing the result to the outputs 13. After writing the result to the memory from the computer, a signal is received at the end of the recording to the input 17 of the device, which in block 12 resets the trigger 25 and thereby removes the request for direct access, and also with the help of the one-shot 29 increment impulse second 9 and
третьего 10 счетчиков, подготавлива адресthird 10 counters, preparing the address
следующей чейки в массиве пам ти ЭВМ.next cell in the computer memory array.
Операци повтор етс до переполнени The operation is repeated until overflow.
счетчика 9, сигна.т которого поступает наcounter 9, the signal of which is fed to
вход 18 блока 12 и сбрасывает триггер 24. В результате сброса триггера 24 на выходе 16 устройства по вл етс сигнал конца обмена .the input 18 of the block 12 and resets the trigger 24. As a result of resetting the trigger 24 at the output 16 of the device, the end of exchange signal appears.
В устройстве возможны три режима: адресный, сканирование в заданных границах , многократный циклический опрос. Выбор режима определ етс соотношением между кодами, загружаемыми в регистры 5 и 6 и во второй счетчик 9.Three modes are possible in the device: address, scan at specified limits, multiple cyclic polling. Mode selection is determined by the ratio between the codes loaded into registers 5 and 6 and into the second counter 9.
В адресном режиме производитс одно аналого-цифровое преобразование по входу.In the address mode, one analog-to-digital conversion is performed on the input.
адресуемому регистром 5, содержимое котоaddressable by register 5, the contents of which
рого в начале преобразовани переписываетс в счетчик 4. В этом режиме счетчик 9 загружаетс всеми единицами дл задани только одного преобразовани . Загрузка регистра 6 канала в этом режиме не нужна.at the beginning of the conversion, is rewritten into counter 4. In this mode, counter 9 is loaded with all units to specify only one conversion. Loading of channel 6 register is not necessary in this mode.
Во втором режиме (сканирование в заданных границах) число преобразований, загружаемое в счетчик 9, соответствует разнице чисел в регистрах 6 и 5. В этомIn the second mode (scanning within the specified limits) the number of transformations loaded into counter 9 corresponds to the difference of the numbers in registers 6 and 5. In this
ру 6. В этот момент блок 7 сравнени формирует сигнал совпадени счетчика 4 с регистром 6. После завершени преобразовани по этому каналу на входах элемента И 26 одновременно присутствует два сигнала , конец преобразовани и сигнал совпадени . Элемент И 26 через элемент ИЛИ 28 производит перезагрузку первого счетчика 4 начальным адресом выбранной области из регистра 5. Таким образом, в этом режиме производитс многократное поочередное измерение сигналов от входа, определ емого регистром 5, до входа, задаваемого регистром 6, а затем - оп ть с выбранного начального адреса и т.д. до переполнени счетчика 9. При загрузке счетчика 9 числом, кратным разнице между граничными адресами , устройство выполн ет полное число циклов опроса в заданных границах.6. At this point, the comparison unit 7 generates a match signal of counter 4 with register 6. After the conversion is completed on this channel, two signals are present at the inputs of AND 26, the conversion end and the match signal. Element AND 26, through element OR 28, reloads the first counter 4 with the starting address of the selected area from register 5. Thus, in this mode, the signals from the input defined by register 5 are repeatedly measured to the input specified by register 6, and then from the selected starting address, etc. until counter 9 is full. When counter 9 is loaded with a number that is a multiple of the difference between the boundary addresses, the device performs the total number of polling cycles within the specified limits.
Частным случаем этого режима будет режим, когда в регистры 5 и 6 загружаетс один и тот же адрес. В этом случае преобразовани идут непрерывно по одному и тому же входу с максимальной скоростью АЦП 3. Это позвол ет использовать такой режим при необходимости опроса какого-либо входа 1 с максимальным быстродействием .A special case of this mode will be the mode when the same address is loaded into registers 5 and 6. In this case, the conversions are continuously carried out on the same input with the maximum speed of the A / D converter 3. This allows using this mode if it is necessary to poll any input 1 with the maximum speed.
Таким образом, предлагаемое устройство обеспечивает работу в нескольких режимах и использует непосредственный ввод данных в оперативную пам ть ЭВМ, что позвол ет оперативно измен ть режимы опросов каналов на основе анализа введенной информации.Thus, the proposed device provides operation in several modes and uses direct data input to the computer operating memory, which allows changing the polling modes of channels on the basis of the analysis of the entered information.
Кроме того, оно имеет структуру, позвол ющую использовать максимальное быстродействие АЦП. При использовании многократного циклического опроса у ЭВМ отпадает необходимость перед каждым циклом опроса формировать управл ющие команды , в результате чего увеличиваетс общее быстродействие системы.In addition, it has a structure that allows you to use the maximum speed of the ADC. When using multiple cyclic polling on a computer, it is not necessary to form control commands before each polling cycle, as a result of which the overall system speed increases.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864146096A SU1386986A1 (en) | 1986-09-23 | 1986-09-23 | Data input device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU864146096A SU1386986A1 (en) | 1986-09-23 | 1986-09-23 | Data input device |
Publications (1)
Publication Number | Publication Date |
---|---|
SU1386986A1 true SU1386986A1 (en) | 1988-04-07 |
Family
ID=21267135
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU864146096A SU1386986A1 (en) | 1986-09-23 | 1986-09-23 | Data input device |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU1386986A1 (en) |
-
1986
- 1986-09-23 SU SU864146096A patent/SU1386986A1/en active
Non-Patent Citations (1)
Title |
---|
Авторское свидетельство СССР по за вке № 3969498/24-24, кл. G 06 F 3/05, 1985. Авторское свидетельство СССР № 1012230, кл. G 06 F 3/00, 1981. * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
SU1386986A1 (en) | Data input device | |
SU1441378A1 (en) | Information input device | |
JPH0769996B2 (en) | Simultaneous measurement data transmission method | |
SU1228096A1 (en) | Information input device | |
SU1295408A1 (en) | Device for accumulating and processing information | |
RU1837276C (en) | Meter-to-digital computer interface device | |
KR950008484B1 (en) | A/d converter | |
SU809215A1 (en) | Device for polling and analog data gathering in a network electric model | |
SU1742836A1 (en) | Functional converter of multiple variables | |
RU1775049C (en) | Data input device | |
RU2037190C1 (en) | Multichannel system for recording physical quantities | |
SU1564649A1 (en) | Multichannel device for registering analog and digital signals | |
SU583434A1 (en) | Microprogramme control device | |
SU1381476A1 (en) | Device for inputting information from analog sensors | |
RU1783547C (en) | Multichannel system for collection and recording of measurement information | |
SU1285493A1 (en) | Device for reproduction of delaying functions | |
SU1278863A1 (en) | Interface for linking the using equipment with digital computer | |
SU1495778A1 (en) | Multichannel device for input of analog data | |
SU1275419A1 (en) | Information input device | |
SU1429129A1 (en) | Device for analysis of electrocardiograms | |
SU1280621A1 (en) | Random process generator | |
RU2020424C1 (en) | Multichannel monitor | |
SU1179308A1 (en) | Interface for linking analog-to-digital converter with digital computer | |
SU1651278A1 (en) | Data input device | |
RU2020422C1 (en) | Multichannel monitor |