komunikasi serial antara atmega8 dengan simulink matlab _ produk inovatif

Upload: dhanar-tri-atmaja

Post on 14-Feb-2018

229 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/23/2019 Komunikasi Serial Antara ATMega8 Dengan Simulink Matlab _ Produk Inovatif

    1/11

  • 7/23/2019 Komunikasi Serial Antara ATMega8 Dengan Simulink Matlab _ Produk Inovatif

    2/11

    Acc

    DenAccordingtothe

    accesscontrolpolicy,youhave

    no

    righttovisitthis

    website.Foranydoubt,please

    contactthenetwork

    administrat

    URL:www.f

    href=http:/inovatif/42

    Langganan Produk Inovatif

    PrevNext Mar20by roohmadion 20/03/2013 at 2:40 PMPosted In: Script, Simulink

    http://produk-inovatif.com/blog/category/simulink/http://produk-inovatif.com/blog/category/matlab/script/http://produk-inovatif.com/blog/author/roohmadi/http://produk-inovatif.com/blog/2013/03/21/membuat-dua-grafik-dalam-satu-axes-pada-matlab/http://produk-inovatif.com/blog/2013/03/19/acer-iconia-tab-a101/http://www.histats.com/http://produk-inovatif.com/shop/depok-instrument/di-smart-lcd16x2-board/
  • 7/23/2019 Komunikasi Serial Antara ATMega8 Dengan Simulink Matlab _ Produk Inovatif

    3/11

  • 7/23/2019 Komunikasi Serial Antara ATMega8 Dengan Simulink Matlab _ Produk Inovatif

    4/11

    2. Pada Simulink Library Browser, cara librarydengan mengikuti langkah berikut

    1) KetikaInstrument

    2) klik iconsearch

    3) drag Query Instrumentke berkas Model

    3. Tampilan setelah mengambil Query Instrumenti adalah sebegai berikut

    4. Dengan langkah yang sama pada poin 2 & 3, cari library Display

    http://roohmadi.files.wordpress.com/2011/10/query-instrument.pnghttp://roohmadi.files.wordpress.com/2011/10/search-instrument.png
  • 7/23/2019 Komunikasi Serial Antara ATMega8 Dengan Simulink Matlab _ Produk Inovatif

    5/11

    5. Setelah ditemukan, drag pada media model seperti berikut

    6. Kemudian tambahkan koneksi antara Query Instrument danDisplay

    7. Kemudian double klik pada Query Instrument untuk mengatur setting serial baud rate 115200. Samakan settingseperti tampilan berikut

    http://roohmadi.files.wordpress.com/2011/10/linked1.pnghttp://roohmadi.files.wordpress.com/2011/10/display.pnghttp://roohmadi.files.wordpress.com/2011/10/search-display.png
  • 7/23/2019 Komunikasi Serial Antara ATMega8 Dengan Simulink Matlab _ Produk Inovatif

    6/11

    8. Kemudian langkah selanjutnya adalah membuat project pada ATmega8. Dengan menggunakan Code VisionWizard, kita bisa dengan mudah membuat program serial.Pertama, atur Chip sesuai dengan tipe ATmega8 yangdipakai, kemudian clock yang digunakan adalah 11.059200 M

    9. Kemudian klik Tab USART. Beri tanda cek pada Transmintter, kemudian pilih baud ratedengan nilai 115200

    http://roohmadi.files.wordpress.com/2011/10/cv-wizard-1.pnghttp://roohmadi.files.wordpress.com/2011/10/parameter-properties.png
  • 7/23/2019 Komunikasi Serial Antara ATMega8 Dengan Simulink Matlab _ Produk Inovatif

    7/11

    Kemudian klik File > Save dan Generate

    10. Kemudian pada coding, tambahkan

    #include

    11. Tambahkan code berikut

    int i;for(i=1; i

  • 7/23/2019 Komunikasi Serial Antara ATMega8 Dengan Simulink Matlab _ Produk Inovatif

    8/11

    13. Hasil simulasi pada t=12, tampil nilai pada display

    14. Hasil simulasi pada t=59, tampil nilai pada display

    Demikian semoga bermanfaat.

    Download Code ATmega8

    Download Model Simulink

    http://produk-inovatif.com/Download/http://produk-inovatif.com/Download/http://roohmadi.files.wordpress.com/2011/10/simulasi-2.pnghttp://roohmadi.files.wordpress.com/2011/10/simulasi-1.pnghttp://roohmadi.files.wordpress.com/2011/10/start-simulasi.png
  • 7/23/2019 Komunikasi Serial Antara ATMega8 Dengan Simulink Matlab _ Produk Inovatif

    9/11

  • 7/23/2019 Komunikasi Serial Antara ATMega8 Dengan Simulink Matlab _ Produk Inovatif

    10/11

    datetime="">

    Post Comment

    Who's Online

    4 visitors online now2 guests, 2 bots, 0 members

    Product Categories

    Depok Instrument(6)DFRobot(1)Raspberry pi(1)Arduino(2)Komponen(16)

    Sensor IC(5)IC(14)

    Development Board(2)Downloader-Programmer(1)AVR Series(1)

    Seri Module(15)Voice(1)Power Supply(5)Sensor(5)SD Card(1)Komunikasi Serial(3)

    Special Offers

    AT89S51

    Rp 15.000,00 Rp 10.000,00

    ATTiny24ARp 25.000,00 Rp 20.000,00

    Cart

    No products in the cart.

    Related Posts (YARPP)

    No related posts.

    Login

    Username

    Password

    Login Forgot it?

    http://produk-inovatif.com/wp-login.php?action=lostpassword&redirect_to=http://produk-inovatif.com/my-account/http://produk-inovatif.com/shop/ic/attiny24a/http://produk-inovatif.com/shop/ic/at89s51/http://produk-inovatif.com/shop/product-category/komunikasi-serial/http://produk-inovatif.com/shop/product-category/sd-card/http://produk-inovatif.com/shop/product-category/sensor/http://produk-inovatif.com/shop/product-category/power-supply/http://produk-inovatif.com/shop/product-category/voice/http://produk-inovatif.com/shop/product-category/seri-module/http://produk-inovatif.com/shop/product-category/avr-series/http://produk-inovatif.com/shop/product-category/downloader-programmer/http://produk-inovatif.com/shop/product-category/development-board/http://produk-inovatif.com/shop/product-category/ic/http://produk-inovatif.com/shop/product-category/sensor-ic/http://produk-inovatif.com/shop/product-category/komponen/http://produk-inovatif.com/shop/product-category/arduino/http://produk-inovatif.com/shop/product-category/raspberry-pi/http://produk-inovatif.com/shop/product-category/dfrobot/http://produk-inovatif.com/shop/product-category/depok-instrument/
  • 7/23/2019 Komunikasi Serial Antara ATMega8 Dengan Simulink Matlab _ Produk Inovatif

    11/11

    2012-2013 Produk Inovatif| Powered by WordPress with Easel| Hosted on Produk Inovatif| Subscribe: RSS| Back to Top

    http://produk-inovatif.com/blog/2013/03/20/380/#outsidehttp://produk-inovatif.com/feed/http://produk-inovatif.com/http://frumph.net/easel/http://wordpress.org/http://produk-inovatif.com/