PIC TEST-1


Page 3
INDEX

Give yourself the marks shown for each question. This is a self-scoring test. 

TEST:

1. What does BTFSS 06,3 mean?  (1 mark) 
Mouseover for answer

2. What does the word "literal" mean?  (1 mark) 
Mouseover for answer

3. Name the input/output file for a PIC12C508A:  (1 mark) 
Mouseover for answer

4. How many output lines does a PIC12C508A have?  (1 mark) 
Mouseover for answer

5. Name the input/output lines of a PIC12C508A.     (1 mark) 
Mouseover for answer

6. Write the instruction to put 44h into W?  (1 mark) 
Mouseover for answer

7. Write the instruction to move 44h from W to file 1A?  (1 mark) 
Mouseover for answer

8. Name the file that controls the direction of the bits of the input/output file for a PIC12c508A:  
                                                                                                                                    (1 mark) 

Mouseover for answer

9. Write the instructions to make bit 3 of the TRIS file an INPUT (1 mark) 
Mouseover for answer
10. Write the instructions to make bit 3 of the input/output file HIGH (1 mark) 
Mouseover for answer
11. Describe the main difference between: GOTO Tester and CALL Tester. (1 mark) 
Mouseover for answer
12. For any file, what is the maximum hex value it can store? (1 mark) 
Mouseover for answer

13. Describe, in words, the following instruction:  DECFSZ 1A   (1 mark) 
Mouseover for answer

14.  Write the two instructions to carry out the following:  Put 8E into file 1C     (2 marks)
Mouseover for answer
15. Write the 3 instructions to make bit 2 of the input/output port HIGH  (3 marks) 
Mouseover for answer
(Any line of the input/output port (file 06) must be made into an output line before making it HIGH.)

16. Name the line of the input/output port that can only be an INPUT:  (1 mark) 
Mouseover for answer

17. What value will be contained in file 1A after the instruction: BSF 1A,4  (1 mark) 
Mouseover for answer

18. File 1B holds the value 0000 1100.  After the following instruction:  BSF 1B,6  the file will
         contain:     (1 mark) 
Mouseover for answer

19. A LED is connected to the 3rd lowest output of the input/output port of a PIC12C508A. 
     Write the instruction to activate the LED:  (1 mark) 
Mouseover for answer

20. The TRIS file is loaded with 0011 1011. Name the output line(s) created by this value.   (1 mark) 
Mouseover for answer

21. Name the lowest in/out line for a PIC12C508A:      (1 mark) 
Mouseover for answer

22.  Write in words the instruction: BCF 06,0     (1 mark)
Mouseover for answer

23. Name the highest in/out line for a PIC12C508A:    (1 mark)
Mouseover for answer

24. Write the "bit set file" instruction for the 5 output lines for a PIC12C508A:   (1 mark) 
Mouseover for answer

25. What does "bit manipulation" mean?   (1 mark) 
Mouseover for answer
26.  List the twenty files used for creating a program for a PIC12C508A micro:    (1 mark) 
Mouseover for answer
27. What is the difference between:
         MOVLW 02
         MOVWF 1A
and:
         BSF 1A,2    (1 mark) 
Mouseover for answer
28.  Write the TRIS value needed to make GP0, GP3 and GP5 inputs:      (1 mark) 
Mouseover for answer

29. What is a "flag" file? (1 mark) 
Mouseover for answer

30.  What is a Nested Loop?         (1 mark) 
Mouseover for answer


More tests will be available on future pages.   

 

NEXT