Question: 6. Student Work Starts Here 1. C code and simulation for Digital Output (25 Points) a. Write C code to light all LEDs on PORTB

6. Student Work Starts Here 1. C code and simulation for Digital Output (25 Points) a. Write C code to light all LEDs on PORTB and turn off all LEDs on PORTD and after 2.5 sec delax to light all LEDs on PORTD and turn off all LEDs on PORTB for 2.5 sec delay. Each code line should be explained using comments (20p) b. Simulate the code using PICSimLab and paste 2 screenshots showing states before and after delay (2.5p each) Hint: you can use infinite loop to see state changes all the time First Screenshot Second Screenshot
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
