RCU Forums - View Single Post - CDI gr8flyer55
View Single Post
Old 09-18-2012 | 09:44 AM
  #336  
nyemi
Senior Member
 
Joined: Feb 2010
Posts: 133
Likes: 0
Received 0 Likes on 0 Posts
From: szarvas, HUNGARY
Default RE: CDI gr8flyer55

Hi Jake
<the hall="" sensor="" is="" active="" like="" in="" your="" picture.="" so="" the="" falling="" edge="" comes="" right="" as="" magnet="" hitting="" sensor.="" why="" i="" figured="" on="" using="" edge.="" if="" used="" rising="" would="" be="" getting="" interrupt="" leaves="">
</the><the hall="" sensor="" is="" active="" like="" in="" your="" picture.="" so="" the="" falling="" edge="" comes="" right="" as="" magnet="" hitting="" sensor.="" why="" i="" figured="" on="" using="" edge.="" if="" used="" rising="" would="" be="" getting="" interrupt="" leaves="">The hall sensor is active low, like in your picture. So the falling edge comes right as the magnet is hitting the sensor. That's why I figured on using the falling edge. If I used the rising edge I would be getting the interrupt right as the magnet leaves the sensor.
<span lang="en" class="short_text" id="result_box"><span class="hps">The</span> <span class="hps">user</span> <span class="hps">should be seen</span> <span class="hps">as</span> <span class="hps">good.</span>
<span class="hps">Not</span> <span class="hps">the code</span><span>.
</span></span><span lang="en" class="short_text" id="result_box"><span class="hps">Watch</span> <span class="hps">video:www.youtube.com/watch</span></span>

The interrupt only triggers on the falling edge. So it will only produce one interrupt per rev. The rising edge will not trigger the interrupt, so we don't have to worry about it.</the><the hall="" sensor="" is="" active="" like="" in="" your="" picture.="" so="" the="" falling="" edge="" comes="" right="" as="" magnet="" hitting="" sensor.="" why="" i="" figured="" on="" using="" edge.="" if="" used="" rising="" would="" be="" getting="" interrupt="" leaves="">
<the interrupt="" only="" triggers="" on="" the="" falling="" edge.="" so="" it="" will="" produce="" one="" per="" rev.="" rising="" edge="" not="" trigger="" we="" have="" to="" worry="" about="" it.="">
<span lang="en" class="short_text" id="result_box"><span class="hps"><span lang="en" id="result_box"><span class="hps">This is a</span> <span class="hps">practical problem</span><span>.</span>
<span class="hps alt-edited">High</span> <span class="hps">electronic</span> <span class="hps">smog in the</span> <span class="hps">PIC</span><span>.</span>
<span class="hps">My</span> <span class="hps">engine</span> <span class="hps">is working</span><span>.</span> <span class="hps">Your</span> <span class="hps">ignition</span> <span class="hps">code.</span>
<span class="hps">PIC</span> <span class="hps">is working</span> <span class="hps">badly.</span>
<span class="hps">Believe</span> <span class="hps">me.</span>
<span class="hps">I can only</span> <span class="hps">help you</span><span>.</span>
<span class="hps">To</span> <span class="hps">be perfect</span> <span class="hps">in your</span> <span class="hps">code.</span></span></span><span>
</span></span>
</the></the>