Assignment 3-1
Assignment 3-1
2. What is the starting address of the General Purpose Registers in PIC16F84A? (1 Point)
The address for the GPR is 0x0C to 0x4F and 0x8C to 0x8F
3. What is the SFR and what are the addresses of the following SFR: (5 Points)
SFR: SFR stands for Special Function Register. This specific hardware register controls
various functions or that of peripheral modules within the microcontroller. These registers are
memory mapped, meaning they appear at specific addresses in the device memory map.
WREG=0XBB, W=0xBB
MOVWF 0X1C N/A
GPR 0X1C=0X00 GPR 0X1C=0x0BB
6. What are the contents of W and Temp after executing the following program? (12 Points)
W Z DC C STATU W Z DC C
S
MOVLW 0X42 0x42 N/A N/A N/A N/A N/A N/A N/A N/A
MOVWF TEMP 0x42 N/A N/A N/A N/A N/A N/A N/A N/A
MOVLW 0XF0 0xF0 N/A N/A N/A N/A N/A N/A N/A N/A
MOVLW 0X42 0X42 N/A N/A N/A N/A N/A N/A N/A N/A
MOVWF TEMP 0X42 N/A N/A N/A N/A N/A N/A N/A N/A
MOVLW 0XFA 0XF N/A N/A N/A N/A N/A N/A N/A N/A
ADDWF TEMP,0 A
MOVLW 0X42 0X42 N/A N/A N/A N/A N/A N/A N/A N/A
MOVWF TEMP 0X42 N/A N/A N/A N/A N/A N/A N/A N/A