Sheet 3 Embedded System (CSE 315)
Sheet 3 Embedded System (CSE 315)
Sheet (3)
Chapter 2: PIC ARCHITECTURE & ASSEMBLY LANGUAGE PROGRAMMING
Part I: True or False
1. Assembler directives are not used by the CPU itself. They are simply a guide to the assembler.
2. No value can be moved directly into the WREG register.
3. We have many WREG registers in PIC18.
4. Data RAM in PIC is also called the file register.
5. The larger the file registers, the more difficult it is to manage.
6. No value can be moved directly into general-purpose RAM.
7. Instructions such as “ADD WREG, ROM memory” do not exist in RISC microcontrollers such as the
PIC18.
8. While CISC instructions are of variable sizes, RISC instructions are all the same size.
9. Harvard architecture uses the same address and data buses to fetch both code and data.
10. All members of the PIC18 family have the same size file register.
11. The SFRs are part of the file register memory space.
12. General-purpose RAM is not part of the file register memory space.
13. The more file register space that is assigned to the SFRs, the less is available for the GP RAM.
14. The access bank is 256 bytes divided evenly between GPRs and SFRs.
15. The source file has the extension ".asm".
16. We cannot load literal values into the scratchpad area directly.
17. We can use MOVFF to copy data from any location to any location in the file register.
18. The source code file can be a non-ASCII file.
19. Every source file must have ORG and END directives.
20. The ORG and END directives appear in the ".lst" file.
21. The linker produces the file with the extension ".asm".
22. The linker produces the file with the extension ".hex".
Page 1 of 5
Mansoura University
Faculty of Engineering Embedded Systems (CSE 315)
Communications and Computer Sheet (3)
Engineering (CCE)
4. The largest number that can be loaded into WREG is ---- in hex and decimal equivalent -----
A. 99 - 63 B. 63 - 99 C. FF - 256 D. FFF - 4095
5. To load WREG with the value 65H, the pound sign is --------- in the instruction
"MOVLW #65 H".
A. not necessary B. optional C. necessary D. None of the mentioned
6. The largest number that K can take for the instruction “ADDWL K” is --------- in hex.
A. F B. FF C. FFF D. None of the mentioned
Page 2 of 5
Mansoura University
Faculty of Engineering Embedded Systems (CSE 315)
Communications and Computer Sheet (3)
Engineering (CCE)
11.What is the maximum number of banks that the PIC18 can have?
A. 4 B. 8 C. 16 D. 32
12.If we add the SFR and general-purpose RAM sizes together we should get the total space
for the …….
A. File Register B. ROM C. EEPROM D. All of the mentioned
15.The maximum number of bytes that the PIC18 can have for the file register -------------
A. 1024 B. 2048 C. 4096 D. 8192
16.The file register of PIC 18 in general consists of 16 banks, each of ------------- bytes.
A. 16 B. 64 C. 256 D. None of the mentioned
19.The “ADDWF fileReg, D” instruction to place the result in WREG, the D bit must be ---.
A. 0 B. W C. both A and B D. None of the mentioned
20. The “ADDWF fileReg, D” instruction to place the result in FileReg, the D bit must be -.
A. 1 B. F C. both A and B D. None of the mentioned
Page 3 of 5
Mansoura University
Faculty of Engineering Embedded Systems (CSE 315)
Communications and Computer Sheet (3)
Engineering (CCE)
Page 4 of 5
Mansoura University
Faculty of Engineering Embedded Systems (CSE 315)
Communications and Computer Sheet (3)
Engineering (CCE)
Page 5 of 5