PIC MICROCONTROLLER
ARCHITECTURE OF 8085
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
JMP
|
|
CALL
|
|
GOTO
|
|
RET
|
Detailed explanation-1: -PIC18 instructions like DECFSZ and conditional branch instructions can be used to write loops in PIC assembly language.
Detailed explanation-2: -GOTO instruction is a long jump that can jump to any memory address of the 2M code space of PIC18 microcontroller. Target address i.e. the new 21-bit value of PC where the code jumps, is 2k . Note: PC points to the next instruction (after the conditional branch) while calculating the target address.
Detailed explanation-3: -Goto is a unconditional branch. On PIC16 goto can only access memory in the same page and modifies the program counter. On PIC18 goto can access all memory and modifies the program counter but takes twice the space as a bra. Bra is a relative branch meaning it jumps relative to where the program counter is at.
Detailed explanation-4: -Goto (goto, GOTO, GO TO, GoTo, or other case combinations, depending on the programming language) is a statement found in many computer programming languages. It performs a one-way transfer of control to another line of code; in contrast a function call normally returns control.