1. The set up will __________ external interrupt _____ to generate interrupt on
ID: 2249103 • Letter: 1
Question
1. The set up will __________ external interrupt _____ to generate interrupt on _______________.
2. What is the content of D7 (I) of the SREG register upon reset, and what does it mean?
3. True or False: The internal interrupts are associated with the microcontroller's peripherals like ADC, Timers, etc.; while an eternal interrupt is any interrupts applied to any of the interrupt pins.
4. True or False: Interrupt in ATmega328, when an interrupt occurs, the Global Interrupt Enable bit is set to 1.
do all the questions
Explanation / Answer
Answer:-a) The set up will trigger external interrupt signal to generate interrupt on INT0/INT1.
b) D7 bit in SREG has a value zero on RESET. This means no interrupt can happen to the controller, for interrupt to be recognised by the controller, this bit must be set by programmer using SEI instruction.
c) TRUE, internal interrupts are generated by peripherals on the microcontroller IC like timer/counter, ADC, USART, SPI, EEPROM and analog comparator etc, but external interrupts are given from external interrupt pins as INT0, INT1.
d) False, when interrupts occurs the global interrupt enable bit sets to zero. Before any interrupt comes it must be set to 1 by the programmer but as interrupt comes it sets to zero.
NOTE:- Question for part a may have a figure/picture to answer in which a circuit has been drawn.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.