Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

generating external interrup in SW

2005-09-30 by Aaron

On a mega48, I am trying to generate a external interrupt in the 
software by writing:
    sbi EIFR, INTF0     ; simulate a step in test mode by setting INT0 
flag (step input)

But this doesn't seem to work  -- neither in the simulator nor on real 
hardware.

I am 99% sure INT0 is set up properly because the interrupt vector 
executes if a falling edge is applied to the pin.

Is my method of generating an external interrupt in software valid, or 
am I missing something?

Aaron

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.