Sep 25, 2011 #1 PA3040 Advanced Member level 3 Joined Aug 1, 2011 Messages 883 Helped 43 Reputation 88 Reaction score 43 Trophy points 1,308 Activity points 6,936 Code: status equ 0x03 portb equ 0x06 trisb equ 0x86 start goto main main clrwdt call sys_init call led_rotate goto main led_rotate bsf portb,0 loop rlf portb,1 btfss portb,7 goto $-2 rrf portb,1 btfss portb,0 goto $-2 goto loop sys_init bsf status,5 movlw 0x00 movwf trisb bcf status,5 clrf portb return end Dear All above program I written in assembly, rotate from RB7 to RB0 and again RB0 to RB7 and loop forever can I have the same program above In Micro C Language Thanks in advance
Code: status equ 0x03 portb equ 0x06 trisb equ 0x86 start goto main main clrwdt call sys_init call led_rotate goto main led_rotate bsf portb,0 loop rlf portb,1 btfss portb,7 goto $-2 rrf portb,1 btfss portb,0 goto $-2 goto loop sys_init bsf status,5 movlw 0x00 movwf trisb bcf status,5 clrf portb return end Dear All above program I written in assembly, rotate from RB7 to RB0 and again RB0 to RB7 and loop forever can I have the same program above In Micro C Language Thanks in advance
Sep 26, 2011 #2 PA3040 Advanced Member level 3 Joined Aug 1, 2011 Messages 883 Helped 43 Reputation 88 Reaction score 43 Trophy points 1,308 Activity points 6,936 can any one help on this