DT-Interrupts - Is there a clash between ExtInt and IntOnChange?


Results 1 to 17 of 17

Threaded View

  1. #9
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: DT-Interrupts - Is there a clash between ExtInt and IntOnChange?

    generally the best solution is to absolute minimum processing in the isr like set a flag to indicate to main code that a task must be performed

    ie
    your triac isr can hold processing up for over 6mS
    you could instead use zero cross to start another timer for "speed delay" that timer can then cause an interrupt to fire triac
    both of these isr's could be very simple and done as asm type for absolute minimum overhead.
    the "ir" isr could similarly start a timer and reset for another edge trigger set state 1. with the timer set for a period greater than the ir start pulse time
    if the timer int goes off then its a false trigger if the timer value is to low when the edge triggers then its a false trigger otherwise
    for a good trigger set a state so the foreground processing can decode the ir stream.
    this would be a state managed process
    state 0 ir idle
    state 1 ir active
    state 2 ir start pulse detected ,manage in foreground
    it can all be done in uS no bogging down with delays
    Last edited by richard; - 9th May 2020 at 05:59.
    Warning I'm not a teacher

Similar Threads

  1. External Interrupts Vs. RB/KBI Interrupts?
    By kevj in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 1st September 2008, 07:52
  2. help: TMR0 interrupts disabling PORTAchange interrupts???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th August 2008, 15:10
  3. Need help with INTerrupts
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd August 2007, 00:53
  4. Why use Interrupts
    By lerameur in forum General
    Replies: 4
    Last Post: - 13th May 2007, 22:12
  5. too many interrupts
    By trying in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd February 2006, 13:38

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts