kuliah1 2010

Upload: aanwoodz

Post on 06-Apr-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 Kuliah1 2010

    1/37

    Arif Sasongko

    SekolahTeknik Elektro dan Informatika

    InstitutTeknologi Bandung

    EL 5143 Metodologi dan Analisa

    Sistem Embedded

  • 8/3/2019 Kuliah1 2010

    2/37

    Pendahuluan

    EL5143 Metodologi dan Analisa ...2

    y Peserta : ..

    y Dosen : Arif Sasongko

    y Tempat : R. Multimedia, Lab Elektronikay Waktu: 1x perminggu (Senin, 11:00)

    y Bentuk kuliah: Kuliah dengan beberapa

    tugas/proyek kecil

  • 8/3/2019 Kuliah1 2010

    3/37

    Tujuan

    3

    y Mengerti tentang embedded system, klasifikasi,

    issue-issue dalam perancangan embedded system,

    dan komponen pendukung/pembentuknyay Mengenal pengetahuan/skill dasar yang

    dibutuhkan untuk merancang suatu embedded

    system

    EL5143 Metodologi dan Analisa ...

  • 8/3/2019 Kuliah1 2010

    4/37

    Kuliah Embedded System

    4

    y Pendukung:ySystem Engineering

    ySistem Digital

    ySistem MikroprosesoryArsitektur KomputeryPerogramanyElektronika

    y Instrumentasiy.

    EL5143 Metodologi dan Analisa ...

  • 8/3/2019 Kuliah1 2010

    5/37

    Penilaian

    5

    y Proyek/Tugas 4-5 tugas/proyek dengan nilai 60%-70 %

    y Demo

    y Laporan

    y Presentasi

    y Ujian (1x) dengan nilai 20%-30 %

    y Hal-hal lain dengan nilai 10 %

    EL5143 Metodologi dan Analisa ...

  • 8/3/2019 Kuliah1 2010

    6/37

    Proyek/Tugas 2 Tahun Lalu

    6

    y Tugas membuat pseudocode assembler untuk

    persamaan matematika, (2tugas)

    y Implementasi processor sederhana

    y Pemrograman processor(ATMEL)

    y Penggunaan Operating System (eCOS)

    y Proyek besar Token Generator danToken

    Extractor

    EL5143 Metodologi dan Analisa ...

  • 8/3/2019 Kuliah1 2010

    7/37

    Pelaksanaan Kuliah

    7

    y Tugas dilaksanakan perorangan kecuali disebutkan

    lain(default)

    y Dalam hal tugas kelompok, kelompok akan terdiri dari

    dua orang, tetapi masing-masing harus membuat laporandan presentasi, sehingga nilai akan tetap bersifat

    perorangan

    y Kecurangan dalam bentuk apapun akan langsung

    mengakibatkan (minimal) ketidak lulusan

    EL5143 Metodologi dan Analisa ...

  • 8/3/2019 Kuliah1 2010

    8/37

    Embedded systems overview

    y Embedded computing systems

    y Computing systems embedded within

    electronic devices

    y

    Hard to define. Nearly any computing systemother than a desktop computer

    y Billions of units produced yearly, versus

    millions of desktop units

    y Perhaps 50 per household and per automobile

    Computers are inhere...

    and here...

    and even here...

    Lots more of these,though they cost a lotless each.

    8 EL5143 Metodologi dan Analisa ...

  • 8/3/2019 Kuliah1 2010

    9/37

    9

    A short list of embedded systems

    And the list goes on and on

    Anti-lock brakesAuto-focus camerasAutomatic teller machinesAutomatic toll systemsAutomatic transmissionAvionic systemsBattery chargersCamcordersCell phonesCell-phone base stations

    Cordless phonesCruise controlCurbside check-in systemsDigital camerasDisk drivesElectronic card readersElectronic instrumentsElectronic toys/gamesFactory controlFax machinesFingerprint identifiers

    Home security systemsLife-support systemsMedical testing systems

    ModemsMPEG decodersNetwork cardsNetwork switches/routersOn-board navigationPagersPhotocopiersPoint-of-sale systemsPortable video gamesPrinters

    Satellite phonesScannersSmart ovens/dishwashersSpeech recognizersStereo systemsTeleconferencing systemsTelevisionsTemperature controllersTheft tracking systemsTV set-top boxes

    VCRs, DVD players

    Video game consolesVideo phonesWashers and dryers

    EL5143 Metodologi dan Analisa ...

  • 8/3/2019 Kuliah1 2010

    10/37

    10

    Karakteristik

    y FungsiTunggal

    y Executes a single program, repeatedly

    y Tightly-constrained

    y Low cost, low power, small, fast, etc.y Reactive dan real-time

    y Continually reacts to changes in the systems environment

    y Must compute certain results in real-time within limited delay

    EL2195 Metodologi dan Analisa ...

  • 8/3/2019 Kuliah1 2010

    11/37

    11

    Contoh embedded system -- digital

    camera

    Microcontroller

    CCD preprocessor Pixel coprocessorA2D

    D2A

    JPEG codec

    DMA controller

    Memory controller ISA bus interface UART LCD ctrl

    Display ctrl

    Multiplier/Accum

    Digital camera chip

    lens

    CCD

    Fungsi tunggal -- always a digital camera

    Tightly-constrained -- Low cost, low power, small, fast

    Reactive dan real-time -- only to a small extent

    EL2195 Metodologi dan Analisa ...

  • 8/3/2019 Kuliah1 2010

    12/37

    12

    Klasifikasi

    y Kompleksitas: small, medium, sophisticated

    y Implementasi: uProcessor, computer-based, SoC, network

    y Real-time vs Non real-time

    y

    EL2195 Metodologi dan Analisa ...

  • 8/3/2019 Kuliah1 2010

    13/37

    Body ofKnowlegde

    EL2195 Metodologi dan Analisa ...13

  • 8/3/2019 Kuliah1 2010

    14/37

    Struktur Kuliah

    EL2195 Metodologi dan Analisa ...14

  • 8/3/2019 Kuliah1 2010

    15/37

    EL2195 Metodologi dan Analisa ...15

    Struktur Kuliah

  • 8/3/2019 Kuliah1 2010

    16/37

    EL2195 Metodologi dan Analisa ...16

    Struktur Kuliah

  • 8/3/2019 Kuliah1 2010

    17/37

    EL2195 Metodologi dan Analisa ...17

    Struktur Kuliah

  • 8/3/2019 Kuliah1 2010

    18/37

    EL2195 Metodologi dan Analisa ...18

    CHARACTERISTICS

    y Low-end embedded application, 4/8 bit microcontroller,

    very small program

    y

    Cost limitation, scarcity of resourcesSKILL&CHALLENGES

    y Assembly language, Hw/Sw Interaction, Resource

    Optimation

    y Economics scale

    y SISMIK cukup ?

    Small and Single Microcontroller

  • 8/3/2019 Kuliah1 2010

    19/37

    EL2195 Metodologi dan Analisa ...19

    CHARACTERISTICS

    y Used for control feedback

    y Specification is coming from closed loop specification of

    entire system !!y Example: automotive cruise control system

    SKILL&CHALLENGES

    y Model based design dynamics of physical system

    y HIL testing !!

    y Control theory is necessary !!

    Embedded Control System

  • 8/3/2019 Kuliah1 2010

    20/37

    EL2195 Metodologi dan Analisa ...20

    CHARACTERISTICS

    y Multiple CPU connected through real time low bandwidth

    network

    y

    Example: automotive control computingSKILL&CHALLENGES

    y Real-time performance with tight constraint

    y Distributed computing theory, transaction oriented/event

    trigger system

    Distributed Embedded Control

  • 8/3/2019 Kuliah1 2010

    21/37

    EL2195 Metodologi dan Analisa ...21

    CHARACTERISTICS

    y Multi processor, Heterogenous, Aplication Spesific IC design

    y Mass product

    y Example: Cellular phone, Game consoleSKILL&CHALLENGES

    y Heterogeneous

    y Super complex

    y Various skill

    y Codesign (Hw/Sw)

    System on Chip

  • 8/3/2019 Kuliah1 2010

    22/37

    EL2195 Metodologi dan Analisa ...22

    CHARACTERISTICS

    y Bisa PC tapi lambat dan mahal dibanding dedicated pproduct

    y Predictive, high data rate

    y Example: RouterSKILL&CHALLENGES

    y Predictive, high troughput

    y RTOS is necessary

    y Packet processing

    Networking

  • 8/3/2019 Kuliah1 2010

    23/37

    EL2195 Metodologi dan Analisa ...23

    CHARACTERISTICS

    y PC tapi diadaptasi untuk bentuk/keperluan khusus sehingga

    tidak menyerupai PC

    y

    Example: wearable computer, HMDSKILL&CHALLENGES

    y Product design

    y Form factor

    y Safety

    Embedded PC

  • 8/3/2019 Kuliah1 2010

    24/37

    EL2195 Metodologi dan Analisa ...24

    CHARACTERISTICS

    y Bisa PC tapi lambat dan mahal dibanding dedicated pproduct

    y Predictive, high data rate

    y Example: RouterSKILL&CHALLENGES

    y Predictive, high troughput

    y RTOS is necessary

    y Packet processing

    Networking

  • 8/3/2019 Kuliah1 2010

    25/37

    EL2195 Metodologi dan Analisa ...25

    CHARACTERISTICS

    y Menggabungkan traditional safety and mission critical system

    y High safety and high dependability

    y Example: Powerplan control, medical, SKILL&CHALLENGES

    y Safety analysis FEMEA,FTA

    y Very discipline and accountable software development

    Networking

  • 8/3/2019 Kuliah1 2010

    26/37

    EL2195 Metodologi dan Analisa ...26

    CHARACTERISTICS

    SKILL&CHALLENGES

    Robotics

  • 8/3/2019 Kuliah1 2010

    27/37

    EL2195 Metodologi dan Analisa ...27

    CHARACTERISTICS

    SKILL&CHALLENGES

    ComputerPeripherals

  • 8/3/2019 Kuliah1 2010

    28/37

    EL2195 Metodologi dan Analisa ...28

    CHARACTERISTICS

    SKILL&CHALLENGES

    Signal Processing

  • 8/3/2019 Kuliah1 2010

    29/37

    EL2195 Metodologi dan Analisa ...29

    CHARACTERISTICS

    SKILL&CHALLENGES

    Command and Control

  • 8/3/2019 Kuliah1 2010

    30/37

    Skill/pengetahuan yang diperlukan

    Embedded System designer

    EL2195 Metodologi dan Analisa ...30

    y Pengetahuan mengenai arsitektur komputer

    y Pengetahuan mengenai macam-macam hardware dan

    perancangan sistem hardware

    y Operating system: context switch, inter processcommunication,

    y Programming

    y Real-time system

    y Design methodology

    y Aplikasi

    y Economics aspect

  • 8/3/2019 Kuliah1 2010

    31/37

    EL2195 Metodologi dan Analisa ...31

    Design Example

    y Robot Control Unit (RCU)

    of Arvand soccer-playing

    robots

    Bottom View of

    Arvand Robots

    castor wheel

    motion wheels

    Touch

    sensors

    Infra-Red

    Sensors

    steering

    motors

    (not

    shown)

  • 8/3/2019 Kuliah1 2010

    32/37

    EL2195 Metodologi dan Analisa ...32

    Design Example (contd)

    y Things to handle

    y Motors

    y PWM for motion motors

    y DC control for steering

    y Touch sensors

    y Read-in and refresh values

    y Infra-Red sensors

    y Reset, then read them

    y Communication to the main motherboardy RS-232 serial link

    castor wheel

    motion wheels

  • 8/3/2019 Kuliah1 2010

    33/37

    EL2195 Metodologi dan Analisa ...33

    Design Example (contd)y Implementation steps

    1. Choose HW or SW implementation per operation2. Design the analog IO parts3. Design the Printed Circuit Board (PCB)

    1. Pass the PCB files to manufacturing firms4. HW: Develop the FPGA contents

    1. Program the FPGA configuration EEPROM

    5. SW: Develop the 8051 program1. Program the 8051 instruction memory (EEPROM)

    6. Integrate HW, SW, and the PCB7. Test

    1. Limited test in isolation (as far as possible)2. Test in action (on the robot)

  • 8/3/2019 Kuliah1 2010

    34/37

    EL2195 Metodologi dan Analisa ...34

    Design Example (contd)

    Fabrication Test

    Systemdesign PCB test

    SW test

    Time

    TasksTraditional System Design Process

    Simulation

    PCB design

    SW design

    FPGA design

  • 8/3/2019 Kuliah1 2010

    35/37

    EL2195 Metodologi dan Analisa ...35

    Analysisy Development

    y Isolated (SW, HW, Analog electronics)

    y Consistency check: designers

    y

    Debugy Before PCB is availabley Isolated (SW, HW, Analog)

    y After PCB is available1. Remove the EEPROM/8051

    2. Change the configuration/program

    3. Re-insert the EEPROM/8051

    What ifPCB initial design (or analog parts) waswrong?

  • 8/3/2019 Kuliah1 2010

    36/37

    EL2195 Metodologi dan Analisa ...36

    Analysis (contd)

    y Some other problems

    y Tools used

    y Protel, OrCAD for PCB

    y Altera MAX+Plus II for FPGA

    y 8051 command-line compiler and debugger

    y Tool interoperability issues

  • 8/3/2019 Kuliah1 2010

    37/37

    Reference

    EL2195 Metodologi dan Analisa ...37

    y Embedded Systenified Hardware/Software Introduction,

    Frank Vahid & Tony Givargis, John Wiley & Sons, 2002

    y Design for Electrical and Computer Engineers: Theory,

    Concepts, and Practice, Ralph M.Ford & Chris S.

    Coulston,Mc Graw-Hill, 2008

    y Embedded Systems: Architecture, Programming and

    Design, Raj Kamal, Mc Graw-Hill, 2004

    y

    Real-Time Systems Design and Analysis: An EngineersHandbook, Phillip A. Laplante, IEEE press, 1993