MICROPROCESSOR AND MICROCONTROLLER

PIC MICROCONTROLLER

ARCHITECTURE OF 8085

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
SUBWF 20h, 1 will store the result in ____ register
A
W Reg
B
File Register 01h
C
File Register 20h
D
File Reg
Explanation: 

Detailed explanation-1: -MOVWF instruction is used to move the data (bits) from W register to flag register F (copy/move the value from W register to F register).

Detailed explanation-2: -Bits RP1 and RP0 (Register Page 1 and Register Page 0 respectively) serve as the upper 2 address bits for instructions which directly address the iRAM locations. This makes bit RP1 a 0 while making bit RP0 a 1, which gives us the leading “01” in TRISA’s address.

Detailed explanation-3: -File register is RAM portion of PIC18F microcontrollers and used by programmers as data pad or scratch pad. File Register is divided into two different portions . SFR and GPR. SFR is used for dedicated function only while GPR is used for general purpose data or any data.

Detailed explanation-4: -A register is a place inside the PIC that can be written to, read from or both. Think of a register as a piece of paper where you can look at and write information on. The figure below shows the register file map inside the PIC16F84.

There is 1 question to complete.