??? 11/08/04 20:00 Read: times |
#80721 - RE: Int running on rising edge? Responding to: ???'s previous message |
Thank you, that resolved the issue. You were exactly correct, what was happening was that it would detect an interrupt as soon as it was enabled, which would then result in it being immediately disabled. Then when I would push the button it would debounce, and when I released the button it would turn the interrupt back on, immediatly initiating another interrupt since the flag was still set. (this is what made it appear to interrupt on the rising edge instead of falling). Clearing the flag in the initialization, then clearing it at the end of each interrupt made it work 100%. I could have sworn that the datasheet documentation said it cleared itself, but I guess this experience has taught me differently. Thank you! |
Topic | Author | Date |
Int running on rising edge? | 01/01/70 00:00 | |
RE: Int running on rising edge? | 01/01/70 00:00 | |
RE: Int running on rising edge? | 01/01/70 00:00 | |
RE: Int running on rising edge? | 01/01/70 00:00 | |
RE: Int running on rising edge? | 01/01/70 00:00 | |
RE: Int running on rising edge? | 01/01/70 00:00 | |
RE: Int running on rising edge?![]() | 01/01/70 00:00 | |
RE: Int running on rising edge? | 01/01/70 00:00 | |
RE: Int running on rising edge? | 01/01/70 00:00 |