 <xml xmlns="https://developers.google.com/blockly/xml">
<description>
<![CDATA[
## Description

the IN2 input is a fast digital input capable of measuring 3.3 V (Maximum 5.5V) level signals. When an input voltage goes from 0V to 3.3V , it is known as a rising edge. The opposite is called a falling edge.


The rising edge timer is used to measure intervals between multiple rising edges.

## Exercise

+ Set SQ1 frequency to 100 Hz, and connect SQ1 to IN2 using a wire.
+ Connect SQ1 to IN2, and measure the time interval between two rising edges.
+ Change it to 4 rising edges, and record the time.
+ Draw your conclusions.

]]>
</description>

      <block type="set_frequency" id="(:Zbx7F)rT}c6O^^Rftu" x="11" y="51">
        <field name="CHANNEL">SQ1</field>
        <value name="FREQUENCY">
          <block type="math_number" id="j12f0s+VZ{2@T|#(PRaV">
            <field name="NUM">10</field>
          </block>
        </value>
        <next>
          <block type="plot_datapoint" id="t/~)p.t]0jny`9T{b@UQ">
            <value name="VALUE">
              <block type="math_number" id="_JSAo?evoC[@]U~ODC3.">
                <field name="NUM">0</field>
              </block>
            </value>
            <next>
              <block type="plot_datapoint" id="O_~-phv(Gw9[YvVOC1sS">
                <value name="VALUE">
                  <block type="math_number" id="mss*rePSEF2W4;[LY9%`">
                    <field name="NUM">1</field>
                  </block>
                </value>
                <next>
                  <block type="controls_repeat_ext" id="Kc*1)HgO|_g@$Pyu4rv%">
                    <value name="TIMES">
                      <shadow type="math_number" id="~,lODl2E?YB?x{_L:H+3">
                        <field name="NUM">10</field>
                      </shadow>
                    </value>
                    <statement name="DO">
                      <block type="plot_datapoint" id="f/$kcN*:}a%Sr%+N9iDg">
                        <value name="VALUE">
                          <block type="multi_r2r" id="u7d9JQ:Ag}H1P4EW#H@#">
                            <field name="CHANNEL">IN2</field>
                            <field name="EDGES">2</field>
                            <field name="TIMEOUT">1</field>
                          </block>
                        </value>
                      </block>
                    </statement>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </xml>
