Question: Project Name: - ( 1 quad ) LED _ Strobe _ Left Description: - This program turns all LEDs connected to PORTB

Project Name:-\(1\quad \) LED_Strobe_Left
Description:- This program turns all LEDs connected to PORTB in the sequence shown below (i.e.\(\mathrm{RB}0\rightarrow \mathrm{RB}1\rightarrow \mathrm{RB}2\rightarrow \ldots \mathrm{RB}7\)). The sequence continually repeats and there should be a programmable delay (in mSec ) between each LED turning on.
Inputs:- None
Outputs:-8 outputs on PORTB (i.e. RB7\(\rightarrow \) RBO)
Instructions:-
1. Create a programmable delay as a macro:-
E.g.\#define DELAY 100
2. Use the left shift operator (i.e \(\)) to manipulate the bit pattern to turn on the LEDs.
3. Add comments to your code (marks lost for no comments).
4. Ensure all code is properly indented (i.e marks lost for no indentation).
Project Name: - \ ( 1 \ quad \ ) LED _ Strobe _

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!