Question: Based on the PIC18F Microchip language below. How many times does Loop 2 repeats? ORG 0000H CNT1 EQU 0x30 0x30 isthe location for CNT1 CLRF

Based on the PIC18F Microchip language below. How many times does Loop 2 repeats?

Based on the PIC18F Microchip language below. How many times does Loop

ORG 0000H CNT1 EQU 0x30 0x30 isthe location for CNT1 CLRF TRISB, 1 MOVLW 0x01 MOVWE PORTB MOVLW 0b11001 MOVWF CNT1 :Set to output LOOP1: Put this binary no. into CNT1 LOOP2:RLNCF PORTB, 1, 0 Rotate Left DECF CNT1, 1, 0 BNZ LOOP2 zero BRA LOOP! :Decrement CNT1 Jump to LOOP2 if not Jump to LOOP1 ; End of program END ORG 0000H CNT1 EQU 0x30 0x30 isthe location for CNT1 CLRF TRISB, 1 MOVLW 0x01 MOVWE PORTB MOVLW 0b11001 MOVWF CNT1 :Set to output LOOP1: Put this binary no. into CNT1 LOOP2:RLNCF PORTB, 1, 0 Rotate Left DECF CNT1, 1, 0 BNZ LOOP2 zero BRA LOOP! :Decrement CNT1 Jump to LOOP2 if not Jump to LOOP1 ; End of program END

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 Databases Questions!