LAMPIRAN. Universitas Sumatera Utara
|
|
- Victoria Clarke
- 5 years ago
- Views:
Transcription
1 67 LAMPIRAN
2 Lampiran A-1 Listing Program Visual Basic Private Sub mn_isidata_click() frm_isi_data.show Me.Hide Private Sub mn_koneksiport_click() frm_koneksi_port.show Me.Hide Private Sub mn_tentang_click() frm_tentang.show Me.Hide Private Sub mn_keluar_click() End Sub Clear() txt_no.text = "" txt_nama.text = "" cbo_jenkel.text = "" lbl_tinggi_badan.caption = "0" Call buat_id Sub buat_id() Call BukaDatabase Set Rs_data = New ADODB.Recordset
3 Lampiran A-2 Rs_data.Open "SELECT * FROM tbl_isi_data", KonekDb, adopendynamic, adlockoptimistic If Rs_data.PageCount > 0 Then With Rs_data.MoveLast On Error Resume Next txt_no.text =!id + 1 End With Else txt_no.text = 1 End If Private Sub dg_data_click() GridBaris = dg_data.row Set Rs_data = New ADODB.Recordset Rs_data.Open " SELECT * FROM tbl_isi_data WHERE id='" & dg_data.textmatrix(gridbaris, 0) & "' " _, KonekDb, adopendynamic, adlockoptimistic If Rs_data.BOF Then MsgBox "TABEL MASIH KOSONG", vbokonly + vbinformation, "Perhatian" Exit Sub Call Clear Else Rs_data.MoveFirst Do While Not Rs_data.EOF On Error Resume Next txt_no.text = Rs_data!id txt_nama.text = Rs_data!nama cbo_jenkel.text = Rs_data!jenis_kelamin
4 Lampiran A-3 lbl_tinggi_badan.caption = Rs_data!tinggi_badan Rs_data.MoveNext Loop End If Private Sub Form_Load() cbo_jenkel.additem "Pria" cbo_jenkel.additem "Wanita" Call BukaDatabase Call tampil_data Call buat_id Private Sub cmd_batal_click() Call Clear Private Sub cmd_keluar_click() frm_utama.show Unload Me Private Sub cmd_simpan_click() Set Rs_data = New ADODB.Recordset Rs_data.Open "SELECT * FROM tbl_isi_data WHERE nama='" & txt_nama.text & "'", _ KonekDb, adopendynamic, adlockbatchoptimistic If Rs_data.BOF Then SQLsimpan = "" SQLsimpan = "INSERT INTO tbl_isi_data (id, nama, jenis_kelamin, tinggi_badan)" _
5 Lampiran A-4 & " VALUES(" & txt_no.text & ",'" & txt_nama.text & "','" _ & cbo_jenkel.text & "', '" & lbl_tinggi_badan.caption & "')" KonekDb.Execute SQLsimpan,, adcmdtext MsgBox "DATA BARU TELAH TERSIMPAN", vbokonly + vbinformation, "INFO" Else MsgBox "ID SUDAH ADA", vbokonly + vbinformation, "INFO" End If Rs_data.Requery Call Clear Call tampil_data Call buat_id Private Sub cmd_ubah_click() SQLubah = "UPDATE tbl_isi_data " _ & " set nama='" & txt_nama.text & "', " _ & " jenis_kelamin ='" & cbo_jenkel.text & "'," _ & " tinggi_badan ='" & lbl_tinggi_badan.caption & "'" _ & " WHERE id=" & CInt(txt_no.Text) KonekDb.Execute SQLubah,, adcmdtext MsgBox "DATA TELAH DIUBAH", vbokonly + vbinformation, "Konfirmasi" Rs_data.Requery Call Clear Call tampil_data Call buat_id
6 Lampiran A-5 Private Sub cmd_hapus_click() hapus = MsgBox("yakin ingin menghapus data ini?", vbquestion + vbyesno, "Hapus") If hapus = vbyes Then SQL = "DELETE FROM tbl_isi_data WHERE id='" & txt_no.text & "'" KonekDb.Execute SQL,, adcmdtext Rs_data.Requery Call Clear Call tampil_data Else Call Clear End If Call buat_id Sub Aktifdg_data() With dg_data.cols = 4.RowHeightMin = 300.Col = 0.Row = 0.Text = "ID".CellFontBold = True.ColWidth(0) = 1700.AllowUserResizing = flexresizecolumns.cellalignment = flexaligncentercenter.col = 1.Row = 0.Text = "NAMA".CellFontBold = True
7 Lampiran A-6.ColWidth(1) = 2500.AllowUserResizing = flexresizecolumns.cellalignment = flexaligncentercenter.col = 1.Row = 0.Text = "JENIS KELAMIN".CellFontBold = True.ColWidth(2) = 2650.AllowUserResizing = flexresizecolumns.cellalignment = flexaligncentercenter.col = 3.Row = 0.Text = "TINGGI BADAN".CellFontBold = True.ColWidth(3) = 2650.AllowUserResizing = flexresizecolumns.cellalignment = flexaligncentercenter End With Sub tampil_data() Dim Baris As Integer dg_data.clear Call Aktifdg_data dg_data.rows = 2 Baris = 0 Set Rs_data = New ADODB.Recordset Rs_data.Open "SELECT * FROM tbl_isi_data", KonekDb, adopendynamic, adlockoptimistic If Rs_data.PageCount > 0 Then
8 Lampiran A-7 With Rs_data.MoveFirst Do While Not.EOF On Error Resume Next Baris = Baris + 1 dg_data.rows = Baris + 1 dg_data.textmatrix(baris, 0) =!id dg_data.textmatrix(baris, 1) =!nama dg_data.textmatrix(baris, 2) =!jenis_kelamin dg_data.textmatrix(baris, 3) =!tinggi.movenext Loop End With End If Private Sub Form_Unload(Cancel As Integer) frm_utama.show Me.Hide Private Sub cmd_exit_click() Unload Me Private Sub Form_Load() cbo_bound_rate.additem "9600" cbo_comm_port.additem "COMM2" Private Sub Form_Unload(Cancel As Integer) frm_utama.show Me.Hide
9 Lampiran A-8 Unload Me Private Sub Form_Unload(Cancel As Integer) frm_utama.show Me.Hide Private Sub mn_keluar_click() End Option Explicit Public KonekDb As New ADODB.Connection Public Rs_data As New ADODB.Recordset Public Koneksi, Bound_Rate As String Public Port As Integer Public SQLubah, SQLsimpan, SQLhapus As String Sub BukaDatabase() Dim strss, strport, strdb, struid, strpwd As String strss = "localhost" strport = "3306" strdb = "db_mikrokontroler" struid = "root" strpwd = "" Set KonekDb = New ADODB.Connection KonekDb.CursorLocation = aduseclient KonekDb.ConnectionString = "" _ & "DRIVER={MYSQL ODBC 3.51 Driver};" _ & "SERVER=" & strss & ";" _ & "DATABASE=" & strdb & ";" _ & "UID=" & struid & ";" _ & "PWD=" & strpwd & ";" _
10 Lampiran A-9 & "OPTION=" On Error Resume Next If KonekDb.State = adstateopen Then KonekDb.Close Set KonekDb = New ADODB.Connection KonekDb.Open Else KonekDb.Open End If If Err.Number <> 0 Then MsgBox "GAGAL KONEKSI SERVER", vbokonly, "Kesalahan" End If
11 Lampiran B-1 Listing Program Mikrokontroler MOV TMOD,#20H MOV SCON,#50H MOV TH1,#-3 SETB TR1 mov p0,#0 mov 70h,#0 mov 71h,#0 mov 72h,#0 Ping: hitung: setb p1.2 acall tunda clr p1.2 acall tunda setb p1.2 acall tunda clr p1.2 acall tunda setb p1.2 nop nop nop nop clr p1.2 nop nop nop nop jb p1.3,$ mov 70h,#0 mov 71h,#0 mov 72h,#0 acall pulsa jnb p1.3,terus_hitung sjmp jarak terus_hitung:
12 Lampiran B-2 inc 70h mov r2,70h cjne r2,#0ah,hitung mov 70h,#0h inc 71h mov r2,71h cjne r2,#0ah,hitung mov 71h,#0h inc 72h mov r2,72h cjne r2,#0ah,hitung mov 72h,#0h ljmp hitung jarak: mov r0,70h acall transfer mov 73h,r1 mov r0,71h acall transfer mov 74h,r1 mov r0,72h acall transfer mov 75h,r1 acall tampil ljmp ping transfer: cjne r0,#0h,satu mov r1,#'0' satu: cjne r0,#01h,dua mov r1,#'1' dua: tiga: cjne r0,#02h,tiga mov r1,#'2' cjne r0,#03h,empat mov r1,#'3'
13 Lampiran B-3 empat: cjne r0,#04h,lima mov r1,#'4' lima: cjne r0,#05h,enam mov r1,#'5' enam: cjne r0,#06h,tujuh mov r1,#'6' tujuh: cjne r0,#07h,delapan mov r1,#'7' delapan: cjne r0,#08h,sembilan mov r1,#'8' sembilan: cjne r0,#09h,transfer mov r1,#'9' tampil: tunda: tnd: mov sbuf,75h jnb ti,$ clr ti mov sbuf,74h jnb ti,$ clr ti mov sbuf,73h jnb ti,$ clr ti acall tunda cpl p3.7 mov r7,#255 mov r6,#255 djnz r6,$
14 Lampiran B-4 djnz r7,tnd tunda1: tnd1: pulsa: mov r7,#10 mov r6,#255 djnz r6,$ djnz r7,tnd1 mov r7,#23 djnz r7,$
15 Tx Rx Ultrasonic Ping ))) SIG Serial Connector port to PC 12MHZ CRYSTAL Lampiran C-1 C1 + +5V C3 1uF R1 1k 33pF C2 33pf U1 XTAL1 XTAL2 RST PSEN ALE EA P0.0/AD0 P0.1/AD1 P0.2/AD2 P0.3/AD3 P0.4/AD4 P0.5/AD5 P0.6/AD6 P0.7/AD7 P2.0/A8 P2.1/A9 P2.2/A10 P2.3/A11 P2.4/A12 P2.5/A13 P2.6/A14 P2.7/A VCC +5V R6 1k P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 AT89C51 10 P3.0/RXD 11 P3.1/TXD 12 P3.2/INT0 13 P3.3/INT1 14 P3.4/T0 15 P3.5/T1 16 P3.6/WR 17 P3.7/RD Connector DB TOA TOB V + T2 OUT T1 OUT V- TIA TIB ROA ROB R2 4K7 Ohm B C945 VCC +5V GND DCD DSR RXD RTS TXD CTS DTR RI
16 DAFTAR RIWAYAT HIDUP Saya yang bertanda tangan dibawah ini : DATA PRIBADI Nama : Ahmad Zainy Alamat : Jln. Young Panah Hijau Lor. Kayu Sepang Link IX Medan Labuhan Deli Medan Marelan Hp : ucox_nasti@yahoo.com Tempat/ tanggal lahir : Runding, 24 Oktober 1988 Jenis Kelamin : Laki-laki Status : Belum Menikah PENDIDIKAN : DIII Teknik Komputer Institut Pertanian Bogor : SMU Negeri 1 Panyabungan, jurusan IPA : SMP Negeri 5 Panyabungan : SD Negeri Runding SEMINAR Seminar IT To Day Institut Pertanian Bogor Demikianlah Daftar Riwayat Hidup ini saya perbuat dengan sebenarnya. Hormat Saya, Ahmad Zainy
LAMPIRAN LIST PROGRAM
LAMPIRAN LIST PROGRAM 1. Modules Public conn As New ADODB.Connection Public rstb_pendekatan As ADODB.Recordset Public rstb_solusi As ADODB.Recordset Public rstb_alasan As ADODB.Recordset Public rstb_pilihan
More informationTutorial, Source code, Request Program Visual Basic
Tutorial, Source code, Request Program Visual Basic Oleh : Moh. A Azis Membuat Form Data Barang Program Persediaan Barang Form Data Barang digunakan untuk menyimpan data barang dan memberikan info mengenai
More informationLISTING PROGRAM. 1. Form Login. Private Sub BATAL_Click() End End Sub
LISTING PROGRAM 1. Form Login Private Sub BATAL_Click() End Sub Bersih() USERNAME.Text = "" PASSWORD.Text = "" Private Sub Form_Load() Bersih Private Sub OK_Click() Sql = "select*from tbl_login where username='"
More informationAlexandria University Faculty of Engineering Communications & Electronics Department.
Alexandria University Faculty of Engineering Communications & Electronics Department. TO : DR \ HOSSAM ELDIN MOSTAFA PRESENTED BY : 1. AHMED OSMAN HASSAN NEGM 24 2. AHMED MOHAMED IBRAHIM AHMED ABD ELWAHED
More informationLAMPIRAN : LISTING PROGRAM
LAMPIRAN : LISTING PROGRAM Kode Program Form Login Private Sub cbolevel_click() If cbolevel.text = "Pengguna" Then txtlogin.enabled = False txtpass.enabled = False txtlogin.visible = False txtpass.visible
More informationLISTING PROGRAM. 1. Form Menu Utama. Universitas Sumatera Utara
LISTING PROGRAM 1. Form Menu Utama Dim LenTemp As Integer Dim SrtTemp As String Dim n As Integer Private Sub Form_Load() Call Tengah(Me) lhsysmenu = GetSystemMenu(Me.hwnd, False) lretval = RemoveMenu(lhSysMenu,
More informationLISTING PROGRAM. Form Splash
LISTING PROGRAM Form Splash Private Sub Form_Load() lblversion.caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision lblproductname.caption = App.Title lblcopyright.caption = App.LegalCopyright
More informationControl Transfer Instructions Jump, Loop, and Call. ECE473/573 Microprocessor System Design, Dr. Shiue
Control Transfer Instructions Jump, Loop, and Call 1 Jump Instructions JZ label ; Jump if A=0 JNZ label ; Jump if A!=0 DJNZ reg, label ; Decrement and Jump if A (or reg.)!=0 CJNE A, byte ; Compare and
More informationLAMPIRAN A LISTING PROGRAM. Universitas Sumatera Utara
LAMPIRAN A LISTING PROGRAM LISTING PROGRAM MENU UTAMA Dim T As String Dim i Private Sub Dafsis_Click() Form5.Show Private Sub Dafwai_Click() Form5.Show Private Sub Dasis_Click() Form2.Show Private Sub
More informationIntroduction To MCS-51
Introduction To MCS-51 By Charoen Vongchumyen Department of Computer Engineering Faculty of Engineering KMITLadkrabang 8051 Hardware Basic Content Overview Architechture Memory map Register Interrupt Timer/Counter
More information2. Write an 8051 program to generate a square wave of 25 khz at pin P2.3 using XTAL = 12 MHz. Solution:
Assignment 2 1. Assume that 5 binary data items are stored in RAM locations starting at 50h, as shown below. Write a program to find the sum of all the numbers. The calculation is in 16-bit format and
More informationLAMPIRAN. Universitas Sumatera Utara
61 LAMPIRAN 61 Listing Program Form 1 ( Barang ) Dim CnSuzuya As ADODB.Connection Dim CommBar As ADODB.Command Dim rsbar As ADODB.Recordset Dim StrSql As String Dim psn As Byte Private Sub Form_Load()
More informationAn InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is
InputBox( ) Function An InputBox( ) function will display an input Box window where the user can enter a value or a text. The format is A = InputBox ( Question or Phrase, Window Title, ) Example1: Integer:
More informationIS1U60 IS1U60L Recommended operating conditions. Unit
IS1U60/IS1U60L IS1U60/IS1U60L Sensors with 1-Package Design of Remote Control Detecting Functions owing to OPIC Features Outline Dimensions (Unit : mm) 1. 1-package design owing to adoption of OPIC 2.
More informationL A M P I R A N. Universitas Sumatera Utara
L A M P I R A N A TAMPILAN PROGRAM 1. Form Login 2. Form Menu Utama 3. Form Entry Data Mahasiswa Baru 4. Form Kasir 5. Form Transaksi 6. Laporan cetak mahasiswa 6. Laporan cetak mahasiswa 7. Laporan cetak
More informationLAMPIRAN FORM 1 Universitas Sumatera Universitas Utara
LAMPIRAN FORM 1 Private Sub Text2_KeyPress(KeyAscii As Integer) If KeyAscii = vbkeyreturn Then Set tbladministrator = New ADODB.Recordset With tbladministrator.open "SELECT * FROM Administrator WHERE userid
More informationLAMPIRAN A : LISTING PROGRAM
LAMPIRAN A : LISTING PROGRAM 1. frmmenu.frm Dim CN As Connection Dim rshapus As Recordset Private Sub DfaHasil_Click() Call frmlap.cetak Private Sub Form_Load() Set CN = New ADODB.Connection CN.ConnectionString
More informationLAMPIRAN 1. Kode Program Splash Screen
LAMPIRAN 1 Kode Program Splash Screen Private Sub Form_Load() lblversion.caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision lblproductname.caption = App.Title lblcopyright.caption
More informationEEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture
Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin
More informationLAMPIRAN A PROGRAM ADMINISTRASI
LAMPIRAN A PROGRAM ADMINISTRASI Program Administrasi FORM HOME ==load form tarif yang berlaku== Private Sub Cmd_DftrTarif_Click() End Sub Load Frm_Tarif Frm_Tarif.Show ==load form isi ulang kartu== Private
More informationEnd Sub. Sub Kunci() Dim i As Integer For i = 0 To 4 Txtfield(i).Locked = True Next i grddatagrid.enabled = False End Sub
Source Aplikasi Sistem Informasi Akademik GENERAL Dim db As Connection Dim WithEvents adoprimaryrs1 As Recordset Dim WithEvents adoprimaryrs2 As Recordset Dim WithEvents rscaridata As Recordset Dim cekid
More informationFACULTY OF ENGINEERING LAB SHEET
FACULTY OF ENGINEERING LAB SHEET MICROCONTROLLER AND MICROPROCESSOR SYSTEMS ECE2216 TRIMESTER 1 (2017/2018) MP2: Construction and programming of a basic electronic piano *Note: On-the-spot evaluation may
More informationMCS-51 Serial Port A T 8 9 C 5 2 1
MCS-51 Serial Port AT89C52 1 Introduction to Serial Communications Serial vs. Parallel transfer of data Simplex, Duplex and half-duplex modes Synchronous, Asynchronous UART Universal Asynchronous Receiver/Transmitter.
More information1. Pin diagram of 8051 and ports
e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Programming parallel ports Module No: CS/ES/9 Quadrant 1 e-text In this lecture pin diagram of 8051 controller will be shown and
More informatione-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Programming in Assembly Module No: CS/ES/12 Quadrant 1 e-text
e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Programming in Assembly Module No: CS/ES/12 Quadrant 1 e-text In this lecture, serial communication control register
More information8051 Timers and Serial Port
8051 Timers and Serial Port EE4380 Fall 2001 Class 10 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Timer: Mode 1 Operation (recap) 16 bit counter. Load the
More informationMODEL ANSWER SUBJECT- MICROCONTROLLER(12187) CLASS-EJ5E CLASS TEST-02 Q1.)Attempt any THREE of the following.
MODEL ANSWER SUBJECT- MICROCONTROLLER(12187) CLASS-EJ5E CLASS TEST-02 Q1.)Attempt any THREE of the following. (9M) 1) Describe the instructions SWAP A and MOVX@DPTR,A with one example. (3Marks) SWAP A
More information8051 Serial Port. EE4380 Fall02 Class 10. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas
8051 Serial Port EE4380 Fall02 Class 10 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Serial Comm. - Introduction Serial Vs Parallel Transfer of data Simplex,
More informationINTERRUPTS PROGRAMMING
INTERRUPTS PROGRAMMING The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平 Home Automation, Networking, and Entertainment Lab Dept. of Computer
More information1. Menu Utama. Private Sub abt_click() frmabout.show End Sub. Private Sub dafabsenhar_click() frmdafabsensihar.show End Sub
1. Menu Utama Private Sub abt_click() frmabout.show Private Sub dafabsenhar_click() frmdafabsensihar.show Private Sub dafpeg_click() frmdafpegawai.show Private Sub dafuser_click() frmdaftaruser.show Private
More informationAssembly Language programming (3)
EEE3410 Microcontroller Applications LABORATORY Experiment 3 Assembly Language programming (3) Name Class Date Class No. Marks Conditional Program Branching and Subroutine Call in 8051 Objectives To learn
More informationCoE3DJ4 Digital Systems Design. Chapter 6: Interrupts
CoE3DJ4 Digital Systems Design Chapter 6: Interrupts Interrupts An interrupt is the occurrence of an event that causes a temporary suspension of a program while the condition is serviced by another program.
More informationLISTING PROGRAM. 1. Menu Utama
LISTING PROGRAM 1. Menu Utama Option Explicit Dim rssms As Recordset Dim stopen As String * 1 Dim IDSms As Integer Dim rspesan As Recordset Dim Kode As String * 1 Dim rspaket As Recordset Dim NmPaket As
More informationMicrocontroller and Embedded Systems:
Microcontroller and Embedded Systems: Branches: 1. Electronics & Telecommunication Engineering 2. Electrical & Electronics Engineering Semester: 6 th Semester / 7 th Semester 1. Explain the differences
More informationELEG3923 Microprocessor Ch.9 Timer Programming
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.9 Timer Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Programming 8051 Timers Counter programming Timer programming
More informationLISTING PROGRAM. 1. Tampilan Awal. 2. Menu Login. Public Class Awal
LISTING PROGRAM 1. Tampilan Awal Public Class Awal Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ProgressBar1.Increment(10) If ProgressBar1.Value
More informationChapter 6 Interrupts. (I. Scott Mackenzie) By: Masud-ul-Hasan
Chapter 6 Interrupts (I. Scott Mackenzie) 1 Interrupts An interrupt is the occurrence of an event that causes a temporary suspension of a program while the condition is serviced by another program. It
More informationFlashFlex51 Microcontroller Control of CompactFlash Card in TrueIDE Mode
FlashFlex51 MCU: June 2003 1.0 INTRODUCTION The CompactFlash (CF) card SST48CFxxx supports three operational modes: (1) PC card ATA using I/O mode, (2) PC card ATA using Memory mode, and (3) TrueIDE mode.
More informationInterfacing ahantronix 128x64 Graphic Module to an 8-bitMicrocontroller
Interfacing ahantronix 128x64 Graphic Module to an 8-bitMicrocontroller Introduction: Due to its thin profile, light weight, low power consumption and easy handling, liquid crystal graphic display modules
More informationMicroprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman
Microprocessors 1 The 8051 Instruction Set Microprocessors 1 1 Instruction Groups The 8051 has 255 instructions Every 8-bit opcode from 00 to FF is used except for A5. The instructions are grouped into
More informationContents 8051 Instruction Set BY D. BALAKRISHNA, Research Assistant, IIIT-H Chapter I : Control Transfer Instructions Lesson (a): Loop Lesson (b): Jump (i) Conditional Lesson (c): Lesson (d): Lesson (e):
More informationต วอย างการสร างฟอร ม เมน การใช งาน
ต วอย างการสร างฟอร ม เมน การใช งาน Option Explicit Dim conn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim Sql As String Private Sub Command6_Click() Form2.Hide Form3.Show Private Sub Command7_Click()
More informationMegawin 8051 ISP via COM Port
Megawin 8051 ISP via COM Port User Manual By Vincent Y. C. Yu This document information is the intellectual property of Megawin Technology Co., Ltd. 1 Contents 1 What is ISP... 3 2 Chip Configuration for
More informationChapter Family Microcontrollers Instruction Set
Chapter 4 8051 Family Microcontrollers Instruction Set Lesson 5 Program Flow Control and Interrupt Flow Control Instructions 2 Branch instructions- Jump to new value of Program Counter (PC) LJMP address16
More informationMICROCONTROLLER BASED WATER LEVEL CONTROL SYSTEM
MICROCONTROLLER BASED WATER LEVEL CONTROL SYSTEM The present concept implements controlling of pump which pumps water from the sump (underground tank) to the overhead tank, using 8951 microcontroller.
More informationLookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function:
Lookup Project frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Help About, in a Message Box lookup.vbp programmed by C.Gribble Page 2 Code for
More informationET2640. Unit 5:ADVANCED I/O TECHNIQUES Pearson Education, Inc. Pearson Prentice Hall Upper Saddle River, NJ 07458
ET2640 Unit 5:ADVANCED I/O TECHNIQUES skong@itt-tech.edu HARDWARE CONNECTION CHAPTER 8 8051 PINOUT XTAL1 & XTAL2 On-chip oscillator requires an external clock Quartz crystal clock 2 external 30 pf capacitors
More informationMicrocontroller Intel [Instruction Set]
Microcontroller Intel 8051 [Instruction Set] Structure of Assembly Language [ label: ] mnemonic [operands] [ ;comment ] Example: MOV R1, #25H ; load data 25H into R1 2 8051 Assembly Language Registers
More informationLAMPIRAN A : LISTING PROGRAM
46 LAMPIRAN A : LISTING PROGRAM 1. Mainform /* * Created by SharpDevelop. * User: User7 * Date: 28/09/2015 * Time: 9:38 * * To change this template use Tools Options Coding Edit Standard Headers. */ using
More informationListing Progam. Universitas Sumatera Utara
60 Listing Progam Listing Program Tabel Index
More informationAppendix A Cable Pinouts
Appendix A Cable Pinouts This appendix lists the cables and connector pinout assignments for the cables used with the ERX-7xx models and ERX-14xx models. Topic Page SRP I/O Module 163 CT1 and CE1 I/O Modules
More informationMicrocontrollers can be considered as self-contained systems with a processor, memory and I/O ports.
8051 Architecture 1 Microcontrollers can be considered as self-contained systems with a processor, memory and I/O ports. In most cases, all that is missing is the software to define the operation of the
More informationMicrocontroller and Applications
S.Y. Diploma : Sem. IV [DE/EJ/ET/EN/EX/EQ/IS/IC/IE] Microcontroller and Applications Time: 3 Hrs.] Prelim Question Paper Solution [Marks : 70 Q.1 Attempt any FIVE of the following : [10] Q.1(a) Define
More informationLAMPIRAN A LISTING PROGRAM
A-1 LAMPIRAN A LISTING PROGRAM FUNGSI public void StopWatchStart() stopwatch.reset(); stopwatch.start(); Cursor.Current = Cursors.WaitCursor; txtlog.text = ""; public void StopWatchStop(string Title) stopwatch.stop();
More informationUnderstanding the MsgBox command in Visual Basic
Understanding the MsgBox command in Visual Basic This VB2008 tutorial explains how to use the MsgBox function in Visual Basic. This also works for VBS MsgBox. The MsgBox function displays a message in
More informationLampiran 2 MASTER TABEL
64 Lampiran 2 MASTER TABEL No. No. Responden Umur Pendidikan Pekerjaan Paritas Kanker 1 427363 35 S1 PNS 4 Tidak 2 504024 36 SMA IRT 4 Tidak 3 500316 35 SMA IRT 5 Tidak 4 504014 35 SMA PNS 1 Tidak 5 447158
More informationCable Pinouts. SRP I/O Module
Cable Pinouts A This appendix lists the cables and connector pinout assignments for the cables used with the ERX-7xx models and ERX-14xx models. Topic Page SRP I/O Module A-1 CT1 and CE1 I/O Modules A-4
More informationLISTING PROGRAM. Source Code Tampilan Awal. Source Code Menu Utama
LISTING PROGRAM Source Code Tampilan Awal Private Sub cmdkeluar_click() MsgBox "Terima Kasih Telah Membuka Program Ini.", vbinformation, "Quick IP Ver 1.0" End Private Sub cmdmasuk_click() MenuUtama.Show
More information8051 I/O and Class 6 EE4380 Spring 03. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas
8051 I/O and 8255 Class 6 EE4380 Spring 03 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Why I/O Ports Controllers need to get external inputs and produce
More informationCoE3DJ4 Digital Systems Design. Chapter 5: Serial Port Operation
CoE3DJ4 Digital Systems Design Chapter 5: Serial Port Operation Serial port 8051 includes an on-chip serial port Hardware access to the port is through TXD and RXD (Port 3 bits 1 and 0) Serial port is
More informationDS89C450-KIT# DS89C450 Evaluation Kit
-0; Rev /0 DSC0-KIT# DSC0 Evaluation Kit www.maxim-ic.com GENERAL DESCRIPTION The DSC0 evaluation kit (EV kit) is a proven platform to conveniently evaluate the capabilities of the ultra-high-speed flash
More information8051 Timers. Class 7 EE4380 Fall Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas
8051 Timers Class 7 EE4380 Fall 2002 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Introduction Timers Timing devices - Generate specific time delay Event
More informationApplication Brief D-005
Interfacing the Avago HDSP-2xxx LED Alphanumeric Displays with the Intel 8751H Microcontroller Application Brief D-005 Introduction The HDSP-21xx/-25xx series of products is ideal for applications where
More informationDocument: Datasheet Date: 22-Mar-11 Model #: 3679 Product s Page:
Email: info@sunrom.com Visit us at http://www.sunrom.com Document: Datasheet Date: -Mar- Model #: 79 Product s Page: www.sunrom.com/p-0.html ST79 - Infrared remote control decoder NEC The main function
More informationDigital Blocks Semiconductor IP
Digital Blocks Semiconductor IP 805 Microcontroller General Description The Digital Blocks Microcontroller Verilog IP Core is complaint with the MCS 5 Instruction Set and contains standard 805 MCU peripherals,
More informationEX KVIS RS232/422/485 3-in-1 Serial to USB Adapter (w/ 4KV Isolation, 15KV ESD Surge Protection)
EX-1331-4KVIS RS232/422/485 3-in-1 Serial to USB Adapter (w/ 4KV Isolation, 15KV ESD Surge Protection) 1. Introduction Thank you for purchasing this RS232/422/485 3-in-1 Serial to USB Adapter. It is an
More informationInterrupts. EE4380 Fall 2001 Class 9. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas
8051 - Interrupts EE4380 Fall 2001 Class 9 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Polling Vs Interrupts Polling: MCU monitors all served devices continuously,
More informationDigital Blocks Semiconductor IP
805 SFR Bus Digital Blocks Semiconductor IP 805 Microcontroller Configurable Peripherals General Description The Digital Blocks (Configurable Peripherals) Microcontroller Verilog IP Core is complaint with
More informationEZL-200F Application Notes (003) Serial Interface (RS232/RS422/RS485)
Application Notes (003) Serial Interface (RS232/RS422/RS485) Version 2.0 Sollae Systems Co., Ltd. 1. Overview supports three serial interfaces: RS232, RS422, and RS485. You can select the interface you
More informationاصول ميکروکامپيوترها استاد درس: دکتر http://ee.iust.ac.ir/rahmati/index.htm rahmati@iust.ac.ir ا درس Email و Website برای تکاليف و... : http://eel.iust.ac.ir/rahmati/ ١ هجدهم فصل ا شنايی با تايمرهای 8051
More informationLISTING PROGRAM. PrivateSub KeluarToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles KeluarToolStripMenuItem.Click Close() EndSub
LISTING PROGRAM 1.Tampilan awal PublicClassmm PrivateSub InputDataGuruToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles InputDataGuruToolStripMenuItem.Click guru.show() Me.Hide() EndSub PrivateSub
More informationProgramming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote
Programming Book1 8051 Microcontroller Kit Rev 3.0 January, 016 016 Wichit Sirichote 1 Contents Overview...3 SAFTY INFORMATION...3 Tools...3 Experiment 1 Blinking LED...4 Experiment Binary number counting...9
More informationChapter 09. Programming in Assembly
Chapter 09 Programming in Assembly Lesson 05 Programming Examples for Timers Programming TMOD Register 3 Write instructions to run T0 in Mode 0, external count inputs, internal start/stop control ANL TMOD,
More informationPCIe Card Selection Guide. PCIe-CAN Card. PCIe-COM Card. Taiwan Pulse Motion Co.,Ltd. Bus Interface PCI Express x 1 LPE-C122 PCE-C122D PCE-C122T
PCIe Card Selection Guide PCIe-CAN Card Bus Interface PCI Express x 1 LPE-C122 PCE-C122D PCE-C122T Channels I/O Isolation Voltage Baud Rate Terminator Resistor I/O PIN Type 2 Max. 1 Mbps Jumper for 120
More informationInterrupt Programming: Interrupts vs. Polling Method:
UNIT 4: INTERRUPT PROGRAMMING & SERIAL COMMUNICATION WITH 8051: Definition of an interrupt, types of interrupts, Timers and Counter programming with interrupts in assembly. 8051 Serial Communication: Data
More informationProgramming of 8085 microprocessor and 8051 micro controller Study material
8085 Demo Programs Now, let us take a look at some program demonstrations using the above instructions Adding Two 8-bit Numbers Write a program to add data at 3005H & 3006H memory location and store the
More informationAVR-Ready1. Additional Board. Manual. MikroElektronika
AVR-Ready1 Manual All Mikroelektronika s development systems feature a large number of peripheral modules expanding microcontroller s range of application and making the process of program testing easier.
More informationEmbedded Controller Programming
Embedded Controller Programming Counters, Timers and I/O in Assembly Language Ken Arnold Copyright 2000-2004 Ken Arnold 1 Outline Timer/Counters Serial Port More 8051 Instructions Examples Copyright 2000-2004
More informationAVR-Ready2. Additional Board. Manual. MikroElektronika
AVR-Ready2 Manual All Mikroelektronika s development systems feature a large number of peripheral modules expanding microcontroller s range of application and making the process of program testing easier.
More informationbuild_char macro P1,P2,P3,P4,P5,P6,P7,P8 ;Macro for building a custom character
hold macro nop nop nop nop endm disp_str macro string ;Macro for sending string to LCD irpc char, if nul 'char' exitm endif mov a,#'char' lcall data_in endm endm build_char macro P1,P2,P3,P4,P5,P6,P7,P8
More informationUNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING
UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING Instructions Alphabetical List of Instructions ACALL: Absolute Call ADD, ADDC: Add Accumulator (With Carry) AJMP: Absolute Jump ANL: Bitwise AND CJNE: Compare
More informationELEG3923 Microprocessor Ch.10 Serial Port Programming
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.10 Serial Port Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Basics of Serial Communication Serial port programming
More informationBLE232: Manual Copyright 2014 taskit GmbH
BLE232 Manual BLE232: Manual Copyright 2014 taskit GmbH BLE232 All rights to this documentation and to the product(s) described herein are reserved by taskit GmbH. This document was written with care,
More informationLISTING PROGRAM. 1. Menu Utama
LISTING PROGRAM 1. Menu Utama Dim rsupdate As Recordset Dim rscari As Recordset Dim strusername As String * 10 Dim Status As String * 1 Dim JumUser As Integer Public system_mon As String Public service_mon
More informationELEG3923 Microprocessor Ch.4 I/O Ports
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.4 I/O Ports Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 8051 I/O programming I/O bit manipulation programming I/O PORT
More information8051 Microcontroller
8051 Microcontroller EE4380 Fall 2001 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas 8051 Architecture Programmer s View Register Set Instruction Set Memory
More informationCPEG300 Embedded System Design. Lecture 8 Timer
CPEG300 Embedded System Design Lecture 8 Timer Hamad Bin Khalifa University, Spring 2018 Review 8051 port and port schematic Internal read/write data path Serial communication vs. parallel communication
More informationArchitecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller
of 8085 microprocessor 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration 8-bit
More informationELEG3924 Microprocessor
Department of Electrical Engineering University of Arkansas ELEG3924 Microprocessor Ch.3 Jump, Loop, and Call Dr. Jing Yang jingyang@uark.edu 1 OUTLINE Loop and Jump instructions Call instructions Time
More informationDodatak. Skup instrukcija
Dodatak Skup instrukcija Arithmetic Operations [@Ri] implies contents of memory location pointed to by R0 or R1 Rn refers to registers R0-R7 of the currently selected register bank 2 ADD A,
More informationMod-3: Interrupts,Timer operation,serial communication 1
Mod-3: Interrupts,Timer operation,serial communication 1 Module-3 Contents: Interrupts - interrupt sources - interrupt handling programming examples. Timers operation different modes waveform generation-
More information8-bit Microcontroller with 2/4-Kbyte Flash AT89LP2052 AT89LP4052
Features Compatible with MCS 51 Products 20 MIPS Throughput at 20 MHz Clock Frequency and 2.4V, 85 C Operating Conditions Single Clock Cycle per Byte Fetch 2/4K Bytes of In-System Programmable (ISP) Flash
More informationLAMPIRAN A : LISTING PROGRAM
LAMPIRAN A : LISTING PROGRAM 1. Form Login Private Sub Siap() txtnama.enabled = True txtpswd.enabled = True Private Sub BlmSiap() txtnama.enabled = False txtpswd.enabled = False Private Sub Kosong() txtnama
More informationEX & EX-45362IS 2S RS232/422/485 3-in-1 Serial PCIe Card
EX-45362 & EX-45362IS 2S RS232/422/485 3-in-1 Serial PCIe Card Congratulation on your purchasing this high performance 2-Port RS232/422/485 3-in-1 Serial PCIe Host Adapter. The adapter is high speed PCIe
More informationAPPLICATION NOTE 600 Ultra High Speed Microcontroller Hardware Enhances Serial Port Capability
Maxim > Design Support > Technical Documents > Application Notes > Microcontrollers > APP 600 Keywords: Dallas Semiconductor, ultra high-speed microcontroller, DS89C430, DS89C450, clock multiplier, baud
More informationChapter 3. Bit Addressable Area. By DeccanRobots
Chapter 3 Bit Addressable Area By DeccanRobots What is Bit Addressable Area? FFh 2Fh 20h 00h Data Memory General purpose Memory Area Bit Addressable Memory Registers Memory Area from 20H to 2FH is Bit
More informationLISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara
A-1 LISTING PROGRAM mainform.vb Imports System.IO Public Class mainform Private Sub mainform_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load enkripsirb.checked = True
More informationLCD AND KEYBOARD INTERFACING
LCD AND KEYBOARD The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平 Home Automation, Networking, and Entertainment Lab Dept. of Computer
More informationVRS540-4kB Flash, 128B RAM, 25~40MHz, 8-Bit MCU
VRS540-4kB Flash, 28B RAM, 25~40MHz, 8-Bit MCU 34 Ste Catherine Street West, Suite 900, Montreal, Quebec, Canada H3B H4 Tel: (54) 87-2447 http://www.goalsemi.com P.3 P.2 XTAL NC P0./AD VRS540 Overview
More informationCW6631B Bluetooth Audio Player Microcontroller User Manual
CW6631B Bluetooth Audio Player Microcontroller User Manual [CW6631B-UM-EN] Versions: 1.0.0 Release Date: 2015-12-4 II Table of content Table of content Table of content... II 1 Product Overview... 1 1.1
More information