hi
I have set the CTIMER peripheral of the LPC845 to read 3 pulses via cap0 cap1 and cap2. I have set the CCR register to trigger the interrupt on both rising and falling edges. How do I detect the type of interrupt that was triggered, whether falling or rising? I haven't found any register for this.
Hello anto,
Sorry there isn't the register. Some suggestions:
how about read the signal high/low in interrupt function.
or the initialize state is know, then through the interrupt number judge rising or falling.
or Use SCtimer six capture, CAP0 control signal 1 rising, CAP1 control signal1 falling. CAP2 control signal 2rising, CAP3 control signal2 falling. CAP4 control signal 3 rising, CAP5 control signal3 falling.
BR
Alice