Question: Write instruction to configure PORTE bit 1 , 2 and 6 as inputs and PORTE bit 0 , 3 , 4 , 5 and 7

Write instruction to configure PORTE bit 1,2 and 6 as inputs and PORTE bit 0,
3,4,5 and 7 as outputs. [2 marks]
(b) Which registers are involved in the configuration of bidirectional input/output pin
for PORTA and PORTC? [1 mark]
(c) Write an instruction sequence to configure INT1 as low priority interrupt and INT3
as high priority interrupt. [5 marks]
(d) Write instruction sequence to monitor bit 2 and bit 3 at PORTC. When both bit
are HIGH, toggle odd bit at PORTF. When both bit are LOW, complement the
PORTD. Otherwise, when one bit HIGH and one bit LOW, send value 0xFF to
both port; PORTF and PORTD.

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 Electrical Engineering Questions!