Question: The AVR code below (with some information missing) is designed to initialize and service interrupts from three I/O devices (DevA, DevB, and DevC). .include m32U4def.inc

The AVR code below (with some information missing) is designed to initialize and service interrupts from three I/O devices (DevA, DevB, and DevC). .include "m32U4def.inc" .def mpr = r16 START: .org $0000 JMP INIT .org $0002 RJMP ISR_DevA .org $0006 RCALL ISR_DevB (0) RETI .org $0008 RJMP ISR_DevC INIT: ldi mpr, 0b10110000 sts EICRA, mpr ldi mpr, 0b00000000 out EICRB, mpr ldi mpr, (1) out EIMSK, mpr ldi mpr, $00 out DDRD, mpr out DDRE, mpr (2) (3) sei MAIN: rjmp MAIN ISR_DevA: ... (4) (5) RETI ISR_DevB: RETI ISR_DevC: RETI (a) There are 5 external interrupt pins in the Mega32u4. Based on the code provided, which three interrupt pins are these I/O devices connected to and what is the immediate value needed in line 1? (b) Which I/O device's interrupt is triggered by a low level input? (c) Assume that pins 1 and 0 on PORTF are connected to an additional output device (DevD). Fill in lines 2-3 such that the corresponding pins are specified as outputs. Do not configure any other pins on the port as outputs. (d) Suppose DevA requires that no interrupts are detected while it is being serv

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Law Questions!