Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Interrupt help please 68hc11

I'm writing a program that is going to have two external interrupt.
I wan't these interrups to occur in the order they are received without
one interrupt having priority over the other.

my idea "temperature control"

2 push buttons, one to increase the temperature, one to decrease it;
the main program will be doing it's own thing until an interrupt occurs;

what is the best way of connecting my two push buttons to my 68hc11?

if I put one push button on irq and one on xirq one interrupt will have priority over the other, and I don;t wan't this to happen

thanks

Comments

  • MrEdMrEd Member Posts: 180
    : I'm writing a program that is going to have two external interrupt.
    : I wan't these interrups to occur in the order they are received without
    : one interrupt having priority over the other.
    :
    : my idea "temperature control"
    :
    : 2 push buttons, one to increase the temperature, one to decrease it;
    : the main program will be doing it's own thing until an interrupt occurs;
    :
    : what is the best way of connecting my two push buttons to my 68hc11?
    :
    : if I put one push button on irq and one on xirq one interrupt will have priority over the other, and I don;t wan't this to happen
    :
    : thanks
    :

    I dont know much about the 68hc11, but how about putting both buttons (i hope theyre debounced!) on the irq line with a gate and using a couple of input port pins aswell. So when a button is pushed, the interrupt triggers and your routine checks the two port pins to find out which one is pressed. This is assuming the code runs faster than you can take your finger off the button :)
  • Shawn CarterShawn Carter Member Posts: 0

    ______ / http://forcoder.org / free video tutorials and ebooks about < Assembly PHP C++ JavaScript Perl Visual Basic Ruby C Swift MATLAB Scratch Delphi Python Visual Basic .NET C# PL/SQL Java Objective-C R Go COBOL Erlang Transact-SQL ABAP Ada Hack FoxPro Apex Kotlin Julia SAS D F# Prolog VBScript Lua Scheme LabVIEW Bash Alice Crystal Clojure ML Dart Scala Fortran Rust Logo Awk Lisp /> _________

Sign In or Register to comment.