Question: 2. C code and simulation on PICSimLab (25 Points) Each code line should be explained using comments a. Write C code to light bit2&bit7 on

2. C code and simulation on PICSimLab (25 Points) Each code line should be explained using comments a. Write C code to light bit2&bit7 on PORTB and after 1 sec delay to toogle PORTB only for 5 times. (use for loop) (12.5p) b. Update the code to light bit2&BIT3&bito on PORTD and after 3 sec delay light all LEDs of PORTD only for 15 times. (use while loop) (12.5p)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
