#include <16F628.h> #use delay(clock=4000000) #fuses XT,PUT,BROWNOUT,MCLR,NOWDT,NOPROTECT,NOLVP //Describtion: Mov LED Left on PORTB void main(void) { unsigned char B; set_tris_b(0B00000000); //RB is Output B=0B00000001; //Start output while(1) { output_b(B); //Out to PORTB B<<=1; //shift left if(B==0) //if 0 B=0B00000001; //Reload delay_ms(300); } }