ANSWERS (100% CORRECT ANSWERS) /ALREADY GRADED
What are the hardware blocks in a computer? Ans✓✓✓1. CPU (Central
Processing Unit)
2. Memory
3. I/O (Input/Output)
Microprocessor Ans✓✓✓CPU on a single chip (Intel Pentium)
CU (Control Unit) Ans✓✓✓translates instructions and generates signals
to execute an instruction
ALU (Arithmetic Logic Unit) Ans✓✓✓performs arithmetic and logic
operation
Registers Ans✓✓✓TBA
PIC18F Ans✓✓✓-An 8-bit microcontroller (the size of ALU is 8-bit)
-Program memory has 13-bit
-Data memory has 12-bit
That does a program contain? Ans✓✓✓Contains instructions and data
(Addresses identify instructions and data)
, How does a microcontroller obtain the address of the first instruction?
Ans✓✓✓Upon activating the result pin of the CPU
Types of registers on CPU Ans✓✓✓At least 4
1. IR (Instruction Register to hold instruction)
2. PC (Program counter to hold the addresses of the instruction)
3. Accumulator (to hold data)
4. MAR (Memory Address Register to hold address of data)
What is a microcontroller? Ans✓✓✓I/O, memory, CPU, ADC, DAC,
Timers on the same chip
What defines the size of the microcontroller? Ans✓✓✓ALU
How many ways can data be specified in a program? Ans✓✓✓Two
ways
1. As immediate data (considered as part of the instruction)
2. Data can be specified by an address
Harvard Architecture Ans✓✓✓program memory and data (memory on
separate memories)
Von Neumann (Princeton) Ans✓✓✓same memory for instructions and
data (program memory and data memory share the same memory)