Professional Documents
Culture Documents
Lecture 1
CMP 456:
Design of Real-Time Embedded Systems
Prepared by:
Dr. Mohamed Ali Torad
Mohamed.torad@gmail.com
Course Objectives and Outlines
•Credit Hours: 2
•Objectives:
Provide the student with the capability to analyze, design, interface,
program, hardware assembly, integration, and testing of the real-time
embedded systems.
•Description
Introduction to bus architectures and programming; Device and system
firmware; Arduino and I/O architectures; Memory architectures;
Interrupt service routines; Real-time clocks/timers; Real-time debugging
techniques and tools; Development and testing techniques.
CMP 456 Eng. Mohamed Ali Torad 2
Textbook and References
• AND gate
• OR gate
• Inverter
• XOR gate
• NAND gate
• NOR gate
• Half adder
• Full adder
• 4-bit adder
MICROCONTROLLER MICROPROCESSOR
Advantages: Advantages:
1. all components or devices on one chip (embedded system) 1. Very high speed system
Disadvantages: Disadvantages:
2. Mobiles. 2. Mobiles.
4. TV 4. Mainframes.
2. Software developer
• Assembler
• Disassemble
• Simulation (MP lap – protues)
• Emulation (hardware and software)
• Debugger
3. Availability for using and famous
Now we will say that the microcontroller has three types of
range to work of it:
• 1- Low range like: PIC 10Fxxx , PIC 12Fxxx
• 2- Mid range like: PIC 14Fxxx , PIC 16Fxxx & PIC 18Fxxx
• 3- High range like: PIC 32Fxxx , PIC 17Fxxx . PIC 24Fxxx
Low instruction set (35 instruction set) high instruction set (more than 200
instruction set)
HARVARD
ARCHITECTURE VON-NEUMANN
ARCHITECTURE
Data bus and address buses are separated so Data bus and address bus are collected on
we can read the next instruction while the same bus
executing previous instruction
All instructions occupies 1 machine cycle Can’t know exactly the how many byte used
except branch instruction(jump instructions)
High speed Low speed
Microcontroller MFGRs
•AMCC ! •Holtek! •Silabs!
•Atmel! •Infineon! •Silicon Motion!
•Comfile Technology •Intel!
Inc.! •Microchip •STMicroelectronics!
•Coridium! Technology! •Texas Instruments!
•Cypress •National •Toshiba!
MicroSystems! Semiconductor! •Western Design
•Dallas •NEC!
•Parallax, Inc.! Center!
Semiconductor !
•Elba Corp.! •Philips •Ubicom!
•Freescale Semiconductors! •Xemics!
Semiconductor ! •PICAXE! •Xilinx!
•Fujitsu! •Renesas •ZiLOG
Technology!
CMP 456 Eng. Mohamed Ali Torad 19
Why the Arduino?
• Inexpensive!
• Arduino Shields
• GPS! • Accelerometer/Gyros!
• It has onboard six analog input ports (A0–A5). Each pin can operate
at 0–5 V.
• It has onboard 8 analog and 14 digital I/O ports and 6 PWM of 8 bit.
Time-out Sequence
On power-up, the time-out sequence is as follows:
1. The PWRT delay starts (if enabled) when a POR Reset occurs.
2. OST starts counting 1024 oscillator cycles when PWRT ends (LP, XT, HS). When
the OST ends, the device comes out of Reset.
If MCLR is kept low long enough, the time-outs will expire. Bringing MCLR high will
begin execution immediately. This is useful for testing purposes or to synchronize
more than one PIC16F87XA device operating in parallel.
Most of the PIC microcontrollers can operate up to 20MHz. One instructions cycle
(machine cycle) consists of four clock cycles.