Question: Write an assembly program to perform the following: If sw1(PD0) =A1 If sw2(PD1) =A2 If sw3(PD2) =A3 If sw4(PD3) =A4 If sw5(PD4) =A5 If sw6(PD5)

Write an assembly program to perform the following:

If sw1(PD0) =A1

If sw2(PD1) =A2

If sw3(PD2) =A3

If sw4(PD3) =A4

If sw5(PD4) =A5

If sw6(PD5) =A6

If sw7(PD6) =A7

If sw8(PD7) =A8

===> The output of (PORTB) equal (A8' A7' A6' A5' A4 A3 A2 A1)

Where: Ax equals 0 or 1.

x=1 to 8

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!