Jump to content

CPP_Technologist

Members
  • Content Count

    5
  • Joined

  • Last visited


Reputation Activity

  1. Like
    CPP_Technologist got a reaction from spirilis in Millis() and Micros() Issue during ISR   
    It could be some sort of noise problem, however it certainly didn't exist when I used this circuit with the arduino, (at 5V, so maybe S/N ratio was small enough or the arduino just has more hysteresis).   
     
    I think the version of Energia code I'm using may have a bug:
     
    I decided to break the circuit up and have one phototransistor trigger the rising edge interrupt pin and one phototransistor trigger the falling edge interrupt pin.  I've noticed that they both end up triggering their respective interrupts when I remove my finger from their light beam-- it seems that they are both triggering on the falling edge for some reason, even though I specified rising for one of them in the code.  
     
    I think I read something about rising not working somewhere, I'm going to see if I can find out where I read it.  
     
    ETA:
     
    The problem was a bug in the library Energia.h.  It specifies the wrong values for RISING and FALLING.  The solution was already discussed here:  (See post #6)
     
    http://forum.43oh.com/topic/3214-how-to-using-attachinterrupt/
  2. Like
    CPP_Technologist got a reaction from cde in MPR121 Touch Sensor and I2C Wire Library   
    Don't know why this posted with so many @ such and such.  I didn't write that.
     
    Anyway, I got this working with the code above.  I rewired everything and it started working, so I must have had a bad connection somewhere.
×
×
  • Create New...