SU960781A1 - Device for calculating microprocessor system time intervals - Google Patents
Device for calculating microprocessor system time intervals Download PDFInfo
- Publication number
- SU960781A1 SU960781A1 SU803219326A SU3219326A SU960781A1 SU 960781 A1 SU960781 A1 SU 960781A1 SU 803219326 A SU803219326 A SU 803219326A SU 3219326 A SU3219326 A SU 3219326A SU 960781 A1 SU960781 A1 SU 960781A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- inputs
- output
- outputs
- control
- Prior art date
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B29—WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
- B29C—SHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
- B29C66/00—General aspects of processes or apparatus for joining preformed parts
- B29C66/80—General aspects of machine operations or constructions and parts thereof
- B29C66/84—Specific machine types or machines suitable for specific applications
- B29C66/861—Hand-held tools
- B29C66/8614—Tongs, pincers or scissors
Landscapes
- Complex Calculations (AREA)
Description
Изобретение относитс к вычислительной технике и может быть использовано . в микропроцессорных вычислительных и управл ющих системах,.работающих в реальном масштабе времени , при проведении научных экспериментов и управлении технологическими процессами. Известен таймер дп микропроцессорной системы, содержащий первый счетчик с заданным коэффициентом пересчета, работающий на вычитание и управл емый тактовыми сигналами, первый счетчик создает селе.ктивНо один из множества возможных выходных сигналов, частота которых получаетс в результате делени тактовой частот на Предварительно заданное число, не вл ющеес степенью двух. Первый счетчик подключаетс к группе ад ресных шин дл выбора одного из его выходов. Второй счетчик, работающий также в режиме вычитани ,подключаетс к шинам данных дл записи в него числа. Выход первого счетчика coe;c№i нен с входом второго счетчика. Когда второй счетчик досчитывает до нул , выдаетс сигнал прерывани в микропроцессор 111. Известно также устройство дл вычислени временных интервалов, содержащее счетчик, блок управлени , первый элемент И, элемент запрета, триггер, генератор, счетчик с принудительной установкой кода, группу элементов И-НЕ, второй элемент И и формирователь сигнала записи J. Нгдаболее; близким к предлагаемому вл етс программируемый таймер, содержащий приемопередатчики дайных, дедешифратор , блок управлени и счетчики Недостатками прогр 1ммируемого таймера вл ютс : отсутствие возможностей изменени частоты тактовых импульсов по командам ЭВМ; запрещени выдачи запросов на прерывание программы процессора; тактирЪвани работы программируемого таймера от удаленного внешнего источника, а также , ввода в ЭВМ состо ни сигналов запрета работы счетчиков. Дл таймера измерение длительности импульсных сигналов, подаваекых на вход запрета счетчиков, должно осуществл тьс программным способом путем последовательного опроса и анализа содержимого счетчиков. При этом период опроса состо ни счетчиков должен быть больше периода тактовых импульсов на входе счетчика, что пр водит к замедлению реакции ЭВМ на и менение фронта импульса на врем , равное периоду опроса. Целью изобретени вл етс увели чение быстродействи устройства. Указанна цель достигаетс тем, что в устройство дл вычислени вре менных интервалов микропроцессорных систем, содержащее блок приемопередатчиков , дешифратор, блок управлен и счетчики, причем первый вход-выход блока приемопередатчиков соединен с информационным входом-выходом устройства, первый и второй входы дешифратора подключены соответствен к адресному и управл ющему входамвыходам устройства, выходы управлени считыванием-записью дешифратора соединены с входами разрешени считывани и записи блока управлени , выходы которого соединены с управл ющими входами соответствующих счетчиков , второй вход-выход блока приемопередатчиков подключен к информационным входам- выходам счетчиков и адресному входу блока управлени , введены делитель частоты, коммутатор частоты, триггеры и элементы И по числу счетчиков, нормализатор уровн ,коммутатор импульсов и входной регистр, при этом управл ющий вход устройства соединен с входом делител частоты, выход которого под ключен к информационному входу комму татора частоты, управл ющий вход которого соединен с вторым входом-выходом блока приемопередатчиков и входами установки триггеров, входы сброса которых подключены к выходу управлени сбросом дешифратора, выходы триггеров соединены с первыми входами соответствующих элементов И вторые входы которых подключены к выходам соответствующих счетчиков, выходы элементов И соединены с информадионными выходами устройства, вход разрешени коммутатора частоты подключен к выходу программировани частоты дешифратора, дополнительный информационный вход устройства соеди нен с Входом нормализатора уровн , управл ющий вход входного регистра подключен к выходу управлени приемом дешифратора, первый и второй вхо ды коммутатора импульсов соединены с выходами соответственно коммутатора частотй и нормализатора уровн , первый и второй выходы коммутатора импульсов подключены соответственно к тактовым входам и входам запрета счетчиков, а первый и второйинформа циониые входы-выходы входного регистра соединены соответственно с вторы входом-выходом блока приемопередатчи ков и вторым входом коь1мутатора импу .мьсов. Кроме того, нормализатор уровн содержит выпр мители, фильтры и оптроны, при этом входы выпр мителей соединены с входом нормализатора , а их выходы - с входами соответствующих фильтров, входы оптронов подключены к выходам соответствующих фильтров, а выходы оптронов к выходу нормализатора. При этом блок управлени содержит регистр, дешифраторы записи, дешифраторы считывани . Формирователи импульсов , триггеры управлени , счетные триггеры, первые и вторые элементы ИЛИ и коммутаторы по числу счетчиков , причем вход регистра соединен с адресным входом блока, а выход регистра подключен к информационным входам дешифраторов считывани и записи,. управл ющие входы которых соединены с входами разрешени считывани и записи блока, выходы триггеров управлени , формирователей импульсов и элементов ИЛИ подключены к выходам блока, выходы дешифраторов считывани соединены с входами формирователей импульсов и входами установки О триггеров управлени ,входы установки 1 которых подключены к входам разрешени считывани и записи блока, первые и вторые выходы дешифраторов записи соединены с пер- выми входами соответственно первых и вторых элементов ИЛИ, третьи выходы дешифраторов записи подключены к входам счетных триггеров и управл ющим входам коммутаторов, первые и вторые входы которых соединены соответственно с единичными и нулевыми выходами счетных триггеров, а пег рвые и вторые выходы коммутаторов подключены к вторым входам соответственно первых и вторых элементов ИЛИ. На фиг.1 представлена структурна схема устройства; на фиг.2 - функциональна схема блока управлени . Устройство содержит приемопередатчики 1 данных, соединенные с выходом дешифратора 2 и -внутренней шиной 3, к которой подключенысчетчики 4, блок 5 управлени , программно-управл емый коммутатор 6 частоты, регистр 7 и триггеры 8. Приемопередатчики 1 соединены с информационным входом-выходом 9 устройства, дешифратор 2 соединен с .адресным входом-выходом 10 и управл ющим входомвыходом 11 устройства. Блок 5 управлени соединен с управл ющим входом каждого счетчика 4 шинами .12 и с выходом дешифратора 2 шиной 13. Дешифратор 2 соединен также с программноуправл емым ко чмутатором 6 частоты, регистром 7 и триггерами 8. Вход делител 14 частоты соединен с управл ющим входом 15 устройства. Выходы делител 14 частоты соед11нены с входами коммутатора б частстл. Одна из The invention relates to computing and can be used. in microprocessor-based computing and control systems that operate in real time, when conducting scientific experiments and managing technological processes. A microprocessor dp timer contains a first counter with a specified conversion factor, working on subtraction and controlled by clock signals, the first counter creates a village. But one of the many possible output signals whose frequency is obtained by dividing the clock frequencies by a Predetermined number, not which is a power of two. The first counter is connected to the address bus group to select one of its outputs. A second counter, also operating in subtraction mode, is connected to the data buses to write numbers to it. The output of the first counter coe; c№i is not with the input of the second counter. When the second counter counts to zero, an interrupt signal is output to the microprocessor 111. A device for calculating time intervals is also known, comprising a counter, a control unit, the first AND element, a prohibition element, a trigger, a generator, a counter with a forced installation of a code, a group of AND-NOT elements , the second element And the signal shaper recording J. Ngdabelya; A programmable timer containing daylight transceivers, de-scrambler, control unit and counters is close to the proposed one. The disadvantages of the 1mm timer program are: the lack of possibilities for changing the clock frequency on computer commands; prohibiting the issuance of requests for interruption of the processor program; tacting of the work of the programmable timer from a remote external source, as well as the input into the computer of the state of the prohibition signals of the counters. For the timer, the measurement of the duration of the pulse signals supplied to the meter inhibit input should be carried out programmatically by polling and analyzing the contents of the counters. In this case, the polling period of the state of the counters must be greater than the period of the clock pulses at the counter input, which leads to a slower response of the computer to the change of the pulse front by a time equal to the polling period. The aim of the invention is to increase the speed of the device. This goal is achieved by the fact that the device for calculating time intervals of microprocessor systems containing a transceiver unit, a decoder, a control unit and counters, the first input-output of the transceiver unit connected to the information input-output device, the first and second inputs of the decoder are connected to The address and control inputs of the device, the read / write control outputs of the decoder are connected to the read and write enable inputs of the control unit, the outputs of which are o are connected to the control inputs of the respective counters, the second input-output of the transceiver unit is connected to the information inputs-outputs of the counters and the address input of the control unit, a frequency divider, a frequency switch, triggers and elements And by the number of counters, level normalizer, pulse switch and input register, while the control input of the device is connected to the input of the frequency divider, the output of which is connected to the information input of the frequency switch, the control input of which is connected to the second input ohm-output of the transceiver unit and the trigger setup inputs whose reset inputs are connected to the decoder reset control output, the trigger outputs are connected to the first inputs of the corresponding elements and the second inputs of which are connected to the outputs of the corresponding counters, the outputs of the And elements are connected to the information outputs of the device, the switch enable input the frequency is connected to the output of the programming of the decoder frequency, the additional information input of the device is connected to the input of the level normalizer, pack The input input register input is connected to the decoder reception control output, the first and second inputs of the pulse switch are connected to the outputs of the frequency switch and the level normalizer, respectively, the first and second outputs of the pulse switch are connected to the clock inputs and the inhibit inputs, respectively, and the first and second information the inputs-outputs of the input register are connected respectively to the second input-output of the transceiver unit and the second input of the impedance module. In addition, the level regulator contains rectifiers, filters, and optocouplers, the rectifier inputs are connected to the normalizer input, and their outputs are connected to the inputs of the corresponding filters, the inputs of optocouplers are connected to the outputs of the corresponding filters, and the outputs of optocouplers to the output of the normalizer. In this case, the control unit contains a register, write decoders, read decoders. Pulse drivers, control triggers, counting triggers, first and second OR elements and switches by the number of counters, the register input connected to the address input of the unit, and the register output connected to the read and write decoder information inputs. the control inputs of which are connected to the read and write enable inputs of the control triggers, pulse drivers and OR elements are connected to the outputs of the read decoders and connected to the inputs of the pulse drivers and installation inputs O of control triggers whose installation inputs 1 are connected to the enable inputs read and write block, the first and second outputs of the write decoders are connected to the first inputs of the first and second OR elements, respectively, the third outputs of the decoder B are connected to inputs of flip-flops and counting control input of switch, first and second inputs of which are connected respectively with unit and zero outputs countable triggers and pegylated rvye and second switch outputs are connected to second inputs respectively of first and second OR elements. Figure 1 shows the structural diagram of the device; Fig. 2 is a functional block diagram of the control unit. The device contains data transceivers 1 connected to the output of the decoder 2 and the internal bus 3 to which the meters 4 are connected, the control unit 5, the program-controlled frequency switch 6, the register 7 and the triggers 8. The transceivers 1 are connected to the information input-output 9 of the device The decoder 2 is connected to the address input-output 10 and the control input output 11 of the device. The control unit 5 is connected to the control input of each counter 4 by buses .12 and to the output of the decoder 2 by bus 13. The decoder 2 is also connected to the software controlled frequency switch 6, the register 7 and the trigger 8. The input of the frequency divider 14 is connected to the control input 15 devices. The outputs of the divider frequency 14 are connected to the inputs of the switch used b parts. One of
групп входов коммутатора 16 импульсов соединена шиной 17 с выходами коммутатора б частоты/ друга группа входов коммутатора 16 соединена шинами 18 с выходами нормализатора 19 уровн , входы которого соединены с дополнительным информационным входом 20 устройства. Одна из двух групп выходов коммутатора 16 соединена шиной 21 с входами тактовых импульсо счетчиков 4, .труга гРУппа выходов коммутатора 16 соединена шиной. 22 с входами запрета счетчиков 4 и входами регистра 7. Выход каждого из триггеров 8 соединен с первым входом соответствующего элемента И 23, второй вход каждого из последних соединен с выходом соответствующего счетчика 4, а выходы элементов И 23 подключены к информационным выходам 24 устройства.the input groups of the switch 16 pulses are connected by bus 17 to the outputs of the frequency / friend switch b; the group of inputs of the switch 16 is connected by buses 18 to the outputs of the normalizer 19 level, the inputs of which are connected to the additional information input 20 of the device. One of the two groups of outputs of the switch 16 is connected by bus 21 to the inputs of clock pulses of counters 4, .group of the outputs of the switch 16 is connected by bus. 22 with the prohibition inputs of the counters 4 and the inputs of the register 7. The output of each of the flip-flops 8 is connected to the first input of the corresponding element AND 23, the second input of each of the latter is connected to the output of the corresponding counter 4, and the outputs of the elements And 23 are connected to the information outputs 24 of the device.
Нормализатор уровн содержит выпр мители 25, входы которых соединены с входа1ии нормализатора, а выходы соответственно подключены к входам фильтров 26, выходы которых соединены соответственно с входами оптронов 27, выходы которых вл ютс выходами нормализатора 19 уровн .The level normalizer contains rectifiers 25, the inputs of which are connected to the input of the normalizer, and the outputs are respectively connected to the inputs of filters 26, the outputs of which are connected respectively to the inputs of optocouplers 27, the outputs of which are the outputs of the normalizer 19 level.
Блок управлени (фиг.2) содержит регистр 28 и схемы 29 управлени счетчиком, число которых соответствует числу счетчиков 4,причем регистрThe control unit (FIG. 2) contains a register 28 and a meter control circuit 29, the number of which corresponds to the number of counters 4, the register
28 имеет входы, соединенные с дешифратором 2 линией, принадлежащей шине 13, и с внутренней шиной 3, а также два выхода, соединенные с двум из п ти входов каждой из схем 29 управлени счетчиком. Кажда схема 29 содержит дешифратор 30 записи и дешифратор 31 считывани , два формировател 32. импульсов и триггер 33 управлени . При этом разрешающий вход 34 дешифратора 30 записи, разрешающий вход 35 дешифратора 31 считывани и вход 26 установки 1 триггера 33 соединены с выходами дешифратора 2 лини ми, принадлежащими шине 13. Дешифратор 30 записи имеет три выхода, соединенные с входагли первого формировател импульсов, причем первый выход соединен с. первым входом элемента ИЛИ 37, второй с первым входом элемента ИЛИ 38, а третий - с входом счетнсэго триггера 39 и первым входом коммутатора 40. Счетный триггер 39 имеет два выхода, соединенные с вторым и третьим входами ком1 татора 40. Коммутатор 40 имеет два выхода, первый из которых соединен с вторым входом элемента ИЛИ 37, а второй - с вторым входом элемента ИЛИ 38, Выходы элемента ИЛИ 37 и элемента ИЛИ 38 вл ютс выходами формировател 32 импульсов. Дешифратор 31 считывани имеет четыipe выхода, три из которых соединены28 has inputs connected to the decoder 2 by a line belonging to the bus 13 and to the internal bus 3, as well as two outputs connected to two of the five inputs of each of the meter control circuits 29. Each circuit 29 comprises a write decoder 30 and a read decoder 31, two pulse drivers 32 and a control trigger 33. At the same time, the enable input 34 of the write decoder 30, the enable input 35 of the read decoder 31, and the input 26 of the setup 1 of the trigger 33 are connected to the outputs of the decoder by 2 lines belonging to the bus 13. The write decoder 30 has three outputs connected to the input of the first pulse generator, the first output connected to. the first input of the OR element 37, the second with the first input of the OR element 38, and the third with the input of the counting trigger 39 and the first input of the switch 40. The counting trigger 39 has two outputs connected to the second and third inputs of the switch 40. The switch 40 has two outputs The first of which is connected to the second input of the element OR 37, and the second to the second input of the element OR 38, The outputs of the element OR 37 and the element OR 38 are the outputs of the pulse former 32. The decoder 31 reads have four output ports, three of which are connected.
с входами второго формировател 32 ,|импульсов, а четвертый соединен с входом 41 установки О триггера 33; Выход триггера 33, выходы обоих формирователей 32 импульсов вл ютс выходами схемы 29 управлени счетчиком и соединены с входами соответствующего счетчика 4. .with the inputs of the second driver 32, | pulses, and the fourth is connected to the input 41 of the installation Of the trigger 33; The output of the trigger 33, the outputs of both pulse formers 32 are outputs of the meter control circuit 29 and are connected to the inputs of the corresponding counter 4..
Устройство работает следующим об0 разом.The device works as follows.
: После включени в состав микропроп цессорной системы устройство переходит в режим настройки. В этом режиме микропроцессорна система с помощью : After the microprocessor system is included in the microprocessor system, the device enters the setup mode. In this mode, the microprocessor system using
5 команд вывода устанавливает значение тактовых частот .дл каждого из счет- чиков 4, разрешает или запрещает форлтрование запросов прерывани микропроцессорной системы по окончанию работы какого-либо из счетчиков 5 output commands sets the clock frequency for each of the 4 counters, enables or disables the forlting of microprocessor system interrupt requests after the completion of any of the counters
0 4 и задает тип записи в каждый из счетчиков 4 начального состо ни счета или тип чтени состо ни дл кадого из счетчиков 4. Необходимость определени типа записи начального 0 4 and specifies the type of record in each of the counters 4 of the initial state of the account or the type of reading of the state for each of the counters 4. The need to determine the type of record of the initial
5 состо ни в счетчик 4 или типа чтени состо ни счетчика 4 вызвана тем, , что разр дность микропроцессорных систем, как правило, мала и составл ет 8 или 16 разр дов. В то же вре0 м ,. дл повышени эффективности, ра боты устройства в составе системы желательно, чтобы счетчики 4 имели большую разр дность. В данном устройстве разр дность счетчиков 4 может The 5 states in the counter 4 or the reading type of the state of the counter 4 are caused by the fact that the microprocessor systems are usually small and 8 or 16 bits. At the same time,. To increase the efficiency of the device as part of the system, it is desirable that the counters 4 have a large size. In this device, the counter size 4 can
5 в два раза превышать разр дность микропроцессорной системы, в- составе которой работает устройство. В этом случае начальное досто ние может за носитьс одной командой выводаиз 5 is twice the size of the microprocessor system in which the device operates. In this case, the initial value may be worn with a single output command.
0 микропроцессорной системы только в старшие или только в младшие разр ды .счетчика 4. Аналогично, одной командой ввода в Микропроцессорную систему может быть считано состо ние только старших или только младших разр дов счетчика 4.0 of the microprocessor system only in the older or only in the younger bits of the counter 4. Similarly, a single input command to the microprocessor system can read only the status of the older or only the younger bits of the counter 4.
Блок 5 управлени обеспечивает три типа записи начального состо ни .и чтени состо ни счетчика 4:1 тип запись (чтение) младшей полови-ны раз0 р дов счетчика; тип 2 - запись ( i ние) старшей половины разр дов счет-чика; тип 3 - запись (чтение) сначала младшей, а затем старшей половины разр дов счетчика двум последова5 тельными командакм вывода- (ввода) микропроцессорной системы.The control unit 5 provides three types of recording of the initial state. And reading of the state of the counter 4: 1 type of writing (reading) of the lower half of the counter; type 2 - recording (i ning) of the upper half of the bit counts; Type 3 - writing (reading), first of the younger and then the upper half of the counter bits, to two consecutive commands for output (input) of the microprocessor system.
Задание значени тактовой частоты , разрешение или запрет формировани запросов прерывани , выбор типа . Setting the clock frequency value, enabling or disabling the generation of interrupt requests, selecting the type.
0 записи начсшьного состо ни (чтени состо ни .) дл каждого счетчика 4 выполн етс микропроцессорной смете- . мой отдельно заданием управл ющих слов, которые- поступают из системы в устройство по входам-выходам 9-11.0, the write of the initial state (reading of the state.) For each counter 4 is performed by a microprocessor-based estimate. My separate assignment of control words that come from the system to the device at the inputs-outputs 9-11.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU803219326A SU960781A1 (en) | 1980-10-10 | 1980-10-10 | Device for calculating microprocessor system time intervals |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
SU803219326A SU960781A1 (en) | 1980-10-10 | 1980-10-10 | Device for calculating microprocessor system time intervals |
Publications (1)
Publication Number | Publication Date |
---|---|
SU960781A1 true SU960781A1 (en) | 1982-09-23 |
Family
ID=20932424
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
SU803219326A SU960781A1 (en) | 1980-10-10 | 1980-10-10 | Device for calculating microprocessor system time intervals |
Country Status (1)
Country | Link |
---|---|
SU (1) | SU960781A1 (en) |
-
1980
- 1980-10-10 SU SU803219326A patent/SU960781A1/en active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPS6049354B2 (en) | Event occurrence recording method | |
WO2000023895A1 (en) | Signal processing apparatus with memory access history storage | |
SU960781A1 (en) | Device for calculating microprocessor system time intervals | |
JPS57135500A (en) | Data memory protecting circuit | |
JPH06187256A (en) | Bus trace mechanism | |
SU902325A1 (en) | Device for interrogation of information sensors | |
SU1128266A1 (en) | Device for collecting statistical data concerning operation of computer programs | |
SU1425683A1 (en) | Device for debugging software/hardware blocks | |
SU572846A1 (en) | Memory control block | |
SU1363219A1 (en) | Device for debugging program-equipment units | |
SU1478247A1 (en) | Indicator | |
SU877588A1 (en) | Device for production counting | |
SU1348839A1 (en) | Device for debugging program hardware-controlled units | |
SU526882A1 (en) | Device for entering information about object parameters into an electronic computer | |
SU1173414A1 (en) | Program control device | |
SU1086419A1 (en) | Function generator | |
SU1179349A1 (en) | Device for checking microprograms | |
JPS6273358A (en) | Control method for microcomputer and its peripheral device | |
SU1213485A1 (en) | Processor | |
SU1552189A1 (en) | Device for monitoring programs | |
SU1485152A1 (en) | Impedance parameter microprocessor meter | |
SU1642472A1 (en) | Device for checking the sequence of operatorъs actions | |
SU1425714A1 (en) | Analyzer of electric signals | |
SU1062682A1 (en) | Device for interface among computer and discrete-type transducers | |
SU1410048A1 (en) | Computing system interface |