Skip to main content
edited title
Link
pipe
  • 14.6k
  • 5
  • 45
  • 78

In Pic18F4550 microcontroller. I want to make Understanding LED chase from right to left. Here is thechaser code from program which Iam unable tofor PIC18F4550

Lots of rewrite
Source Link
pipe
  • 14.6k
  • 5
  • 45
  • 78

In Pic18F4550 microcontroller. I want to make a LED chasechaser from right to left in PIC18F4550 microcontroller. Here is a section of the code from a program which IamI am unable to understand. Section of code is follows:

LATB=1 less than less than i;
delay(); LATB=0x00; delay(); Que) How this work in chasing from right to left? Que) Why delay is required between them

LATB=1<<i;  
delay();
LATB=0x00;
delay();

can anyone explain me ?

  1. How this work in chasing from right to left?
  2. Why is the delay required?

In Pic18F4550 microcontroller. I want to make LED chase from right to left. Here is the code from program which Iam unable to understand. Section of code is follows

LATB=1 less than less than i;
delay(); LATB=0x00; delay(); Que) How this work in chasing from right to left? Que) Why delay is required between them

can anyone explain me ?

I want to make a LED chaser from right to left in PIC18F4550 microcontroller. Here is a section of the code from a program which I am unable to understand:

LATB=1<<i;  
delay();
LATB=0x00;
delay();
  1. How this work in chasing from right to left?
  2. Why is the delay required?
Source Link
Rajat
  • 1
  • 1
  • 3

In Pic18F4550 microcontroller. I want to make LED chase from right to left. Here is the code from program which Iam unable to

In Pic18F4550 microcontroller. I want to make LED chase from right to left. Here is the code from program which Iam unable to understand. Section of code is follows

LATB=1 less than less than i;
delay(); LATB=0x00; delay(); Que) How this work in chasing from right to left? Que) Why delay is required between them

can anyone explain me ?