حل امتحانEmbedded Systems مع التوثيق من المحاضرات
Q1: Choose the correct answer (13 - 1 )أسئلة
1. The types of interrupt in MC is are:
اإلجابة: a, b (External and Internal)
"The interrupt may be external (activated by using interrupt pin) or
internal (by using interrupt instruction during programming)."
Interrupt control
embedded 2.pdf
2. PIC 18F452 has the following pins:
اإلجابة: b) 34 I/O and 7 general pins
"PIC18F452 is an 8-bit FLASH-based microcontroller that has 34 I/O
pins out of 40 Pin packages."
PIC18F452 is an 8-bit FLASH-based
embedded 3.pdf
3. Basic functions of a timer:
اإلجابة: d) All of the mentioned
"A timer is primarily a counter which is driven... can be used for timing,
counting, delay generation."
timer is primarily a counter
embedded 2.pdf
4. Von Neumann uses same bus for program and data memory:
اإلجابة: a) true
"Von Neumann Architecture... program and instruction data are stored in
the same memory... share the same bus."
Von Neumann Architecture
embedded 3.pdf
5. Watchdog monitors _______ programs?
اإلجابة: b) Microcontroller
"The watchdog is basically a timer that is refreshed by the user program.
When not refreshed, a reset occurs."
watchdog timer
embedded 2.pdf
6. One of the main differences between Von Neumann and Harvard
architecture:
اإلجابة: a) buses
"Von Neumann: same bus for instructions and data. Harvard: separate
buses."
Harvard Architecture
embedded 3.pdf
7. The ________ instruction optimizes performance by focusing on
software:
اإلجابة: b) RISC
"RISC optimizes performance by focusing on software... CISC focuses
on hardware."
RISC CISC
embedded 3.pdf
8. IC 555 is used for:
اإلجابة: c) Making oscillator
"If use 555 oscillator it connects to OSC1..."
555 oscillator
embedded 3.pdf
9. Defined as: “A microprocessor based system that does not look like a
computer”:
اإلجابة: d) Microcontroller
"Defined as: A microprocessor based system that does not look like a
computer."
does not look like a computer
embedded 1.pdf
10.Characteristics of embedded system:
اإلجابة: c) a, b
"Embedded systems are real-time, low cost, reliable, and have limited
memory."
characteristics of embedded system
embedded 1.pdf
11.As an example of embedded system is/are:
اإلجابة: d) all of the above
"Examples: Arduino, FPGA, Raspberry Pi..."
types of embedded in market
embedded 2.pdf
12.What is the clock source for the timers in microcontroller?
اإلجابة: b) From the crystal applied to the microcontroller
"The oscillator is usually provided by external timing devices like a
crystal..."
crystal
embedded 2.pdf
13.The ________ determines the cause of the interrupt:
اإلجابة: c) Interrupt handler
"Interrupt handler determines the cause and jumps to the ISR."
Interrupt handler
embedded 2.pdf
Q2: Choose the correct answer (20 - 14 )أسئلة
14.A _______ state puts the microcontroller into a state such that the
program starts from address 0:
اإلجابة: d) Reset
"A reset input is used to reset a microcontroller externally. Resetting puts
the microcontroller into a known state such that the program execution starts
from address 0..."
reset input
embedded 2.pdf
15.Types of memory in microcontroller:
اإلجابة: d) All the above
"Memory spaces such as RAM, ROM, EPROM or EEPROM are there
to store data and programs..."
memory
embedded 2.pdf
16.A/an ______ reset the microcontroller if supply voltage falls below
nominal value:
اإلجابة: c) Brown-out Detector
"Brown-out detector... reset the microcontroller if the supply voltage
falls below a nominal value..."
Brown-out
embedded 2.pdf
17.______ is used to eliminate voltage spike in inductive load:
اإلجابة: b) Freewheeling diode
"Free wheeling diode... To create a pass to the current... To avoid spark
on transistor"
free wheeling diode
embedded 3.pdf
18.A/an ______ is designed to perform specific task:
اإلجابة: c) Embedded system
"An embedded system is a special-purpose computer system designed to
perform certain dedicated functions."
designed to perform dedicated function
embedded 1.pdf
19.To use the MC to control DC Motor… we must use ______ between MC
and motor:
اإلجابة: b) Driving circuit
"Driving a motor... Relay... Blocking transistor... Spark of transistor...
driving circuit..."
driving a motor
embedded 3.pdf
20.Which of the following is needed for the motor connection (12V motor):
اإلجابة: d) All of the mentioned
"Use capacitor if AC, transistor to drive, diode for back EMF..."
motor, relay, transistor, diode
embedded 3.pdf
Q3-a: Draw the block diagram of the microcontroller
اإلجابة:
ارسم المكونات التالية:
• CPU
• Memory (RAM, EEPROM, Flash)
• Input/Output Ports
• Timers/Counters
• Interrupt Controller
• Serial Communication Interfaces (USART, SPI, I2C)
"Block Diagram of Microcontroller... includes: Arithmetic and Logic Unit,
Memory, I/O ports, Timers and Counters, Serial Communication, Interrupt
control..."
Block Diagram of Microcontroller
embedded 2.pdf
Q3-b: Draw the circuit to input logic 0/1 on RA0 to RA5
اإلجابة:
6 ارسمpush buttons متصلة بالمنافذRA0 إلىRA5 مع مقاوماتpull-down أوpull-up.
"Input: R1 = 10kΩ..."
"Each port has TRIS register to define input/output"
RA0, pull-up, input
embedded 3.pdf