Based on the output setup shown in Figure-1, write an 8051 assembly language program to continuously turn on 4 LEDs (A, B, C, D) and turn off the remaining 4 LEDs (E, F, G, H) alternately. You may use the subroutine PAUSE in Program Listing-1 as the subroutine delay to write a complete program.
10 marks
vCC 5.0V
R2
R4
R5
37
R8 10k
10kQ
10kQ
10k
10kQ
10kQ
10kQ
P0.0
LED B
P0.1 P0.2 P0.3 MICROCONTROLLER 8051 P0.4 P0.5 P0.6 P0.7
LED E D G LED H
Figure 1