Quiz


Page 16
INDEX

Try this quiz before reading the course and compare your score with an attempt after the course. 

See if you get 100%:

QUESTIONS:
1. What does PIC stand for?

Peripheral Interface Chip
Programmable Interface Code
Peripheral Instruction Chip
Programmable Interface Chip

2. At 4MHz (clock frequency) how long does one instruction take to execute for a 
   PIC12C508A or PIC16F84 chip?

4uS
1uS
0.25uS
25uS

3. Name the bit being tested:
            BTFSC 6,3

bit 6
bit 3


4. What does the following instruction mean:
        BTFSS

Byte Test F Skip if Set
Byte Test F Skip and Save
Bit Test F Skip if Set
Bit Test F Skip and Save


5. File 1Ch holds the value 40h. After BSF 1C,2 it will hold:

42h
44h
Unknown value


6. The following 3 instructions are executed. What is the value in file 1C?
         MOVLW 00
         MOVWF 1Ch
         DECFSZ 1Ch,1

00
FF
unknown value


7. Name the file being tested:
        BTFSS 6,4

file 6
file 4

8. What does RRF mean:

Rotate Right Forward
Rotate Right Fast
Rotate Right File
Rotate Right Frame


9. File 1A holds the value CB.  After BCF 1A,1 it will contain:

CA
C9
not enough information


10. What is the value in file 1C after the following instructions have been executed:
          CLRF 1Ch
          DECFSZ 1Ch,1

zero
unknown
01
FF

11. Describe the following instruction:
           MOVLW 06
           
Put 06 into file 06
Put 06 into W
Put file 06 into W
Put 06 into file L

12. The instructions to place a value into file 1A are:

MOVLW 1A
     MOVWF 1A

MOVLW 06
     MOVWF 06

MOVLW 40h
     MOVF 1A

MOVLW 1A
     MOVWF 40h

13. The following program is executed. What value is contained in file 1E:
       MOVLW 1A
       MOVLW 6C
       MOVWF 1C
       MOVWF 1D
       MOVWF 1E

6C
1A
unknown

14. The instruction to read a value on an input line is:

MOVWF 06,1
BTFSS 06,1
IORWF 06,1
INCF 06,1


15. The instruction to output a value is:

BSF 06,1
BTF 06,1
MOVF 06,1


16. The following instructions are executed. What is the value in file 1C when entering
           Main:

    Del1             DECFSZ 1C,1
                        GOTO Del1
                        GOTO Main

   Main

file 1C = 00
file 1C = FF
File 1C = unknown


17. A file contains the value 3A after SWAPF. The file will contain:

A3
3A
3F
F3


18. File 1C holds the value 40h.  The instructions to output the value in 1C are:

MOVF 1C,0
     MOVWF 06

MOVF 1C,1
     MOVWF 06


19. A simple delay is produced by the following instructions:

           DECFSZ 1C,1
      Del1   NOP
                NOP
                NOP
                GOTO Del 1 

Del1    NOP
                NOP
                NOP
                DECFSZ 1C,1
                NOP
                GOTO Del 1 

  Del1   DECFSZ 1C,1               
                GOTO Del 1 

Del1    DECFSZ 1C,0
                NOP
                NOP
                NOP
                GOTO Del 1 


20. A push button is connected to RB3. The instruction to detect the button is:

       

BTFSS 06,3
BSF 06,3
BTFSS 03,6
BSF 03,6


 

NEXT