This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

lpc 932 microcontroller

hello sir,
i am an udergraduate student, currently doing my project on lpc932 microcontroller as part of my academic curriculum.

i am using flash magic and keil for the project, i am also using the break detect uart method for isp programming.

i am trying to sample the ir remote signal using the external interrupt feature .
i am trying to sample the data at 10 microseconds,the data being obtained at the output pin of a 3 pin tsop11xx sensor,
it seems that interrupt is happening at random times, and the timing is incorrect.

i am using the internal RC oscillator.

please send any onformation in this regard

Parents
  • Uhm, maybe i' m wrong in this, but aren't polling (reading every 10 us) and interrupt (reading upon change) two completely different methods?

    Granted, you need to use interrupts for ISP (As Far As I Know), but if you read the input of the sensor every 10 us, you don' t need to use an interrupt.

    The other way around, if you use an interrupt on the port, you don't need to time your signal (it triggers your Interrupt Service Routine when the input changes).
    When the signal changes, the controller pauses your regular code, executes the ISR, then returns to the normal program, where it was before the Interrupt was triggered)

    Seeing as you probably need to do more than just trigger on signal, you should prolly stick with polling the port, but leave out the Interrupt.

    Just my 2c

    Kit

Reply
  • Uhm, maybe i' m wrong in this, but aren't polling (reading every 10 us) and interrupt (reading upon change) two completely different methods?

    Granted, you need to use interrupts for ISP (As Far As I Know), but if you read the input of the sensor every 10 us, you don' t need to use an interrupt.

    The other way around, if you use an interrupt on the port, you don't need to time your signal (it triggers your Interrupt Service Routine when the input changes).
    When the signal changes, the controller pauses your regular code, executes the ISR, then returns to the normal program, where it was before the Interrupt was triggered)

    Seeing as you probably need to do more than just trigger on signal, you should prolly stick with polling the port, but leave out the Interrupt.

    Just my 2c

    Kit

Children
No data