Question: Suppose that a switch is connected to RC1 and 8 LEDS are connected to PORTB. Write an assembly code that monitors RC1. If RC1

Suppose that a switch is connected to RC1 and 8 LEDS are 

Suppose that a switch is connected to RC1 and 8 LEDS are connected to PORTB. Write an assembly code that monitors RC1. If RC1 is set, it turns on the first four LEDS and turns off second four LEDS. if RC1 is cleared, it does the opposite (turns on the second four LEDS and turns off first four LEDS). first LEDS are LEDS connected to pins 0,1,2,3 of PORTB second LEDS are LEDS connected to pins 4,5,6,7 of PORTB

Step by Step Solution

3.34 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

include void delayint value int ij fori0i valuei forj0j 5j void main int count0 while1 Pattern one l... View full answer

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!