I'm designing a new project for the academy, which will be my first proper contribution. I've hit a snag though, and I'm looking for some advice.
My project requires me to detect a 500ns (minimum) signal via my 8535 running at 8Mhz, and perform an action based on that. I thought about hooking the signal to an external interrupt pin, and then use the rising edge interrupt to run my routine.
That's the easy part. What I need to now do is detect whether this signal is less than 500ns, and if so throw an error via an error LED. What's the best way to both do a task on the rising edge of an external interrupt, as well as measure the duration of the pulse?
I'm a C person, but text description or psudocode on what I need to do to solve this would be great.
- Dean :twisted: