SlideShare una empresa de Scribd logo
1 de 20
CMP 3006
Embedded Systems Programming
Course Overview
What is an embedded system?
• Computing systems are everywhere
• Most of us think of “desktop” computers
• PC’s
• Laptops
• Mainframes
• Servers
• But there’s another type of computing system
• Far more common...
• Embedded systems are designed to do some specific task, rather than
be a general-purpose computer for multiple tasks
What is an embedded system?
• An embedded system is a controller with a program
• Hardware+Software
• What makes a microcontroller:
– Self Contained
• CPU
• Memory
• I/O
– Application or Task Specific
• Not a general-purpose computer
• Appropriately scaled for the job
Designing Embedded Systems
• Microcontrollers
– Don’t have keyboard and monitor jacks
– Must use ports to perform I/O
• Inputs – to sense things
• Outputs – to control things
• Related Component Topics
– Common Interfaces
– Part Packages
Peripherals
• Serial Communication Interfaces (SCI): RS-232, RS-422, RS-485, etc.
• Synchronous Serial Communication Interface: I2C, SPI, SSC and ESSI
• Universal Serial Bus (USB)
• Multi Media Cards (SD cards, Compact Flash, etc.)
• Networks: Ethernet, LoRa, etc.
• Fieldbuses: CAN-Bus, LIN-Bus, PROFIBUS, etc.
• Timers: PLL(s), Capture/Compare and Time Processing Units
• Discrete IO: aka General Purpose Input/output (GPIO)
• Analog to Digital/Digital to Analog (ADC/DAC)
• Debugging: JTAG, ISP, ICSP, BDM Port, BITP, and DB9 ports.
Characteristics of an Embedded System
• Single-functioned
• Tightly constrained
• Reactive and Real time
• Microprocessors based
• Memory
• Connected
• HW-SW systems
Characteristics of an Embedded System
• Advantages
• Easily Customizable
• Low power consumption
• Low cost
• Enhanced performance
• Disadvantages
• High development effort
• Larger time to market
Basic Structure of an Embedded System
• Sensor
• A-D Converter
• Processor
• D-A Converter
• Actuator
Which microprocessor to use in an embedded
system?
• Embedded systems usually perform much simpler tasks than a
desktop PC and hence contain only simple microcontrollers as their
CPU.
• Note the price difference between an Intel Core 2 Duo processor
worth 100s of dollars vs. A 8051 or MSP430 worth less than $1!
Which microprocessor to use in an embedded
system?
• Microprocessors or microcontrollers only accept instructions in
‘machine code’ (‘object code’). Any software, written in whether
assembly, C, C++, Java or Ada must ultimately be translated into
machine code
• Embedded processors – like the AVR, 8051 microcontroller – have
limited processor power and very limited memory available: the
language used must be efficient
• To program embedded systems, we need low-level access to the
hardware: this means, at least, being able to read from and write to
particular memory locations (using ‘pointers’ or an equivalent
mechanism).
Which operating system to use in an
embedded system?
• In a desktop PCs we have multiple programs running,and the
operating system provides the ‘common code’ (for printing, file
storage, graphics, and so forth) that is required by this set of
programs.
• Most embedded systems are required to run only a single program
which starts running when the microcontroller is powered up, and
will stop running when the power is removed.
• As a consequence, the simplest architecture in an embedded system
is typically a form of ‘Super Loop’
Super Loop
How do we develop embedded software?
• Compiling, linking and executing a program on a desktop PC is
straightforward.
• Embedded devices do not have sufficient memory resources to allow
them to be used for compiling programs, and they will not support a
keyboard or graphics display.
• Hence, we need to cross-compile the code on a desktop PC,
generating machine code that is compatible with the target
embedded processor, and after testing the code on a simulator, we
transfer it to the target microcontroller.
How do we develop embedded software?
• We are going to use AVR (Atmel Chips)
Arduino Uno
General Comments About the Course
• Prerequisites
• Computer Organization
• A working knowledge of C/C++ programming
• (or willingness/time to pick it up quickly!)
• Basic Electric Circuits (Resistor, Capacitor, Transistor, etc.)
• Simulator
• https://www.tinkercad.com
Topics Covered
• Hardware Fundamentals & Computer Architecture Review
• Interrupts and Timers
• ADC&DAC applications
• Communication: Serial RS232, SPI, I2C, CAN
Grading Policy
• Midterm 30%
• Quizes+Lab 15%
• Popup quizes
• Project 20%
• report and working demo
• Final 35%

Más contenido relacionado

Similar a Lecture 1 Introduction.pptx

A walk through the computer system
A walk through the computer systemA walk through the computer system
A walk through the computer systemfaiqikhan
 
EMBEDDED SYSTEMS
EMBEDDED SYSTEMSEMBEDDED SYSTEMS
EMBEDDED SYSTEMSkarthikas82
 
39245175 intro-es-ii
39245175 intro-es-ii39245175 intro-es-ii
39245175 intro-es-iiEmbeddedbvp
 
Embedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxEmbedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxlematadese670
 
Lecture on Embedded System, introduction, types
Lecture on Embedded System, introduction, typesLecture on Embedded System, introduction, types
Lecture on Embedded System, introduction, typesalijaker017
 
Embedded Systems - Training ppt
Embedded Systems - Training pptEmbedded Systems - Training ppt
Embedded Systems - Training pptNishant Kayal
 
Embedded system architecture.pptx
Embedded system architecture.pptxEmbedded system architecture.pptx
Embedded system architecture.pptxAltafKaroshi
 
Basics of micro controllers for biginners
Basics of  micro controllers for biginnersBasics of  micro controllers for biginners
Basics of micro controllers for biginnersGerwin Makanyanga
 
Mces MOD 1.pptx
Mces MOD 1.pptxMces MOD 1.pptx
Mces MOD 1.pptxRadhaC10
 
01 introduction zhu
01 introduction zhu01 introduction zhu
01 introduction zhuc09271
 
1334420 634648164164717500
1334420 6346481641647175001334420 634648164164717500
1334420 634648164164717500sumit tiwari
 
Embedded Systems: Lecture 2: Introduction to Embedded Systems
Embedded Systems: Lecture 2: Introduction to Embedded SystemsEmbedded Systems: Lecture 2: Introduction to Embedded Systems
Embedded Systems: Lecture 2: Introduction to Embedded SystemsAhmed El-Arabawy
 
KL1034 Lect1 Computer assembly.pdf
KL1034 Lect1 Computer assembly.pdfKL1034 Lect1 Computer assembly.pdf
KL1034 Lect1 Computer assembly.pdfSysteDesig
 
embeddedsystems-100429081552-phpapp01.pdf
embeddedsystems-100429081552-phpapp01.pdfembeddedsystems-100429081552-phpapp01.pdf
embeddedsystems-100429081552-phpapp01.pdfAshwin180668
 
Summer training embedded system and its scope
Summer training  embedded system and its scopeSummer training  embedded system and its scope
Summer training embedded system and its scopeArshit Rai
 
Summer training embedded system and its scope
Summer training  embedded system and its scopeSummer training  embedded system and its scope
Summer training embedded system and its scopeArshit Rai
 

Similar a Lecture 1 Introduction.pptx (20)

A walk through the computer system
A walk through the computer systemA walk through the computer system
A walk through the computer system
 
PILOT Session for Embedded Systems
PILOT Session for Embedded Systems PILOT Session for Embedded Systems
PILOT Session for Embedded Systems
 
EMBEDDED SYSTEMS
EMBEDDED SYSTEMSEMBEDDED SYSTEMS
EMBEDDED SYSTEMS
 
Chap 1 CA.pptx
Chap 1 CA.pptxChap 1 CA.pptx
Chap 1 CA.pptx
 
39245175 intro-es-ii
39245175 intro-es-ii39245175 intro-es-ii
39245175 intro-es-ii
 
Embedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxEmbedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptx
 
Lecture on Embedded System, introduction, types
Lecture on Embedded System, introduction, typesLecture on Embedded System, introduction, types
Lecture on Embedded System, introduction, types
 
Embedded Systems - Training ppt
Embedded Systems - Training pptEmbedded Systems - Training ppt
Embedded Systems - Training ppt
 
Embedded system architecture.pptx
Embedded system architecture.pptxEmbedded system architecture.pptx
Embedded system architecture.pptx
 
Basics of micro controllers for biginners
Basics of  micro controllers for biginnersBasics of  micro controllers for biginners
Basics of micro controllers for biginners
 
Mces MOD 1.pptx
Mces MOD 1.pptxMces MOD 1.pptx
Mces MOD 1.pptx
 
01 introduction zhu
01 introduction zhu01 introduction zhu
01 introduction zhu
 
1334420 634648164164717500
1334420 6346481641647175001334420 634648164164717500
1334420 634648164164717500
 
Embedded Systems: Lecture 2: Introduction to Embedded Systems
Embedded Systems: Lecture 2: Introduction to Embedded SystemsEmbedded Systems: Lecture 2: Introduction to Embedded Systems
Embedded Systems: Lecture 2: Introduction to Embedded Systems
 
KL1034 Lect1 Computer assembly.pdf
KL1034 Lect1 Computer assembly.pdfKL1034 Lect1 Computer assembly.pdf
KL1034 Lect1 Computer assembly.pdf
 
embeddedsystems-100429081552-phpapp01.pdf
embeddedsystems-100429081552-phpapp01.pdfembeddedsystems-100429081552-phpapp01.pdf
embeddedsystems-100429081552-phpapp01.pdf
 
Summer training embedded system and its scope
Summer training  embedded system and its scopeSummer training  embedded system and its scope
Summer training embedded system and its scope
 
mechatronics.pdf
mechatronics.pdfmechatronics.pdf
mechatronics.pdf
 
chapter 2 IE.pptx
chapter 2 IE.pptxchapter 2 IE.pptx
chapter 2 IE.pptx
 
Summer training embedded system and its scope
Summer training  embedded system and its scopeSummer training  embedded system and its scope
Summer training embedded system and its scope
 

Último

data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...soginsider
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 

Último (20)

data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 

Lecture 1 Introduction.pptx

  • 1. CMP 3006 Embedded Systems Programming Course Overview
  • 2. What is an embedded system? • Computing systems are everywhere • Most of us think of “desktop” computers • PC’s • Laptops • Mainframes • Servers • But there’s another type of computing system • Far more common... • Embedded systems are designed to do some specific task, rather than be a general-purpose computer for multiple tasks
  • 3.
  • 4. What is an embedded system? • An embedded system is a controller with a program • Hardware+Software • What makes a microcontroller: – Self Contained • CPU • Memory • I/O – Application or Task Specific • Not a general-purpose computer • Appropriately scaled for the job
  • 5. Designing Embedded Systems • Microcontrollers – Don’t have keyboard and monitor jacks – Must use ports to perform I/O • Inputs – to sense things • Outputs – to control things • Related Component Topics – Common Interfaces – Part Packages
  • 6. Peripherals • Serial Communication Interfaces (SCI): RS-232, RS-422, RS-485, etc. • Synchronous Serial Communication Interface: I2C, SPI, SSC and ESSI • Universal Serial Bus (USB) • Multi Media Cards (SD cards, Compact Flash, etc.) • Networks: Ethernet, LoRa, etc. • Fieldbuses: CAN-Bus, LIN-Bus, PROFIBUS, etc. • Timers: PLL(s), Capture/Compare and Time Processing Units • Discrete IO: aka General Purpose Input/output (GPIO) • Analog to Digital/Digital to Analog (ADC/DAC) • Debugging: JTAG, ISP, ICSP, BDM Port, BITP, and DB9 ports.
  • 7. Characteristics of an Embedded System • Single-functioned • Tightly constrained • Reactive and Real time • Microprocessors based • Memory • Connected • HW-SW systems
  • 8. Characteristics of an Embedded System • Advantages • Easily Customizable • Low power consumption • Low cost • Enhanced performance • Disadvantages • High development effort • Larger time to market
  • 9. Basic Structure of an Embedded System • Sensor • A-D Converter • Processor • D-A Converter • Actuator
  • 10. Which microprocessor to use in an embedded system? • Embedded systems usually perform much simpler tasks than a desktop PC and hence contain only simple microcontrollers as their CPU. • Note the price difference between an Intel Core 2 Duo processor worth 100s of dollars vs. A 8051 or MSP430 worth less than $1!
  • 11. Which microprocessor to use in an embedded system? • Microprocessors or microcontrollers only accept instructions in ‘machine code’ (‘object code’). Any software, written in whether assembly, C, C++, Java or Ada must ultimately be translated into machine code • Embedded processors – like the AVR, 8051 microcontroller – have limited processor power and very limited memory available: the language used must be efficient • To program embedded systems, we need low-level access to the hardware: this means, at least, being able to read from and write to particular memory locations (using ‘pointers’ or an equivalent mechanism).
  • 12. Which operating system to use in an embedded system? • In a desktop PCs we have multiple programs running,and the operating system provides the ‘common code’ (for printing, file storage, graphics, and so forth) that is required by this set of programs. • Most embedded systems are required to run only a single program which starts running when the microcontroller is powered up, and will stop running when the power is removed. • As a consequence, the simplest architecture in an embedded system is typically a form of ‘Super Loop’
  • 14. How do we develop embedded software? • Compiling, linking and executing a program on a desktop PC is straightforward. • Embedded devices do not have sufficient memory resources to allow them to be used for compiling programs, and they will not support a keyboard or graphics display. • Hence, we need to cross-compile the code on a desktop PC, generating machine code that is compatible with the target embedded processor, and after testing the code on a simulator, we transfer it to the target microcontroller.
  • 15. How do we develop embedded software? • We are going to use AVR (Atmel Chips)
  • 16.
  • 18. General Comments About the Course • Prerequisites • Computer Organization • A working knowledge of C/C++ programming • (or willingness/time to pick it up quickly!) • Basic Electric Circuits (Resistor, Capacitor, Transistor, etc.) • Simulator • https://www.tinkercad.com
  • 19. Topics Covered • Hardware Fundamentals & Computer Architecture Review • Interrupts and Timers • ADC&DAC applications • Communication: Serial RS232, SPI, I2C, CAN
  • 20. Grading Policy • Midterm 30% • Quizes+Lab 15% • Popup quizes • Project 20% • report and working demo • Final 35%