Home >Documents >Praktikum Mikrokontroler AVR

Praktikum Mikrokontroler AVR

Date post:08-Dec-2015
Category:
View:56 times
Download:21 times
Share this document with a friend
Description:
Praktikum Mikrokontroler AVR
Transcript:
  • PRAKTIKUM MIKROKONTROLER AVR

    Disusun oleh : Tianur

    Pekanbaru 2014

  • i

    PRAKTIKUM MIKROKONTROLER AVR

    Disusun oleh : Tianur

    Pekanbaru 2014

  • ii

    _____halaman ini sengaja dikosongkan_____

  • iii

    Kata Pengantar

    Saya menyambut baik penerbitan bahan ajar kuliah ini yang khusus dipakai untuk mahasiswa Politeknik Caltex Riau, dengan tujuan untuk memudahkan kegiatan belajar mengajar di Politeknik ini. Penerbitan bahan ajar ini merupakan salah satu wujud nyata tekad Politeknik Caltex Riau dalam usaha mencerdaskan anak bangsa

    Saya menyadari bahwa usaha penerbitan ini menuntut pengorbanan waktu dan tenaga bagi penyusunnya. Untuk itu saya mengucapkan banyak terima kasih dan saya sampaikan penghargaan yang setinggi-tingginya kepada semua pihak yang terkait, atas dedikasinya untuk membantu peningkatan mutu pendidikan di Politeknik Caltex Riau.

    Pekanbaru, Maret 2014 Direktur Dadang Syarif S.S., S.Si., M.Sc.

  • iv

    Terima kasih Untuk Istriku, Isniarni Anak-anakku, Hafizh Ihsan Ramadhan dan Hazim Ihsan Muntasir

  • v

    Daftar Isi

    Percobaan 1 pengenalan codevision avr ......................................................... 1 1.1 Pendahuluan. .......................................................................................... 1 1.1 Instalasi. ................................................................................................. 1 1.2 Membuat Program Baru .......................................................................... 1

    Percobaan 2 pengenalan proteus 7 .................................................................. 7 1.1 Pendahuluan ........................................................................................... 7 2.2 Instalasi .................................................................................................. 8 2.3 Membuat Rangkaian Simulasi ................................................................. 9

    Percobaan 3 Aplikasi LED ........................................................................... 15 3.1 Pendahuluan ......................................................................................... 15

    3.1.2 Rangkaian Simulasi ................................................................... 16 3.1.3 Latihan Program ........................................................................ 16

    Percobaan 4 Aplikasi 7 segment non-multiplex ............................................ 19 4.1 Pendahuluan ......................................................................................... 19 4.2 7 Segment Non - Multiplex tanpa decoder ............................................. 19

    4.2.1 Rangkaian Simulasi ................................................................... 19 4.2.2 Latihan Program ........................................................................ 20

    4.3 7 Segment Non-Multiplex dengan decoder ............................................ 22 4.3.1 Rangkaian Simulasi ................................................................... 23 4.3.2 Latihan Program ........................................................................ 23

    Percobaan 5 Aplikasi 7 segment multiplex ................................................... 27 5.1 Pendahuluan ......................................................................................... 27 5.2 Aplikasi 7 Segment tanpa decoder 7447 ................................................ 27

    5.2.1 Rangkaian Simulasi ................................................................... 27 5.2.2 Latihan Program ........................................................................ 27

    5.3 Aplikasi 7 Segment dengan Decoder 7447 ............................................. 29

  • vi

    5.3.1 Rangkaian Simulasi ................................................................... 30 5.3.2 Latihan Program ........................................................................ 30

    Percobaan 6 Aplikasi LED DOT MATRIX .................................................. 33 6.1 Pendahuluan ......................................................................................... 33

    6.1.1 Rangkaian Simulasi ................................................................... 34 6.1.2 Latihan Program ........................................................................ 34

    Percobaan 7 Aplikasi LCD DISPLAY 16X2 ................................................ 37 7.1 Pendahuluan ......................................................................................... 37

    7.1.1 Rangkaian Simulasi ................................................................... 37 7.1.2 Latihan Program ........................................................................ 38

    Percobaan 8 Aplikasi TOMBOL/SWITCH .................................................. 41 8.1 Pendahuluan ......................................................................................... 41 8.2 Aplikasi Tombol dan LED .................................................................... 42

    8.2.1 Rangkaian Simulasi ................................................................... 42 8.2.2 Latihan Program ........................................................................ 42

    8.3 Aplikasi Tombol dan 7 Segment ........................................................... 43 8.3.1 Rangkaian Simulasi ................................................................... 43

    Percobaan 9 Aplikasi TOMBOL Matrix....................................................... 45 9.1 Pendahuluan ......................................................................................... 45 9.2 Rangkaian Simulasi .............................................................................. 46 9.3 Latihan Program ................................................................................... 47

    Percobaan 10 ANALOG DIGITAL CONVERTER ...................................... 53 10.1 Pendahuluan ....................................................................................... 53 10.2 Aplikasi ADC dan LCD ...................................................................... 53

    10.2.1 Rangkaian Simulasi ................................................................. 53 10.2.2 Latihan Program ...................................................................... 54

    Percobaan 11 PULSE WIDTH MODULATION (PWM) ............................. 61 11.1 Pendahuluan ....................................................................................... 61 11.2 Aplikasi PWM, LCD dan Motor DC ................................................... 61

    11.2.1 Rangkaian Simulasi ................................................................. 61

  • vii

    11.2.2 Latihan Program ...................................................................... 62 11.3 Aplikasi ADC 1 Channel ke PWM ...................................................... 63

    11.3.1 Rangkaian Simulasi ................................................................. 63 11.3.2 Latihan Program ...................................................................... 64

    11.4 Aplikasi ADC 2 Channel ke PWM ...................................................... 67 11.4.1 Rangkaian Simulasi ................................................................. 67 11.4.2 Latihan Program ...................................................................... 67

    Percobaan 12 Aplikasi TIMER .................................................................... 71 12.1 Pendahuluan ....................................................................................... 71 12.2 Mode Normal ..................................................................................... 71

    12.2.1 Rangkaian Simulasi ................................................................. 72 12.2.2 Latihan Program ...................................................................... 72

    12.3 Mode CTC (Clear Timer on Compare Match) ..................................... 78 12.3.1 Rangkaian Simulasi ................................................................. 79 12.3.2 Latihan Program ...................................................................... 80

    Percobaan 13 Aplikasi COUNTER/Penghitung ............................................ 85 13.1 Pendahuluan ....................................................................................... 85 13.2 Menggunakan Timer/Counter0 ............................................................ 85

    13.2.1 Rangkaian Simulasi ................................................................. 85 13.2.2 Latihan Program ...................................................................... 86

    13.3 Menggunakan Fitur Interups0.............................................................. 88 13.3.2 Latihan Program ...................................................................... 89

    Percobaan 14 Aplikasi Komunikasi serial .................................................... 91 14.1 Pendahuluan ....................................................................................... 91

    14.1.2 Rangkaian Simulasi ................................................................. 95 14.1.3 Latihan Program ...................................................................... 95

    Percobaan 15 Real Time Clock (RTC) ......................................................... 99 15.1 Pendahuluan ....................................................................................... 99

    15.1.2 Rangkaian Simulasi ............................................................... 101 15.1.3 Latihan Program .................................................................... 101

  • viii

of 113

Embed Size (px)
Recommended