To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 99
98  |  100
Subject: 
Best way to capture rising and falling edges?
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Wed, 28 Feb 1996 22:35:19 GMT
Original-From: 
Mike Ross <[mross@outland.jsc.]AvoidSpam[nasa.gov]>
Viewed: 
2178 times
  
Hi, It's me again.  If anyone has followed the questions I have been
asking, you'll see that I am learning, slowly, how to get an interrupt
routine trigger on both rising and falling edges of a PORTA line.  After
much help from this list and Fred (thanks, Fred), I actually have it
running.  However, it's supposed to measure the pulse-width of an incoming
R/C signal.  This number should be constant if I don't touch the joystick.
It's not, it's all over the place.  Now my question:  I am setting IC3 to
trigger on BOTH rising and falling edges.  Code examples I've seen of this
in TRP would set up to trigger on rising edges, and then set the trigger
to falling edges within the rising-edge ISR.  The falling-edge ISR would
then set the trigger to rising edges, and the cycle is repeated. Is there
any advantage to doing it this way?

Thanks!

mike



* Michael L. Ross/C33 | Lockheed Engineering & Sciences Co.****
* Robotics Department | 2400 Nasa Rd. 1, Houston, TX 77058*****
*(713)333-7094 voice,(713)333-6071 fax*#include <disclaimer.h>*
* Finger me for my public key.  mross@outland.jsc.nasa.gov ****
* If you weren't a socialist in your twenties, you had no heart.
* If you weren't a conservative by your thirties, you have no brain.



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR