Microcontrollers - Chapter 01
Microcontrollers - Chapter 01
Al-AZHAR UNIVERSITY
Microcontrollers:
Programming and Applications
(ITME 4336 )
Chapter 1
Introduction to Embedded System
• An embedded system:
• Embedded software.
– software running on embedded processors:
• Real-time operating system (such as android, IOS, Raspian)
• Application programs.
• Peripheral ’ s drivers.
• High flexibility.
Alazhar University Dr. Mohammad Aqel 9
GAZA First Semester 2022/2023
Application-specific processors (ASIPs)
• Programmable devices optimized for a
particular application or family of applications
having common characteristics.
• FPGAs.
• Main characteristics:
– Storage permanence: ability of memory to hold stored bits after they are
written.
– Write speed ability.
• ROM, PROM:
– Once data has been written onto a ROM it cannot be removed
and can only be read (mask programmed: data are written
during fabrication).
– Never loses its data.
– PROM is a variation of ROM manufactured as blank memory on
which data can be written with a special device (programmer).
• EEPROM , Flash:
– EEPROM is a special type of PROM that can be erased by exposing it
to an electrical charge.
– Retains its contents even when the power is turned off.
– Processor can write to memory, but slower than RAM.
– The principal difference between EEPROM and Flash is that EEPROM
requires data to be written or erased one byte at a time whereas Flash
allows data to be written or erased in blocks (faster).
• NVRAM:
– Retains contents when power is turned off. It is an SRAM that is made
non-volatile through a connection with a power source (battery).
– Often it is a combination of SRAM and EEPROM.
• Connectivity schemes:
– Serial communication (USB, RS232 etc.): use single wire, high throughput for
long distance communication, low cost).
– Parallel communication (PCI, etc.): use multiple wires, high throughput for short
distance communication, high cost).
– Wireless communication (Infrared, RF).
• Sensors
Capture physical stimulus (heat, light,
sound, pressure, magnetism,
mechanical motion) and generate a
proportional electrical current.
– Examples: car sensors (rain sensors
for wiper control, proximity sensors),
pressure sensors (touch pads and
screens), audio sensors, motion
sensors, thermal sensors, etc.
• Actuators
Convert a command to a physical
stimulus (heat, light, sound,
pressure, magnetism, mechanical
motion).
Alazhar University Dr. Mohammad Aqel 20
GAZA First Semester 2022/2023
Embedded applications
• Automotive electronics (airbag control, ABS,
consumption control etc.).
• Robotics (electro-mechanical
Alazhar University
systems).
Dr. Mohammad Aqel 21
GAZA First Semester 2022/2023
Constraints of embedded applications
• Reactivity requirement.
• Timing constraints.
• Cost constraints.
• Reliability constraints.
• Time-to-market constraints.
Alazhar University Dr. Mohammad Aqel 22
GAZA First Semester 2022/2023
Reactivity and timing constraints
• Reactivity requirement:
– embedded systems are in continual interaction with its physical
environment through sensors and actuators.
• Timing constraints:
– embedded systems have to perform in real- time which means that if data
is not ready by a certain deadline (i.e. reaction of the system within a
certain time interval dictated by the environment), the system fails.
– Most embedded systems are real-time and most real- time systems are
embedded.