{"id":2148,"date":"2023-11-27T21:53:27","date_gmt":"2023-11-27T21:53:27","guid":{"rendered":"https:\/\/simulide.com\/p\/mesure-pulses-per-minut__df331\/"},"modified":"2024-02-12T04:03:29","modified_gmt":"2024-02-12T04:03:29","slug":"mesure-pulses-per-minut__df331","status":"publish","type":"post","link":"https:\/\/simulide.com\/p\/mesure-pulses-per-minut__df331\/","title":{"rendered":"MEASURE PULSES PER MINUTE__(DF331)"},"content":{"rendered":"<h3><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\"><strong>PURPOSE.<\/strong> <\/span><\/span><\/span><\/h3>\n<p><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The objective of this project is to <strong>count pulses in one minute<\/strong>. The measurement of each minute needs to be activated manually. If the signal is regular, the number of pulses will be the same between minutes.<\/span><\/span><\/span><\/p>\n<p><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">There are two counting modes:<\/span><\/span> <\/span><\/p>\n<p><span class=\"HwtZe\" lang=\"en\"><strong><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">a) Counting in one minute.<\/span><\/span><\/strong> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">This measurement gives <strong>complete precision<\/strong> but requires a time of one minute to obtain the result.<\/span><\/span> <br \/><strong><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">b) Counting in 6 seconds.<\/span><\/span><\/strong> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">In this mode the measurement is obtained much earlier but with <strong>less precision<\/strong><\/span><\/span><strong><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">.<\/span><\/span><\/strong> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">This mode is useful for <strong>making estimates<\/strong>.<\/span><\/span><\/span><\/p>\n<p><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The keystroke count is shown at all times on an eight-digit, 7-segment LED display <em><strong>without non-significant zeros on the left<\/strong><\/em> for greater reading comfort.<\/span><\/span><\/span><\/p>\n<h3><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\"><strong>USE.<\/strong><\/span><\/span><\/span><\/h3>\n<div class=\"lRu31\"><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">Connect the digital signal to be measured to the input <strong>IN<\/strong>, then press <strong>&lt;P&gt;<\/strong> (PULSES) so that the signal goes to the counter and it begins to increase the value at the speed of the input signal frequency. If this button is <strong>ON<\/strong>, the green <strong>LED<\/strong> on its right lights up blinking.<\/span><\/span><\/span><a href=\"https:\/\/simulide.com\/p\/storage\/2024\/01\/MANDOS.png\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-full  aligncenter\" src=\"https:\/\/simulide.com\/p\/storage\/2024\/01\/MANDOS.png\" alt=\"\" width=\"513\" height=\"213\" \/><\/a><\/div>\n<h5><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The counter has two measurement modes depending on the position of the <strong>&lt;F&gt;<\/strong> (FAST) switch:<br \/><\/span><\/span><\/span><\/h5>\n<p><span class=\"HwtZe\" lang=\"en\"><strong> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">a) &lt;F&gt;\u00a0<\/span><\/span> OFF LINE.<\/strong> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">(The counter will need <strong>one minute<\/strong> to obtain the measurement. The yellow <strong>LED<\/strong> on the right will be <strong>OFF<\/strong> in this position.<br \/><\/span><\/span><\/span><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\"><strong>b) &lt;F&gt; CONNECTED<\/strong>.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The counter will run for <strong>six seconds<\/strong>.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The result is obtained more quickly but with less precision.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The number that appears on the screen will always have the digit of the units at zero, this is due to the decrease in precision. Example: if the display shows 14560, the real pulses\u00a0<\/span><\/span><\/span><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">could be between 14560 <\/span><\/span><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">and 14569 pulses <\/span><\/span><\/span><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">per minute.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The\u00a0 <strong>LED<\/strong> will be<strong> ON<\/strong> in this position.<\/span><\/span> <\/span><\/p>\n<p><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">At the bottom left is the<strong> &#8220;TIME ADVANCE&#8221;<\/strong>.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">Here six LEDs show the elapsed measurement time in a <strong>&#8220;curtain&#8221;<\/strong> format.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">It will move to the left at a speed of <strong>10 seconds per LED<\/strong> at the one minute measuring position and <strong>1 second per LED<\/strong> at the 6 second measuring position. <\/span><\/span><\/span><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">When the measurement time has elapsed, the display <strong>will stop<\/strong> counting showing the final value of pulses, at this time the <strong>\u201cTIME ADVANCE\u201d<\/strong> LEDs will take the pattern: <strong>101101<\/strong> as the end of counting signal.<\/span><\/span><\/span><\/p>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">Pressing the <strong>&lt;R&gt;<\/strong> button clears the counter and the process begins again.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The counting does not start automatically.<\/span><\/span><\/span><\/h6>\n<h3><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\"><strong>DIAGRAM.<\/strong> <\/span><\/span><\/span><\/h3>\n<p><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The following figure shows the <strong>circuit diagram<\/strong> that makes up the pulses per minute counter.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">Its functional parts are described below:<\/span><\/span><\/span><\/p>\n<p><a href=\"https:\/\/simulide.com\/p\/storage\/2024\/01\/PER_MINUTE2.png\"><img decoding=\"async\" class=\"attachment-full size-full\" src=\"https:\/\/simulide.com\/p\/storage\/2024\/01\/PER_MINUTE2.png\" alt=\"\" \/><\/a><\/p>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\"><strong>The pulse counter<\/strong>:<\/span><\/span><\/span><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The pulse count is shown on an <strong>eight-digit 7-segment type display<\/strong>, which can reach up to <strong>99999999<\/strong>. Each of these digits are separate units that work here in <strong>BCD (Binary Coded Decimal)<\/strong>, therefore one digit<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">It will have a 4-bit input numbered 1, 2, 4 and 8 corresponding to its binary weight.<\/span><\/span> <br \/><\/span><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">These four inputs are connected to the outputs of 4 T-type flip-flops (toggle) that make up a 4-bit counter.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">For this counter to operate in BCD there is a two-input AND gate, connected to weighted outputs 2 and 8, which resets the counter when the hexadecimal value<strong> &#8220;A&#8221; (1010)<\/strong> is reached.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">This prevents all other Hexadecimal states above nine.<\/span><\/span> <\/span><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The input to the binary <strong>time counter<\/strong> receives the clock signal selected by the <strong>&lt;F&gt; switch<\/strong> which can be <strong>1 Hz for Slow<\/strong> Measurement Mode or <strong>10 Hz for Fast<\/strong> Measurement Mode.<\/span><\/span><\/span><\/h6>\n<h6><strong><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">Erasing non-significant zeros on the left:<\/span><\/span><\/span><\/strong><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">At the output of the counters there is a <strong>5-input NOR gate<\/strong> whose output <strong>turns off<\/strong> its own display whenever its four<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">inputs are at zero and in the <strong>previous digit<\/strong> there is a number <strong>other than zero<\/strong>, for this the fifth input takes the previous digit signal.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">This device prevents a number zero preceded by another number other than zero from turning off the display of its own digit.<\/span><\/span> <\/span><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\"><strong>Example<\/strong>: In 00078340 the three left zeros are <strong>turned OFF<\/strong>, but <strong>not<\/strong> the right zero.<\/span><\/span> <\/span><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">In order for each display to be turned off, <strong>&#8220;Show Enable Pin&#8221;<\/strong> must be checked in Porperties.<\/span><\/span>\u00a0 <\/span><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\"><strong>The time counter<\/strong>:<\/span><\/span><\/span><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">A counter with 6 flip-flops counts up to 60, <strong>3C in hexadecimal <\/strong>and 00<strong>11 11<\/strong>00 in binary. Therefore, an AND gate with four inputs connected to the four bits at 1 of the counter acts as a decoder to stop the counting and display the number of pulses reached.<\/span><\/span><\/span><\/h6>\n<h6><strong><span class=\"HwtZe\" lang=\"en\"> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">TIME ADVANCE:<\/span><\/span> <\/span><\/strong><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">Since one minute of pulse counting is a relatively long waiting time, a <strong>6-LED display<\/strong> has been provided to show the progress of time in the form of a <strong>curtain<\/strong>.<\/span><\/span><\/span><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">A <strong>ROM memory<\/strong> provides <strong>the pattern<\/strong> that will be displayed on the 6 LED strip to see the progress of time.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The following figure shows the content of this <strong>ROM<\/strong>, which is obtained by clicking on it in <strong><em>&#8220;Show Memory Table&#8221;<\/em><\/strong>.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">In this table a progression of ones in binary will produce the LEDs turning on.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">In the Last positions is the Value<strong> 2Dh<\/strong>, that is 00<strong>10 1101<\/strong> whose right 6 bits are the end of counting time signal pattern.<\/span><\/span><\/span><\/h6>\n<h6><a href=\"https:\/\/simulide.com\/p\/storage\/2023\/11\/331_ROM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"attachment-full  aligncenter\" src=\"https:\/\/simulide.com\/p\/storage\/2023\/11\/331_ROM.jpg\" alt=\"\" width=\"374\" height=\"209\" \/><\/a><\/h6>\n<p><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The content of the <strong>ROM<\/strong> can be <strong>created<\/strong> in hexadecimal directly in the ROM in the <strong>&#8220;Show Memory Table&#8221;<\/strong> by writing the content in each position\u00a0 (0x3f for example) or <strong>loaded<\/strong> from a text file.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The content of the ROM can also be <strong>saved<\/strong> in a text file.<\/span><\/span><\/span><\/p>\n<p><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">All this hardware is concentrated in a <strong>subcircuit<\/strong> whose concept is discussed in the following section. This subcircuit will appear in Simulide as one more component that can be used in other schemes in which a pulse meter of this type is required.<\/span><\/span><\/span><\/p>\n<h3><span class=\"HwtZe\" lang=\"en\"><strong><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">MISCELLANY.<\/span><\/span> <\/strong><\/span><\/h3>\n<p><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The attached zip file typically includes:<\/span><\/span> <\/span><\/p>\n<p><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\"><strong>1)<\/strong> Electrical diagram.<\/span><\/span> <\/span><span class=\"HwtZe\" lang=\"en\"><br \/><\/span><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\"><strong>2)<\/strong> <strong>&#8220;data&#8221;<\/strong> folder<\/span><\/span>. <\/span><\/p>\n<p><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">This data folder contains the subcircuits (custom) created by the author.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\"><strong>The presence of this folder<\/strong> is necessary for the execution of the project.<\/span><\/span>\u00a0<\/span><\/p>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\"><strong>SUBCIRCUIT:<\/strong> <\/span><\/span><\/span><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">A subcircuit It is a <strong>&#8220;custom&#8221;<\/strong> circuit that accumulates a set of Simulide base components to obtain a <strong>new <\/strong>or an<strong> adapted function<\/strong>. These subcircuits are treated by Simulide as another component of its own structure.<\/span><\/span><br \/><\/span><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\"><strong>Subcircuits<\/strong> are very useful to <strong>create a component<\/strong> that does not exist in the simulide set, to <strong>compress a complete schematic<\/strong> in a single block and thus improve the complexity and compression of the final circuit where it is integrated or for <strong>any other function<\/strong> that you want to have available when making a schematic.<br \/><\/span><\/span><\/span><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">The subcircuits must be properly incorporated in the <strong>&#8220;data&#8221; folder of simulide<\/strong>, in the <strong>&#8220;User Data&#8221; folder<\/strong> or in the <strong>&#8220;data&#8221; scheme folder<\/strong> that must be attached together with the schematic of the project itself.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">Attaching the subcircuits to the Simulide &#8220;data&#8221; folder is not advisable because they can be lost with updates to it.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">Attaching them in &#8220;User Data&#8221; is the correct thing to do.<\/span><\/span> <span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">Attaching it to the &#8220;data&#8221; folder of the diagram is necessary when it is shared.<\/span><\/span><\/span><\/h6>\n<h6><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\"><strong>Creating and locating a subcircuit<\/strong> is simple once you know the procedure that is explained in detail in the simulide tutorials<\/span><\/span><\/span><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">: <strong><a href=\"https:\/\/simulide.com\/p\/subcircuits\/\">https:\/\/simulide.com\/p\/subcircuits\/<\/a><\/strong><\/span><\/span><\/span><\/h6>\n<div dir=\"ltr\">\u00a0<\/div>\n<div class=\"lRu31\" dir=\"ltr\"><span class=\"HwtZe\" lang=\"en\"><span class=\"jCAhz ChMk0b\"><span class=\"ryNqvb\">* <strong>Communication with the author<\/strong>: Simulide\/User\/Messages\/Defran<\/span><\/span><\/span><\/div>\n<\/p>\n\n<style>.wp-block-kadence-spacer.kt-block-spacer-2148_a09982-a2 .kt-block-spacer{height:60px;}.wp-block-kadence-spacer.kt-block-spacer-2148_a09982-a2 .kt-divider{border-top-width:1px;height:1px;border-top-color:#eee;width:80%;border-top-style:solid;}<\/style>\n<div class=\"wp-block-kadence-spacer aligncenter kt-block-spacer-2148_a09982-a2\"><div class=\"kt-block-spacer kt-block-spacer-halign-center\"><hr class=\"kt-divider\"\/><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Downloads:<\/strong><\/h2>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-c2266678-2330-4c35-9e69-258ae3105845\" href=\"https:\/\/simulide.com\/p\/wp-content\/uploads\/2024\/01\/331_MEASURE-PULSES-PER-MINUTE.zip\">331_MEASURE PULSES PER MINUTE<\/a><a href=\"https:\/\/simulide.com\/p\/wp-content\/uploads\/2024\/01\/331_MEASURE-PULSES-PER-MINUTE.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-c2266678-2330-4c35-9e69-258ae3105845\">Download<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Measure of pulses per minute.<\/p>\n","protected":false},"author":3,"featured_media":2568,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-2148","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-digital"],"_links":{"self":[{"href":"https:\/\/simulide.com\/p\/wp-json\/wp\/v2\/posts\/2148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/simulide.com\/p\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/simulide.com\/p\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/simulide.com\/p\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/simulide.com\/p\/wp-json\/wp\/v2\/comments?post=2148"}],"version-history":[{"count":62,"href":"https:\/\/simulide.com\/p\/wp-json\/wp\/v2\/posts\/2148\/revisions"}],"predecessor-version":[{"id":2909,"href":"https:\/\/simulide.com\/p\/wp-json\/wp\/v2\/posts\/2148\/revisions\/2909"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/simulide.com\/p\/wp-json\/wp\/v2\/media\/2568"}],"wp:attachment":[{"href":"https:\/\/simulide.com\/p\/wp-json\/wp\/v2\/media?parent=2148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/simulide.com\/p\/wp-json\/wp\/v2\/categories?post=2148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/simulide.com\/p\/wp-json\/wp\/v2\/tags?post=2148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}