Question: Question 1: [12 points] Consider the following program and answer the questions given below: CB: DDRB, 2 LDI 816, 0xEF OUT DORD, R16 AGAIN:SBIS PINB,

 Question 1: [12 points] Consider the following program and answer the
questions given below: CB: DDRB, 2 LDI 816, 0xEF OUT DORD, R16

Question 1: [12 points] Consider the following program and answer the questions given below: CB: DDRB, 2 LDI 816, 0xEF OUT DORD, R16 AGAIN:SBIS PINB, 2 RJMP OVER LDI R16 'Y OUT PORTD, R16 RJMP AGAIN OVER: LDI R16, 'N OUT PORTD, R16 RJMP AGAIN a) Which port pins are used as input and output pins? Be specific. [2 pts] b) What does the above program do? Write briefly [2 pts] c) Rewrite the program using SBIC instruction instead of SBIS. pts) Question 1: [12 points] Consider the following program and answer the questions given below: CB: DDRB, 2 LDI 816, 0xEF OUT DORD, R16 AGAIN:SBIS PINB, 2 RJMP OVER LDI R16 'Y OUT PORTD, R16 RJMP AGAIN OVER: LDI R16, 'N OUT PORTD, R16 RJMP AGAIN a) Which port pins are used as input and output pins? Be specific. [2 pts] b) What does the above program do? Write briefly [2 pts] c) Rewrite the program using SBIC instruction instead of SBIS. pts)

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 Databases Questions!