How to drive DC Motor with LabVIEW and AT89S51 Microsystem.pdf

3
POLITEKNIK NEGERI JAKARTA JURUSAN TEKNIK ELEKTRO Program Studi Teknik Elektronika Industri Kampus UI Depok 16425 Telp/Fax: 62-0217863531 Matakuliah : Pengukuran dan Pengendalian Berbasis Komputer Dosen : Endang Wijaya Topik : Konsep Dasar Pengendalian Motor DC Menggunakan AT89S51/52 Microsystem dan LabVIEW 8.5 1. KONFIGURASI SISTEM Aplikasi Kontrol LabVIEW -

description

ded

Transcript of How to drive DC Motor with LabVIEW and AT89S51 Microsystem.pdf

Page 1: How to drive DC Motor with LabVIEW and AT89S51 Microsystem.pdf

POLITEKNIK NEGERI JAKARTA JURUSAN TEKNIK ELEKTRO Program Studi Teknik Elektronika Industri Kampus UI Depok 16425 Telp/Fax: 62-0217863531

Matakuliah : Pengukuran dan Pengendalian Berbasis Komputer Dosen : Endang Wijaya Topik : Konsep Dasar Pengendalian Motor DC Menggunakan AT89S51/52 Microsystem dan LabVIEW 8.5 1. KONFIGURASI SISTEM

Aplikasi Kontrol LabVIEW - 1

Page 2: How to drive DC Motor with LabVIEW and AT89S51 Microsystem.pdf

2. PROGRAM APLIKASI LABVIEW

Gambar 1 Block Diagram

Gambar 2 Front Panel Dari kiri ke kanan: - PB0,1 : Untuk mengendalikan motor 1 - PB2,3 : Untuk mengendalikan motor 2 - PB4,5 : Untuk mengendalikan motor 3 - PB6,7 : Untuk mengendalikan motor 4 Setup Visa configure : Speed=9600 bps, Data bit=8, Stop bit=1

Aplikasi Kontrol LabVIEW - 2

Page 3: How to drive DC Motor with LabVIEW and AT89S51 Microsystem.pdf

3. PROGRAM APLIKASI MIKROKONTROLER $MOD51 ; This includes 8051 definitions for the Metalink assembler org 0000h init: mov scon,#52h ; 8bit, 1 bit stop, REN enable mov tmod,#20h ; timer 1 mode 2 (8 bit auto reload mode) mov th1,#0FDh ; Set baud rate 9600 setb tr1 ; Start timer 1 ; Receive data terima: jnb ri,$ ; menunggu data yang akan di terima mov a,sbuf ; menyimpan data yang di terima di acc clr ri ; persiapan menerima data selanjutnya mov p1,a sjmp terima end

SELAMAT BEREKSPERIMEN

Aplikasi Kontrol LabVIEW - 3