EL 3014 Sistem Mikroprosesor Tahun ajaran 2013-2014 semester 2
Silabus Arsitektur Mikroprosesor Antarmuka (interfacing) CPU Bus mikroprosesor Memori: RAM, ROM, EEPROM I/O dekoder alamat Antarmuka (interfacing) Periferal: ADC, DAC, timer , counter, komunikasi serial Perancangan sistem mikroprosesor Hardware sistem mikroprosesor pemrograman bahasa assembler & C
Referensi Dhananjay V Gadre, Programming & Customizing The AVR Microcontroller , McGraw Hill 2001 Steven F Barrett, Atmel AVR Microcontroller Primer: Programming and Interfacing, Morgan & Claypool 2008 ___, Newbies guide to AVR development, http://avrfreaks.net Datasheet ATMega8535 Datasheet set instruksi AVR “doc0856.pdf” Datasheet komponen & sensor terkait
Bentuk Kuliah Tatap muka di kelas + tugas kecil Praktikum di Lab Tugas Project Mandiri Penilaian Kuliah UTS UAS Project Tugas Kuliah
Kaitan dengan kuliah lain Prasyarat EL3014 Sistem digital Bahasa pemrograman (bahasa C) Elektronika Arsitektur Sistem Komputer Lanjutan setelah EL3014 Perancangan Sistem Embedded EL3046 : RTOS, Teknik Design: DFD, State Chart, Unit testing
Komputer dalam persepsi umum
Bentuk Fisik Mikrokontroler
Microcontroller Development Board Banyak yang menjual modul mikrokontroller yang sudah jadi tinggal diprogram untuk mempermudah & mempercepat Sumber: AVRFreaks.net Sumber: http://www.avrfreaks.net/index.php?module=Freaks%20Tools&func=viewItem&item_id=1053
Macam-macam implementasi sistem digital Relay Transistor diskrit Rangkaian Logika (gerbang AND,OR,Flip flop, dsb) Rangkaian digital, dengan Register Transfer Level (RTL) -> VHDL, Verilog. Hardware dengan FPGA/ASIC (kuliah sistem digital, perancangan ASIC) PLD Application Specific IC Mikroprosesor + Software
Macam-macam Sistem Digital Hardware Transistor Gate Register Transfer Language Software Machine code Assembler High level (C, C++, Java)
Arsitektur Sistem Mikroprosesor Komponen utama sistem mikroprosesor CPU Memori I/O Bus Jenis Arsitektur Harvard Von Neumann
Kategori Komputer Superkomputer Mainframe Mikroprosesor Mikrokontroler DSP (Digital Signal Processor)
Macam-macam memori Static RAM (Flip Flop) Dynamic RAM (kapasitor) ROM (diprogram di pabrik) PROM / OTP(diprogram 1x oleh user) EPROM (bisa dihapus pakai sinar UV melalui ‘jendela’ khusus) EEPROM (bisa dihapus pakai tegangan) Flash
EPROM http://en.wikipedia.org/wiki/Eprom
Arsitektur Komputer Dijelaskan lebih jauh di kuliah arsikom
Arsitektur Sistem Mikroprosesor Sederhana
CPU Sederhana
CPU mikrokontroler AVR
Memori SRAM tipe 6264
Arsitektur AVR Diambil dari datasheet ATMEGA8535
Arsitektur MCS-51 Diambil dari architectural_overview.pdf
Register View of a Simple P aka “Von Neumann” or “Princeton” architecture
Register View of a Simple P with Isolated I/O space Most microprocessors do NOT have isolated I/O. The Intel x86 microprocessors do.
Register View of a Simple P with Separate Code and Data Memories aka “Harvard” architecture
Endian-ness Byte Ordering for Little Endian vs. Big Endian Big Endian Most Significant Byte (MSB) Least Significant Byte (LSB) Example: int x = 0x1234; Big-endian 12 34 Motorola, SPARC (big end in first byte) Little-endian 34 12 Intel (little end in first byte) The MIPS processor and compilers support both the Big Endian and Little Endian byte-ordering conventions. The names Big Endian and Little Endian are used because of the apt analogy to the bloody feud in the classic children's book Gulliver's Travels (quod vide). The feud was between the two mythical islands, Lilliput and Blefescu, over the correct end (big or little) at which to crack an egg. In our case, the issue has to do with the "end" (most significant or least significant) of a multiple-byte data type. With Big Endian ordering, the address of a multiple-byte data type is of its most significant byte (its "big end"), whereas with Little Endian ordering, the address is of its least significant byte (its "little end"). This is shown in Figure A.14. For structures declared in a high-level language, the order of bytes in memory will differ depending on the byte ordering and the particular data type, as shown for a C structure in Figure A.15. Most UNIXes (for example, all System V) and the Internet are Big Endian. Motorola 680x0 microprocessors (and therefore Macintoshes), Hewlett-Packard PA-RISC, and Sun SuperSPARC processors are Big Endian. The Silicon Graphics MIPS and IBM/Motorola PowerPC processors are both Little and Big Endian (bi-endian). The ARM7 can be implemented as bi-endian, but traditionally has been implemented as little-endian. Memory Address +0 +1 +2 +3 Big Endian Byte 3 Byte 2 Byte 1 Byte 0 MSB in the lowest (first) memory address Little Endian LSB in the lowest (first) memory address
Pengembangan Software Desktop
Pengembangan software mikrokontroler