Escolar Documentos
Profissional Documentos
Cultura Documentos
Presented By
Mr.S.Kalimuthu Kumar
Asst. Prof./EEE
2
UNIT I (Design the embedded process for simple
application -CO1)
• Embedded computers, characteristics of embedded computing
1 applications
3
EMBEDDED SYSTEM
Definition: An Embedded System is one that has
computer hardware with software embedded in it as
one of its important components. Its software embeds in
ROM (Read Only
Memory). It does not need
secondary memories as in
a computer
SOFTWARE PROGRAM
HARDWARE #include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4,
3, 2);
void setup()
{
lcd.begin(16, 2);
lcd.print("hello, world!");
}
void loop()
{
lcd.setCursor(0, 1);
lcd.print(millis() / 1000);
}
4
Embedded Computers
output Analog
Input Analog
CPU
Memory
Embedded
computer
5
COMPONENTS OF EMBEDDED SYSTEM
It has Hardware
Processor, Timers, Interrupt controller, I/O Devices, Memories, Ports, etc.
6
EMBEDDED SYSTEM HARDWARE
7
EMBEDDED SYSTEM CONSTRAINTS
An embedded system is software designed to keep in view three
constraints:
Available system memory
When running the system continuously in cycles of wait for events, run, stop and
wakeup.
8
CLASSIFICATIONS OF EMBEDDED SYSTEM
9
PROCESSOR
A Processor is the heart of the Embedded
System.
10
VARIOUS PROCESSOR
1. General Purpose processor (GPP)
Microprocessor
Microcontroller
Embedded Processor(ARM 7, INTEL i960,
AMD 29050.)
Digital signal Processor(TMS320Cxx, SHARC,
Motorola 5600xx)
12
RISC vs. CISC
13
MICROPROCESSOR Vs MICROCONTROLLER
MICROPROCESSOR MICROCONTROLLER
Rapid movements of code and data Rapid movements of code and data
between external memory & MP within MC
It is used for designing general purpose They are used for designing
digital computers system application specific dedicated systems
14
Automotive Embedded systems
15
BMW 850i, brake and stability control system
sensor sensor
brake brake
hydraulic
ABS
pump
brake brake
sensor sensor
16
Embedded system design flow
17
Real Time System
Hard or soft?
18
Arduino board
19
AVR Architecture
Features
28-pin AVR Microcontroller
Flash Program Memory: 32 kbytes
EEPROM Data Memory: 1 kbytes
SRAM Data Memory: 2 kbytes
I/O Pins: 23
Timers: Two 8-bit / One 16-bit
A/D Converter: 10-bit Six Channel
PWM: Six Channels
RTC: Yes with Separate Oscillator
MSSP: SPI and I²C Master and Slave Support
USART: Yes
External Oscillator: up to 20MHz 20
Getting Started
21
Try It: Connect the USB Cable
todbot.com/blog/bionicarduino
Arduino IDE
See: http://arduino.cc/en/Guide/Environment for more information
Select Serial Port and Board
Status Messages
todbot.com/blog/bionicarduino
todbot.com/blog/bionicarduino
Add an External LED to pin 13
www.instructables.com
A Little Bit About Programming
• Code is case sensitive
• Statements are
commands and must end
with a semi-colon
• Comments follow a // or
begin with /* and end
with */
• loop and setup
Our First Program
Terminology
Digital I/0
pinMode(pin, mode)
Sets pin to either INPUT or OUTPUT
digitalRead(pin)
Reads HIGH or LOW from a pin
digitalWrite(pin, value)
Writes HIGH or LOW to a pin
Electronic stuff
Output pins can provide 40 mA of current
Writing HIGH to an input pin installs a 20KΩ pullup
Arduino Timing
• delay(ms)
– Pauses for a few milliseconds
• delayMicroseconds(us)
– Pauses for a few microseconds
• More commands: arduino.cc/en/Reference/HomePage
Digital? Analog?
• Digital has two values: on and off
• Analog has many (infinite) values
• Computers don’t really do analog, they quantize
• Remember the 6 analog input pins---here’s how they work
todbot.com/blog/bionicarduino
Putting It Together
www.ladyada.net/learn/arduino
Arduino IDE
• Serial.begin()
- e.g., Serial.begin(9600)
• Serial.print() or Serial.println()
- e.g., Serial.print(value)
• Serial.read()
• Serial.available()
• Serial.write()
• Serial.parseInt()
35
See: http://arduino.cc/en/Guide/Environment for more information
Default LED Blinking
void setup() {
// put your setup code here, to
run once:
}
void loop() {
// put your main code here, to
run repeatedly:
}
36
In-class Exercise 1: Digital IO
Embedded Inside:
Automotive systems
Airplanes
Toys
Medical Devices
Furniture
Billions of units
38
Example- Car
39
Example- Car
40
Other Example- Car
41
APPLICATIONS
•Household appliances:
Microwave ovens, Television, DVD
Players & Recorders
•Audio players
•Cellular telephones
42
List of the Embedded companies
43
Thank you for your attention ! Any Questions?
44
Feedback form
Contact us:
S.Kalimuthu kumar
(9486090641)- kali.12eee@gmail.com
K.Vijayakumar
(9600893226)-kumark86@gmail.com
https://goo.gl/forms/jsTxRrYTG3NsMwMx2
45