Thank you Mr.Brian, the information is very much valuable for me. I tried your code It did not work the way we were discussing. I found one from the Book 'PIC BASIC PROJECTS' of Mr.DOGAN IBRAHIM, and its woking fine the code is as follows
DIM Cnt as Byte
Main:
TRISB = 0
PORTB =0
INIT:
Cnt = 1
LOOP:
PORTB = Cnt
Delay_ms(1000)
If Cnt = 128 then
GOTO INIT
Else Cnt = Cnt*2
End if
GOTO LOOP
End.
Thanks again Mr.Brian and my other friends to spend your valuable time for me.
We will meet again in this forum, till then Good Bye!!!
Thanks & Best regards
S.Vijayan,Muscat