EE-300 Lecture-1 (Embedded)
EE-300 Lecture-1 (Embedded)
(Lecture-1)
Dr. Imran Javed
• Main components:
1. Hardware (may be microprocessor or microcontroller)
2. Application Software
3. Real Time Operating System (RTOS)
• A microcontroller has a
processor and many
peripherals integrated with it
on the same chip like flash
memory, RAM, I/O ports,
serial communication ports,
ADC, etc.
Serial ports
• A serial I/O port to allow data to flow between the MCU and other
devices such as a PC or another MCU
Timers/counters
• These allow the MCU to perform tasks for certain time periods
• The timers and counters provide all timing and counting functions
inside the microcontroller like clock functions, pulse generations and
counting external pulses, etc.
4/5/2021 EE UET Lahore (Narowal Campus) 9
Microcontroller Structure (4)
Analog to Digital Converter (ADC)
• ADC converters are used for converting the analog signal (e.g. sensor output) to
digital form.
• The digital output can be used for various digital applications (e.g. measurement
devices)
Digital to Analog Converter (DAC)
• DAC perform reversal operation of ADC conversion.
• DAC converts the digital signal into analog format.
• It usually used for controlling analog devices like DC motors, various drives, etc.
Interrupt control
• The interrupt control used for providing interrupt (delay) for a working program.
• The interrupt may be external (activated by using interrupt pin) or internal (by using
interrupt instruction during programming).
• Assignment
• Compare above families of microcontrollers with architectural
block diagram of each, their salient features, IDE software and
related description/explanation, etc.
For simulation—Proteus
• Import the HEX file (circuit schematic) into Proteus and run to verify the
output (without using actual hardware)
Debugger
• The capability to examine and modify the microcontroller's on-chip
registers, data- and
• program-memory.
• Pausing or stopping program executing at defined program locations by
setting breakpoints.
• Single-stepping (execute one instruction at a time) through the code; and
looking at a history of executed code (trace).
4/5/2021 EE UET Lahore (Narowal Campus) 16
Software Development (4)