Interrupt Service Routine (ISR)

From $1

    Table of contents
    No headers

    I now have the board reading a I/O line state in a loop. This is intended to be hooked up to a reed switch sensor and then calculate speed from wheel rotation. This works on the bench and I can rapidily press a test button and see the resulting km/hr reading. However I suspect that I need an ISR routine as I don't want to risk missing a reed switch trigger when going fast. Here are some cheat links...

    Writing an Interrupt Service Routine (ISR)

    Howto: Using external interrupts on an Atmel AVR microprocessor

    <avr/interrupt.h>: Interrupts

     

    Tags: (Edit tags)
    • No tags
     
    Comments (0)
    You must login to post a comment.

     
    Powered by MindTouch Core

    Disclaimer: Vespa Labs contains information that is VERY likely to wreck your scooter and possibly yourself both intentionally (i.e. gaining more peformance while sacrificing reliability + safety) and unintentionally (i.e. misleading or incorrect information). Vespa Labs is only a wiki and intended as a dumping ground for information and not as a properly reviewed source. The same disclaimers that wikipedia.org use apply to Vespa Labs. The short version is use information at your own risk, both information on the main wiki and in the user areas are intended to be used only as "thought provoking" for someone that knows what they are doing. If you try to implement a "thought" Vespa Labs is not reponsible and if something goes wrong we hope that you live and update the offending information with corrections to warn others.

    Vespa Labs is an international site and therefore may contain information that is not road legal in some countries/states and may also invalidate insurance policies. Treat all information as experimental and for "race use only" (i.e. not for road use - even if it is implied or explicitly stated). Refer to and adhere to your local road and legal rules, as well as the manufacturers recommendations.