ISC Bit Setting for Interrupt Service Routine

  • Thread starter Thread starter angelspikes
  • Start date Start date
  • Tags Tags
    Bit
Click For Summary
SUMMARY

The discussion centers on configuring the Interrupt Service Routine (ISR) using the External Interrupt Control Register (EICRA) in microcontroller programming. The user seeks to set the ISC bit for detecting a rising edge on an external interrupt pin. The correct setting for this requirement is EICRA = (1< PREREQUISITES

  • Understanding of microcontroller architecture and interrupt handling
  • Familiarity with the External Interrupt Control Register (EICRA)
  • Knowledge of bit manipulation in C or C++ programming
  • Experience with configuring interrupt settings in embedded systems
NEXT STEPS
  • Research the specific microcontroller architecture being used, such as AVR or ARM
  • Learn about other ISC bit settings and their applications in different scenarios
  • Explore the use of the EIMSK register for enabling external interrupts
  • Study best practices for writing efficient Interrupt Service Routines
USEFUL FOR

Embedded systems developers, firmware engineers, and anyone involved in configuring interrupts for microcontrollers will benefit from this discussion.

angelspikes
Messages
10
Reaction score
0
I'm setting up an interrupt service routine, but I'm unsure which ISC bit setting I should use.

ISC bit settings:

ISCx1 ISCx Description
0 0 Low level of INTx generates an interrupt request
0 1 Any logic change on INTx generates an interrupt request
1 0 The falling edge of INTx generates an interrupt request
1 1 The rising edge of INTx generates an interrupt request

I want the interrupt to take place, when an input signal on a pin in the external interrupt control register goes high.

Would the following ISC bit setting be correct:

EICRA = (1<<ISC11)
 
Engineering news on Phys.org
It might help if you identified the processor you are using.
 

Similar threads

Replies
7
Views
3K
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
5K