Question: 2. C code and simulation for Digital Output (25 Points) 3. C code and simulation for Digital Input (25 Points) a. Write C code to

2. C code and simulation for Digital Output (25 Points) 3. C code and simulation for Digital Input (25 Points) a. Write C code to show letter "L" on all 7-segments. a. Write code for PIC 16F877A using C language to light PORTD bits DO, D3 and D7 if button PORTB bit3 is pressed. When button released all LEDs should turn off Each code line should be explained using comments (10p) Each code line should be explained using comments (25 p) b. Simulate the code using PICSimLab and paste screenshot (2.5p) c. Update the code to show letter U on Dispi and Disp4. Each code line should be explained using comments (10p) d. Simulate the code using PICSimLab and paste screenshot(2.5p) 2. C code and simulation for Digital Output (25 Points) 3. C code and simulation for Digital Input (25 Points) a. Write C code to show letter "L" on all 7-segments. a. Write code for PIC 16F877A using C language to light PORTD bits DO, D3 and D7 if button PORTB bit3 is pressed. When button released all LEDs should turn off Each code line should be explained using comments (10p) Each code line should be explained using comments (25 p) b. Simulate the code using PICSimLab and paste screenshot (2.5p) c. Update the code to show letter U on Dispi and Disp4. Each code line should be explained using comments (10p) d. Simulate the code using PICSimLab and paste screenshot(2.5p)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
