sys-ok Fans Club
Sobat Mau Jago Soal Hardware?? Klik Di Sini!!


Minggu, 10 Februari 2013

Program Parallel Port In Visual Basic

If you have built any of the interfaces on my circuits page and now want to know how to actually make use of them, this page is for you. This is a simple introduction to programming the parallel port in Visual Basic. Note that most of the concepts in this page apply to both 16 bit and 32 bit versions of VB. If you are interested in using QBasic to control the port, see Programming The Parallel Port In QBasic. What this document will not do is give you lots of details on using bi-directional ports, DMA and other advanced topics. This document assumes that you are familiar with the basic functions of Visual Basic itself.
Now before we go any further, we must figure out a way around some limitations built into Visual Basic. VB cannot directly access the hardware on a system. All hardware requests must go through Windows. Because of this, the closest we can get to manipulating the parallel port is with the Printer object. While this is all fine and good when you want to actually print something, it is useless when we want direct hardware control. There may be API calls to get round this, but as of yet I have been unable to find any. In order to control the port directly, we must use something external to our program. It just so happens that there is a great, free product that does exactly what we want. It is a DLL from a company called SoftCircuits. You can download this DLL from theirProgramming Tools and Libraries page. Use VBASM.DLL (in the VBASM.ZIP package) for VB1, VB2, VB3 or VB4 16Bit. Use WIN95IO.DLL (in the WIN95IO.ZIP package) for VB4 32bit, VB5 or VB6. No matter which one you choose, the DLL file itself must be in the windows\system directory in any machine the interface control software is to be used or developed on. Please note that no matter which DLL you use, this won't work under any Windows NT based system, including WinNT, Win2K, XP, Vista, Win7 or Windows Server. NT based systems do not allow direct hardware access to non-drivers.
Now that we have that finished with, let's get to the port. The parallel port is made up of three different sections. These are the data lines, control lines and status lines. There are 8 data lines, and they are the primary means of getting information out of the port. In simple projects, you will be concentrating mostly on the data lines. The control lines are another 4 outputs. They are meant to provide control signals to the printer (such as form feed or initialize). The status lines are a standard parallel port's only inputs. There are 5 of them. They were meant to allow the printer to communicate things such as error, paper out and busy to the PC.
Each section is accessed by it's own address and will act independently from the rest. This is almost as if they were different ports. The addresses are as follows:
Port
Address (Decimal)
Address (Hex)
Data Lines
888
378h
Control Lines
890
37Ah
Status Lines
889
379h

You need to know the address of the port you want to use. You will also need two other things; the command to access the port and the number you want to set it to. The command will be explained in a little while. The ports work with numbers. These can be expressed in hex, binary or decimal, but for this document all values will be expressed in decimal. It's just easier that way. Anyway, you operate the port by sending it a number that represents the binary pattern of the physical outputs on the port. For example, to set the 8 data lines to 11111111, you would send 255. To set them to 00000000 you would send 0. Note that these are all 8 bit binary numbers, and the port is also 8 outputs. Coincidence? I think not.
Before we can use any of the functions contained within either DLL, we must declare them. These declarations are to be placed in any module in your program in the General_Declarations section.
For 16bit VB (VBASM.DLL), use:
Declare Function vbInp Lib "VBASM.DLL" (ByVal nPort As Integer) As Integer
Declare Sub vbOut Lib "VBASM.DLL" (ByVal nPort As Integer, ByVal nData As Integer)
For 32bit VB (WIN95IO.DLL), use:
Declare Sub vbOut Lib "WIN95IO.DLL" (ByVal nPort As Integer, ByVal nData As Integer)
Declare Sub vbOutw Lib "WIN95IO.DLL" (ByVal nPort As Integer, ByVal nData As Integer)
Declare Function vbInp Lib "WIN95IO.DLL" (ByVal nPort As Integer) As Integer
Declare Function vbInpw Lib "WIN95IO.DLL" (ByVal nPort As Integer) As Integer
Once you declare the functions, you will have two new commands available. These are vbInp and vbOut. vbOut is a statement and is used to send a bit to a port, like the following:

vbOut [port],[number]
We will get to vbInp later. As you can see, the two parameters required are the port address and the value we want to set it to. The address can be decimal or hex, as can the value. Because there are only 8 data lines, we can only send a maximum of 255 to the port (255 is decimal for binary 11111111). The examples below illustrate sending a few different bit patterns to the data lines.

'set port to 00000000
vbOut 888, 0
'set port to 10000000
vbOut 888, 1
'set port to 01000000
vbOut 888, 2
'set port to 00100000
vbOut 888, 4
'set port to 00010000
vbOut 888, 8
Of course, you can also turn on more than one bit:

'set port to 10110000
vbOut 888, 11
Note that when you send a bit pattern to the port everything that was there previously is cleared. This is a convenience and also a annoyance. For example, what if we want bit 2 to always stay at 1, but want to turn bit 5 on and off in sequence? Every time we set bit 5, bit 2 is turned off, and vice versa. We will discuss how to get around this when we get to the vbInp function.
The control lines are just as easy to control, but there are a few differences. First, the address of the port is 890. Second is that there are only 4 outputs, so the highest decimal representation of the binary bit pattern you will be using is 15 (binary 1111).
Outputting information is easy, and inputting is just as easy. If you actually want to get information into the computer, you will be using the 5 status lines. Reading the bit pattern of a port is done using the vbInp function. This function is used in the following way:

[variable]=vbInp([port])
So if we wanted to get the current status of the status lines (port 889) we would use:

PortNum%=vbInp(889)
PortNum% would then contain the decimal representation of the binary bit pattern present at the 5 status lines. If you try this and get 31 (11111) with nothing connected to the port don't be surprised. When there is nothing connected to the input of a TTL logic chip, a high input is usually assumed.
Not only can you perform inputs on ports actually designed for inputting, but you can also use vbInp to read the status of an output port. For example:

PortNum%=vbInp(888)
The above would set PortNum% to the current value of the data lines (port 888). We can prove this by doing the following:

vbOut 888, 56
PortNum%=vbInp(888)
MsgBox PortNum%
If all is well, the number 56 will appear in a message box on the screen.
Now that we know the vbInp function we can use it to solve the problem of keeping the state of one bit while changing the state of another. For that we will define a subroutine that uses both functions:

SUB OutPort(PortAddress%, OutNum%)

PortState% = vbInp(PortAddress%)
PortNum% = PortState% + OutNum%
vbOut PortAddress%, PortNum%

END SUB
Note how the sub adds the current port state to the number we send it. This has the effect of keeping all previous bits at the same state they were in, but either turning on or off the bit or bits represented by the number we pass to the sub. This also requires a change in the way the function is used. To turn on bit 1, we would:

OutPort 888, 1
This example assumes a current port status of 0 (00000000). If bit 1 is already high, you will get unexpected results, so keeping track of the port is important. To turn bit 1 back off, we would:

OutPort 888, -1
Now this sub introduces a problem. How do we clear everything on the port as if we were doing vbOut 888, 0? Sending 0 to the sub has no effect (adding or subtracting 0 will always give you the original number), so we will need to add a statement to specifically react to a 0. This done by a simple IF...THEN decision:

SUB OutPort(PortAddress%, OutNum%)

PortState% = vbInp(PortAddress%)
PortNum% = PortState% + OutNum%
vbOut PortAddress%, PortNum%
IF OutNum% = 0 THEN vbOut PortAddress%, 0

END SUB
The sub does all it's normal stuff, but also sets the port to 0 if a 0 was passed to it. This is a very easy to clear up a port if you create strange bit patterns by trying to turn a bit on twice. You may want to keep track of the state you expect the port to be and compare it to the actual state by using the vbInp function. If the two do not match, clear the port and reset all the the bits using your other variable.
Now that we know a few useful functions with respect to output, we should look at a very useful input function. When using the port in software, you will very likely need to know the status of a single bit at one time or another. There are various ways of doing this, but I find the function below to be the most useful:

FUNCTION BitStatus(PortAddress%, BitYouWant%) AS INTEGER

IF PortAddress% = 888 THEN

NumOfBits% = 8

ELSE IF PortAddress% = 889 THEN

NumOfBits% = 5

ELSE

NumOfBits% = 4

REDIM PortBits(NumOfBits%) AS INTEGER
PortNum% = vbInp(PortAddress%)
FOR i = 1 To NumOfBits%

PortBits%(i) = PortNum% MOD 2
PortNum% = FIX(PortNum% / 2)

NEXT I
BitStatus% = PortBits%(BitYouWant%)

END FUNCTION
The function first decides how many bits it has to work with by looking at the address of the port. Note that in all other examples it was really irrelevant if you used decimal or HEX addresses. In this function you will need to change the numbers if you work in HEX. Now, back to how the function functions (he he he). After deciding how many bits there are in the port, it makes an array of the same number of elements. It then goes through a loop, performing integer division on the number returned from the port. It performs one division for each bit in the port. This is probably the easiest way to convert to binary, as VB has no built in decimal to binary function. Again, if you work in HEX you will have to adjust the function here. The function then assigns itself the value of the array element you specify with the BitYouWant% variable.
Well, that's it. The above is not limited to the parallel port. You can use it with any sort of interface that uses a standard I/O port. Of course, this code would not be ideal in controlling the serial port, as a lot of low level coding would be necessary.
For example, to read bit 5 of port 888, you would use:

Bit5Variable% = BitStatus%(888, 5)
Read More >>

Read more ...

Sabtu, 09 Februari 2013

Interface Port Paralel (DB-25)

Port paralel (DB-25) adalah salah satu jenis soket pada personal komputer untuk berkomunikasi dengan peralatan luar seperti printer model lama. Karena itu parallel port sering juga disebut printer port. Perusahaan yang memperkenalkan port ini adalah Centronic, maka port ini juga disebut dengan Centronics port.



Kesederhanaan port ini dari sisi pemrograman dan antarmuka dengan hardware membuat port ini sering digunakan untuk percobaan-percobaan sederhana dalam perancangan peralatan elektronika.
Penggunaan:
Printer model lama
Zip drive
Beberapa scanner
Sound cards
Webcams
Gamepads dan joystick
Pemrogram EPROM
Peralatan SCSI melalui adapter Parallel ke SCSI
Percobaan dengan TTL 12 driver
External CD-Rom/RW drives
Port paralel ini merupakan  port data  di komputer untuk mentransmisi 8 bit data dalam sekali detak. Standar port paralel  yang baru ialah IEEE 1284 dimana dikeluarkan tahun 1994.  Standar ini mendefinisikan 5 mode operasi sebagai berikut :
1. Mode kompatibilitas
2. Mode nibble
3. Mode byte
4. Mode EPP (Enhanced parallel port)
5. Mode ECP (Extended capability port)
Tujuan Standarisasi ini adalah untuk mendesain driver dan perlatan yang baru sehingga kompatibel dengan peralatan lainnya dan standard parallel port sebelumnya (SPP) yang diluncurkan pada tahun 1981.
Mode Kompatibilitas, Nibble, dan Byte digunakan sebagai standard perangkat keras yang tersedia di port parallel original. Sedangkan untuk EPP dan ECP membutuhkan tambahan hardware sehingga mampu bekerja dengan kecepatan tinggi.
Mode Kompatibilitas atau sering disebut “Centronics” hanya dapat mengirimkan data pada arah maju (dari Host ke device external) dengan kecepatan 50 Kbyte sampai 150 Kbyte perdetik. Untuk menerima data harus diubah modenya menjadi mode Nibble atau Byte. Mode nibble dapat menerima  4 bit (nibble) pada arah yang mundur, misalnya dari alat ke computer. Mode byte  menggunakan fitur bi-directional parallel untuk menerima 1 byte (8 bit) data pada arah mundur. IRQ (Interrupt Request ) pada port paralel  biasanya pada IRQ5 atau IRQ7.
Penjelasan Umum port paralel
Port ECP dan EPP menggunakan tambahan hardware untuk menghasilkan dan mengatur handshaking (Sinyal – Sinyal tanda acknowledge).
Untuk mengeluarkan sebuah byte ke port parallel dengan menggunakan Mode Kompatibel, maka software harus mempunyai urutan kerja sebagai berikut:
  1. Tuliskan data byte ke jalur Port Data
  2. Cek untuk melihat apakah printer sibuk, jika sibuk, ia tidak akan menerima data, sehingga data yang telah ditulis akan hilang.
  3. Menjadikan sinyal Strobe (pin 1) menjadi Low (=0), hal ini berguna untuk memberitahu ke printer bahwa ada data yang siap dikirimkan pada jalur Port Data (pin 2 s/d pin 9)
  4. Jadikan kembali sinyal Strobe High (=1) setelah menunggu kira – kira 5 microsecond dari keadaan setelah membuat strobe low.
Hal ini membatasi kecepatan data. Sedangkan  EPP dan ECP mengizinkan hardware mengecek jika printer sibuk dan mengeluarkan sinyal strobe  atau handshaking lainnya. Ini berrti  hanya 1 instruksi I/O yang harus dilakukan yang akan meningkatkan kecepatan Port ECP juga mempunyai kelebihan menggunakan saluran DMA dan buffer FIFO, jadi data dapat digeser tanpa menggunakan instruksi I/O.
Protokol  EPP mempunyai 4 macam siklus transfer data yang berbeda yaitu :
  1. Siklus baca data (Data read)
  2. Siklus baca alamat (Address Read)
  3. Siklus tulis data (data write)
  4. Siklus tulis alamat (address write)
Siklus data digunakan untuk mentrasfer data antara host dan peripheral.
Siklus alamat digunakan untuk mengirimkan alamat, saluran (channel) atau informasi perintah dan control.
Sesuai dengan standard IEEE 1284 ada tiga jenis parallel port yang bisa digunakan:
1. 1284 Tipe A adalah konektor DB-25 yang banyak dijumpai pada komputer-komputer saat ini
2. 1284 Tipe B adalah konektor Centronics 34 Pin yang banyak dijumpai pada printer
3. 1284 Tipe C adalah konektor 36 Pin yang mirip dengan Centronics namun lebih kecil. Konektor ini diklaim memiliki pengunci (Latch) jenis klip (Clip), sifat elektrik yang lebih baik dan mudah dirakit. Juga mengandung pin tambahan yang dapat digunakan untuk mendeteksi apakah piranti yang terpasang memiliki daya atau tidak.
PIN KONEKTOR PARALEL DB25
Nama pin dari konektor parallel port  DB 25 dan Centronics
Pin DB25              Pin Centronics             Sinyal SPP            Arah  In/out       Register       Hardware diinvert
1                                              1                        nStrobe                       In/Out         Control     Ya
2                                              2                       Data                                Out         Data
3                                              3                       Data                               Out          Data
4                                              4                       Data                               Out          Data
5                                              5                       Data                               Out          Data
6                                              6                       Data                               Out          Data
7                                              7                       Data                              Out           Data
8                                              8                       Data                               Out          Data
9                                              9                       Data                               Out          Data
10                                           10                     nAck                             In              Status
11                                           11                      Busy                              In              Status           Ya
12                                           12                     Paper-Out                   In              Status
/ Paper-End
13                                           13                      Select                           In                    Status
14                                           14                      nAuto-                         In/Out         Control           Ya
Linefeed
15                                           32                      nError / nFault           In                  Status
16                                           31                     nInitialize                     In/Out           Control
17                                           36                    nSelect-Printer           In/Out           Control        Ya
/ nSelect-In
18 – 25                                   19-30           Ground                        Gnd
Simbol n di depan suatu nama sinyal seperti pada nAck berarti active low.
Untuk mengeluarkan data di port parallel, gunakan fungsi outport (8 bit ) dan outportb(16 bit).
Keluaran dari port parallel adalah keluaran TTL, sedangkan arus Sink / Source bervariasi antara port parallel satu dengan yang lainnya. Berdasarkan data sheet kemampuan arus Sink / Source bermacam – macam
• Sink / Source 6mA
• Source 12mA Sink 20mA
• Sink 16mA Source 4mA
• Sink / Source 12mA
Dengan keterbatasan arus port parallel maka diperlukan rangkaian buffer (penyangga) sehingga tidak membebani arus dari port parallel untuk menyuplai rangkaian luar.
Alamat Port
Port Paralel  mempunyai 3 alamat . 3BCH ialah alamat dasar yang diperkenalkan sejak munculnya port Paralel  pada kartu video yang kemudian tidak digunakan lagi . LPT1 ialah line printer dengan alamat 378h, lalu  LPT2 dengan alamat 278H meskipun alamat ini dapat dirubah. Saat ini, alamat 378H dan 278H umumnya digunakan sebagai alamat port Paralel .
Alamat                                  Penjelasan
3BCH – 3BFH                       Digunakan untuk paralel port di kartu video,tidak mendukung alamat ECP
378H – 37FH                        Alamat untuk  LPT 1
278H – 27FH                        Alamat untuk  LPT 2
Setelah diketahui alamat dari port parallel, maka dapat ditentukan alamat DP (Data Printer), PC (Printer Control) dan PS (Printer Status)
1. DATA PORT (DP)
Data Port digunakan untuk mengirim data yang harus dicetak oleh printer.Alamat DP adalah base address dari port parallel tersebut.
2. PRINTER CONTROL (PC)
Printer Control digunakan untuk mengirimkan kode-kode kontrol dari komputer ke printer, misalnya kode kontrol untuk menggulung kertas.Alamat PS adalah (base address + 1).
3. PRINTER STATUS (PS)
Printer Status digunakan untuk mengirimkan kode-kode status printer ke komputer, seperti untuk menginformasikan kertas telah habis.Alamat PC adalah (base address +2).
List dibawah adalah tabel alamat untuk DP, PC dan PS dengan LPT mempunyai base address 378h
1. LPT1 DP = Alamat Register 378h / 888
2. LPT1 PS = Alamat Register 379h / 889
3. LPT1 PC = Alamat Register 37Ah / 890
Register-register dari Port Paralel
Semua data, kontrol, dan status dari port paralel berhubungan dengan register-register yang ada didalam komputer. Dengan mengakses langsung register-register tersebut, masukan dan keluaran dari port paralel dapat diatur. Register-register pada port paralel adalah:
Register data
Register status
Register control
Register                                                               LPT1       LPT2
Register data (alamat dasar + 0)                0×378    0×278
Register status (alamat dasar + 1)             0×379    0×279
Register kontrol (alamat dasar + 2)           0x37A    0x27A
Register Data Port Parallel ( 378h )
• Bit 7 (Data 7)
• Bit 6 (Data 6)
• Bit 5 (Data 5)
• Bit 4 (Data 4)
• Bit 3 (Data 3)
• Bit 2 (Data 2)
• Bit 1 (Data 1)
• Bit 0 (Data 0)
Register Status Port Parallel ( 378h )
• Bit 7 (Busy’)
• Bit 6 (Ack)
• Bit 5 (Paper Out)
• Bit 4 (Select)
• Bit 3 (Error)
• Bit 2 (IRQ’)
• Bit 1 (Not Used)
• Bit 0 (Not Used)
Register Kontrol Port Parallel ( 378h )
• Bit 7 (Not Used)
• Bit 6 (Not Used)
• Bit 5 (Aktivasi Port Dwi Arah)
• Bit 4 (Aktivasi IRQ melalui jalur Ack)
• Bit 3 (Select In’)
• Bit 2 (Reset / Inisialisasi)
• Bit 1 (Autofeed’)
• Bit 0 (Strobe’)
Mode – Mode Port Parallel Dalam Bios
Saat ini kebanyakan port parallel merupakan port – port dengan beragam mode dan normalnya dapat dikonfigurasi melalui perangkat lunak. Mode – modenya meliputi :
a. Mode Printer (Default / Normal Mode)
Mode Printer merupakan mode yang paling dasar dan merupakan port parallel standard satu arah. Tidak ada fitur dwi – arah sehingga bit-5 pada port kontrol tidak digunakan
b. Mode Standard & Bi-directional (SPP)
Mode ini merupakan mode dwi-arah. Menggunakan mode ini berarti bit-5 difungsikan untuk membalikkan arah port sehingga dapat membaca kembali nilai yang diberikan pada jalur port data parallel
c. Mode EPP1.7 and SPP
Mode ini merupakan suatu kombinasi dari mode EPP1.7 (Enhanched Parallel Port) dan SPP. Pada mode ini diperbolehkan untuk mengakses register – register SPP (data, status, kontrol) serta register – register EPP. Pada mode ini juga diperbolehkan untuk membalikkan arah port menggunakan bit-5 dari register kontrol. EPP1.7 merupakan versi awal dari EPP yang belum dilengkapi dengan bit untuk time out
d. Mode EPP1.9 and SPP
Seperti mode sebelumnya, hanya saja EPPnya menggunakan versi 1.9 yang sudah dilengkapi dengan bit time-out
e. Mode ECP
Mode ini mempunyai kemampuan tambahan (Extended Capabilities Port). Mode ini dapat diset melalui register kontrol tambahan (Extended Control Register) dari ECP. Hanya saja pada mode ini tidak tersedia mode EPP.
f. Mode ECP and EPP1.7
g. Mode ECP and EPP1.9
Pada kedua mode diatas, tetap menggunakan ECP yang dikombinasi dengan EPP, akan tetapi mode EPP yang digunakan bisa ditentukan lewat ECR (Extended Control Register)nya apakah menggunakan Versi 1.7 atau Versi 1.9.

Pemrograman Paralel Port dengan C++
Untuk mengambil data dari port paralel dengan C++, dilakukan dengan perintah seperti yang tersebut dibawah ini:
#include <conio.h>
// Perintah-perintah untuk mengambil data dari suatu port, termasuk port paralel
int _inp(
unsigned short port
);
unsigned short _inpw(
unsigned short port
);
unsigned long _inpd(
unsigned short port
);
// Perintah-perintah untuk mengeluarkan data ke suatu port, termasuk port paralel
int _outp(
unsigned short port,
int databyte
);
unsigned short _outpw(
unsigned short port,
unsigned short dataword
);
unsigned long _outpd(
unsigned short port,
unsigned long dataword
);
Dimana port adalah alamat dari port dan nilai kembalian adalah nilai dari register data pada port paralel. Perintah _inp, _inpw, dan _inpd mempuyai fungsi yang sama, perbedaannya hanyalah type dari nilai kembalian. Begitu juga dengan _outp, _outpw, dan _outpd. Untuk _inp bernilai int, _inpw bernilai unsigned short, dan untuk _inpd bernilai unsigned long. Perintah-perintah diatas tidak berlaku untuk Windows NT/2000 atau XP karena di kedua sistem operasi tersebut tidak diperbolehkan akses langsung hardware. Hal ini dikarenakan untuk perlindungan terhadap pemakaian suatu hardware oleh beberapa software secara bersamaan. Untuk mengatasinya dibutuhkan file Inpout32.dll yang baru, yang telah dimodifikasi supaya dapat mengakses hardware. Pustaka Inpout32.dll menggunakan driver standar yang diatur oleh Windows untuk mengakses hardware, jadi keamanan pemakaian hardware oleh software menjadi lebih terjamin.
Aplikasi Port Paralel
RANGKAIAN PENGKABELAN PORT PARALEL
OUTPUT DATA, Rangkaian paralel port pada saat mengambil data dari komputer dengan alamat $300 ditunjukkan pada gambar di bawah:
INPUT DATA, Rangkaian paralel port pada saat memberi data ke komputer dengan alamat $300 ditunjukkan pada gambar di bawah
Read More >>

Read more ...

Jumat, 08 Februari 2013

motor stepper

Yang mo ngidupin motor stepper dengan LPT pake delphi,bisa dilakukan dengan mengirimkan logika on dan delay secara kontinyu dan bergantian pada port yang digunakan untuk driver motor stepper, untuk komponen komunikasi bisa pake inpout.dll yang bisa di download di internet secara gratis... dan procedure penyalaan portnya juga dah banyak artikelnya di internet. Yang penting, biar portnya aman dari beban berlebih, harus digunakan suatu buffer / penyangga misal dengan IC TTL. dan untuk driver motor stepper sendiri bisa pake transistor tunggal dengan sistem biasing ato yang lebih praktis bisa nggunain yang udah terintegrasi yaitu IC ULN2003 atau IC driver sejenis. Untuk direction anda bisa membolak balik arah logika penyalaan portnya.. ni, ku ada contoh program nggerakin motor stepper dengan mikrokontroler, tinggal convert algoritmanya ke delphi ja, kan mudah.. thanx. #include ; Program Menggerakkan Motor Stepper Putar Kanan. Mulai: JB P2.0,Mulai ;Apakah P2.0 ditekan? ULANG: MOV P2,#00001110B ACALL TUNDA MOV P2,#00001101B ACALL TUNDA MOV P2,#00001011B ACALL TUNDA MOV P2,#00000111B ACALL TUNDA SJMP ULANG Tunda: MOV R0,#0 ULANG1: MOV R1,#0 ULANG2: MOV R2,#0 ULANG3: INC R2 CJNE R2,#200,ULANG3 INC R1 CJNE R1,#50,ULANG2 INC R0 CJNE R0,#10,ULANG1 RET END
Read More >>

Read more ...

Command Prompt pada Windows 7



Command-Prompt-CommandsDaftar Lengkap Perintah Command Prompt pada Windows 7. Pada Windows 7 terdapat banyak perintah command prompt yang bisa digunakan untuk melakukan administrasi Windows. Beberapa perintah ini hanya dapat dijalankan dari mode DOS atau Command Prompt. Sehingga untuk menjalankannya kita harus mengetikkan perintah tersebut pada command line.

Berikut ini terdapat 200 perintah command prompt pada Windows 7.

Command Prompt Commands : A

Append – The append command can be used by programs to open files in another directory as if they were located in the current directory.
Arp – The arp command is used to display or change entries in the ARP cache.
Assoc – The assoc command is used to display or change the file type associated with a particular file extension.
At – The at command is used to schedule commands and other programs to run at a specific date and time.
Attrib – The attrib command is used to change the attributes of a single file or a directory.
Auditpol – The auditpol command is used to display or change audit policies.

Command Prompt Commands : B
Bcdedit – The bcdedit command is used to view or make changes to Boot Configuration Data.
Bitsadmin – The bitsadmin command is used to create, manage, and monitor download and upload jobs.
Bootcfg – The bootcfg command is used to build, modify, or view the contents of the boot.ini file, a hidden file that is used to identify in what folder, on which partition, and on which hard drive Windows is located.
Break – The break command sets or clears extended CTRL+C checking on DOS systems.
Command Prompt Commands : C
Cacls – The cacls command is used to display or change access control lists of files.
Call – The call command is used to run a script or batch program from within another script or batch program.
Certreq – The certreq command is used to perform various certification authority (CA) certificate functions.
Certutil – The certutil command is used to dump and display certification authority (CA) configuration information in addition to other CA functions.
Change – The change command changes various terminal server settings like install modes, COM port mappings, and logons.
Chcp – The chcp command displays or configures the active code page number.
Chdir – The chdir command is used to display the drive letter and folder that you are currently in. Chdir can also be used to change the drive and/or directory that you want to work in.
Chglogon – The chglogon command enables, disables, or drains terminal server session logins.
Chgport – The chgport command can be used to display or change COM port mappings for DOS compatibility.
Chgusr – The chgusr command is used to change the install mode for the terminal server.
Chkdsk – The chkdsk command, often referred to as check disk, is used to identify and correct certain hard drive errors.
Chkntfs – The chkntfs command is used to configure or display the checking of the disk drive during the Windows boot process.
Choice – The choice command is used within a script or batch program to provide a list of choices and return of the value of that choice to the program.
Cipher – The cipher command shows or changes the encryption status of files and folders on NTFS partitions.
Clip – The clip command is used to redirect the output from any command to the clipboard in Windows.
Cls – The cls command clears the screen of all previously entered commands and other text.
Cmd – The cmd command starts a new instance of the command interpreter.
Cmdkey – The cmdkey command is used to show, create, and remove stored user names and passwords.
Cmstp – The cmstp command installs or uninstalls a Connection Manager service profile.
Color – The color command is used to change the colors of the text and background within the Command Prompt window.
Comp – The comp command is used to compare the contents of two files or sets of files.
Compact – The compact command is used to show or change the compression state of files and directories on NTFS partitions.
Convert – The convert command is used to convert FAT or FAT32 formatted volumes to the NTFS format.
Copy – The copy command does simply that – it copies one or more files from one location to another.
Command Prompt Command : D
Date – The date command is used to show or change the current date.
Debug – The debug command starts Debug, a command line application used to test and edit programs.
Defrag – The defrag command is used to defragment a drive you specify. The defrag command is the command line version of Microsoft’s Disk Defragmenter.
Del – The del command is used to delete one or more files. The del command is the same as the erase command.
Dir – The dir command is used to display a list of files and folders contained inside the folder that you are currently working in. The dir command also displays other important information like the hard drive’s serial number, the total number of files listed, their combined size, the total amount of free space left on the drive, and more.
Diskcomp – The diskcomp command is used to compare the contents of two floppy disks.
Diskcopy – The diskcopy command is used to copy the entire contents of one floppy disk to another.
Diskpart – The diskpart command is used to create, manage, and delete hard drive partitions.
Diskraid – The diskraid command starts the DiskRAID tool which is used to manage and configure RAID arrays.
Dism – The dism command starts the Deployment Image Servicing and Management tool (DISM). The DISM tool is used to manage features in Windows images.
Dispdiag – The dispdiag command is used to output a log of information about the display system.
Doskey – The doskey command is used to edit command lines, create macros, and recall previously entered commands.
Driverquery – The driverquery command is used to show a list of all installed drivers.
Command Prompt Commands : E
Echo – The echo command is used to show messages, most commonly from within script or batch files. The echo command can also be used to turn the echoing feature on or off.
Edit – The edit command starts the MS-DOS Editor tool which is used to create and modify text files.
Edlin – The edlin command starts the Edlin tool which is used to create and modify text files from the command line.
Endlocal – The endlocal command is used to end the localization of environment changes inside a batch or script file.
Erase – The erase command is used to delete one or more files. The erase command is the same as the del command.
Eventcreate – The eventcreate command is used to create a custom event in an event log.
Exe2bin – The exe2bin command is used to convert a file of the EXE file type (executable file) to a binary file.
Exit – The exit command is used to end the Command Prompt session that you’re currently working in.
Expand – The expand command is used to extract a single file or a group of files from a compressed file.
Command Prompt Commands : F
Fastopen – The fastopen command is used to add a program’s hard drive location to a special list stored in memory, potentially improving the program’s launch time by removing the need for MS-DOS to locate the application on the drive.
Fc – The fc command is used to compare two individual or sets of files and then show the differences between them.
Find – The find command is used to search for a specified text string in one or more files.
Findstr – The findstr command is used to find text string patterns in one or more files.
Finger – The finger command is used to return information about one or more users on a remote computer that’s running the Finger service.
For – The for command is used to run a specified command for each file in a set of files. The for command is most often used within a batch or script file.
Forfiles – The forfiles command selects one or more files to execute a specified command on. The forfiles command is most often used within a batch or script file.
Format – The format command is used to format a drive in the file system that you specify.
Fsutil – The fsutil command is used to perform various FAT and NTFS file system tasks like managing reparse points and sparse files, dismounting a volume, and extending a volume.
Ftp – The ftp command can used to transfer files to and from another computer. The remote computer must be operating as an FTP server.
Ftype – The ftype command is used to define a default program to open a specified file type.
Command Prompt Commands : G
Getmac – The getmac command is used to display the media access control (MAC) address of all the network controllers on a system.
Goto – The goto command is used in a batch or script file to direct the command process to a labeled line in the script.
Gpresult – The gpresult command is used to display Group Policy settings.
Gpupdate – The gpupdate command is used to update Group Policy settings.
Graftabl – The graftabl command is used to enable the ability of Windows to display an extended character set in graphics mode.
Graphics – The graphics command is used to load a program that can print graphics.
Command Prompt Commands : H
Help – The help command provides more detailed information on any of the other Command Prompt commands.
Hostname – The hostname command displays the name of the current host.
Command Prompt Commands : I
Icacls – The icacls command is used to display or change access control lists of files. The icacls command is an updated version of the cacls command.
If – The if command is used to perform conditional functions in a batch file.
Ipconfig – The ipconfig command is used to display detailed IP information for each network adapter utilizing TCP/IP. The ipconfig command can also be used to release and renew IP addresses on systems configured to receive them via a DHCP server.
Irftp – The irftp command is used to transmit files over an infrared link.
Iscsicli – The iscsicli command starts the Microsoft iSCSI Initiator, used to manage iSCSI.
Command Prompt Commands : L
Label – The label command is used to manage the volume label of a disk.
Loadfix – The loadfix command is used to load the specified program in the first 64K of memory and then runs the program.
Lodctr – The lodctr command is used to update registry values related to performance counters.
Logman – The logman command is used to create and manage Event Trace Session and Performance logs. The logman command also supports many functions of Performance Monitor.
Logoff – The logoff command is used to terminate a session.
Command Prompt Commands : M
Mem – The mem command shows information about used and free memory areas and programs that are currently loaded into memory in the MS-DOS subsystem.
Mkdir (Md) – The mkdir command is used to create a new folder.
Mklink – The mklink command is used to create a symbolic link.
Mmc – The mmc command can be used to open Microsoft Management Console in author mode or to a specific snap-in console, all from the Command Prompt.
Mode – The mode command is used to configure system devices, most often COM and LPT ports.
More – The more command is used to display the information contained in a text file. The more command can also be used to paginate the results of any other Command Prompt command.
Mountvol – The mountvol command is used to display, create, or remove volume mount points.
Move – The move command is used to move one or files from one folder to another. The move command is also used to rename directories.
Msg – The msg command is used to send a message to a user.
Msiexec – The msiexec command is used to start Windows Installer, a tool used to install and configure software.
Command Prompt Commands : O
Openfiles – Queries, displays, or disconnects open files or files opened by network users.
Command Prompt Commands : P
Path – Displays or sets a search path for executable files.
Pause – Suspends processing of a batch file and displays a message.
Popd – Restores the previous value of the current directory saved by PUSHD.
Print – Prints a text file.
Prompt – Changes the Windows command prompt.
Pushd – Saves the current directory then changes it.
Command Prompt Commands : R
Rd – Removes a directory.
Recover – Recovers readable information from a bad or defective disk.
Rem – Designates comments (remarks) in batch files.
Ren – Renames a file or files.
Replace – Replaces files.
Rmdir – Removes a directory.
Robocopy – Advanced utility to copy files and directory trees.
Command Prompt Commands : S
Set – Displays, sets, or removes environment variables for current session.
Setlocal – Begins localization of environment changes in a batch file.
Setx – Sets environment variables.
Sc – Displays or configures services (background processes).
Schtasks – Schedules commands and programs to run on a computer.
Shift – Shifts the position of replaceable parameters in batch files.
Shutdown – Allows proper local or remote shutdown of machine.
Sort – Sorts input.
Start – Starts a separate window to run a specified program or command.
Subst – Associates a path with a drive letter.
Systeminfo – Displays machine specific properties and configuration.
Command Prompt Commands : T
Takeown – Allows an administrator to take ownership of a file.
Tasklist – Displays all currently running tasks including services.
Taskkill – Kill or stop a running process or application.
Time – Displays or sets the system time.
Timeout – Pauses the command processor for the specified number of seconds.
Title – Sets the window title for a CMD.EXE session.
Tree – Graphically displays the directory structure of a drive or path.
Type – Displays the contents of a text file.
Command Prompt Commands : V
Ver – Displays the Windows version.
Verify – Tells Windows whether to verify that your files are written correctly to a disk.
Vol – Displays a disk volume label and serial number.
Vssadmin – Volume Shadow Copy Service administration tool.
Command Prompt Commands : W
Where – Displays the location of files that match a search pattern.
Wmic – Displays WMI information inside interactive command shell.
Command Prompt Commands : X
Xcopy – Copies files and directory trees.

Read More >>

Read more ...

Rabu, 19 Desember 2012

Cara Membuat Induktor Toroida Inti Ferit


Selain induktor inti udara, terdapat juga induktor yang menggunakan inti ferit bead atau toroida. Komponen ferit bead tersedia dalam berbagai nilai µ (permeabilitas) dan ukuran, tetapi kebanyakan memiliki diameter kurang dari 0,25 inchi. Penggunaan induktor dengan ferit bead cukup banyak dalam masalah peredaman osilasi parasitik.
Selain digunakan untuk membuat Induktor toroida, dasarnya ferit bead banyak dipakai sebagai peredam parasitik pada VHF dan UHF pada terminal masukan dan keluaaran penguat RF. Aplikasi praktis lainnya adalah dalam jaringan dekopling yang dipakai untuk mencegah mengalirnya energi RF yang tidak diinginkan dari satu bagian rangkaian ke bagian lain rangkaian lainnya. Ferit bead juga dipakai untuk meredam interferensi RF dan interferensi TV dalam perangkat Hifi dan TV.
Dalam beberapa rangkaian RF VHF dan UHF, hanya diperlukan pemakaian satu cincin ferit atau lebih pada seutas kawat untuk menghasilkan RFC (Radio Frequency Cooke). Beberapa lilitan kawat tembaga dapat dibuat pada cincin ferit yang lebih besar untuk meningkatkan induktansi efektif lilitan tersebut. Sebuah induktor tanpa inti (inti udara) akan meningkat dengan sangat signifikan nilai induktansi nya apabila diselipkan sebuah ferit di dalamnya.
Untuk membuat induktor toroida atau inti ferit bead, perlu diketahui jumlah lilitan yang dipakai pada induktor toroida yang dapat dihitung dengan mengetahui nilai AL, yaitu indeks induktansi untuk ukuran inti dan permeabilitas yang dipakai. Tabel-tabel di bawah ini memberikan informasi-informasi penting untuk inti toroida.
Nomor tipe toroida untuk suatu inti tersusun dari penunjuk ukuran inti pada kolom kiri atas, ditambah nomor campurannya. Sebagai contoh, inti berdiameter setengah inchi dengan campuran nomor 2 diberi nomor tipe T-50-2. Nilai AL adalah 49 dan frekuensi operasi yang dianjurkan adalah 1 sampai 30 MHz. Permeabilitas inti tersebut adalah 10.
Banyaknya lilitan untuk induktansi tertentu pada satu jenis inti dapat ditentukan dengan rumus :
Contoh : Dikehendaki induktor toroida dengan nilai induktansi 10 µH pada inti T-50-2, sesuai rumus di atas. Maka diketahui nilai induktansi adalah 10 µH dan indeks induktansi (AL) adalah 49. Maka jumlah lilitan kawat adalah :
Dengan demikian, untuk membuat induktor toroida atau inti ferit bead dengan induktansi 10 µH pada inti Toroida tipe T-50-2, dibutuhkan 45 lilitan. Kita dapat gunakan kawat ukuran 24 ke atas sesuai tabel jumlah lilitan. Di tabel tersebut ditunjukkan banyaknya lilitan maksimum yang dapat dibuat pada suatu tipe inti. Sebagai contoh, inti T-68 akan berisi 49 lilit kawat nomor 24, dan 101 lilit untuk kawat nomor 30, dan seterusnya.
Read More >>

Read more ...

Selasa, 18 Desember 2012

Solder Gun DEKO Presto DQ-77N



DEKO Presto DQ-77N adalah Soleder. Solder Gun ini saya recomendasikan buat rekan-rekan seprofesi yang sudah profesional.

Berikut spesifikasi DEKO Presto DQ-77N
  • Daya solder ini 20W - 200W dengan suhu bisa mencapai 330 Derajat Celcius.
  • Daya Constant hanya membutuhkan daya 20W.
  • Dengan daya yang cukup kecil ini (20W) Solder ini cepat panas (hanya butuh waktu 1 -2 menit saja pada kondisi voltase 220v).
  • Dengan daya Constant 20W sudah mampu melelehkan timah pada Mainboard/Chasis/PCB Elektronik dengan mudah dan gampang karna Solder ini menggunakan CERAMIC HEATHER dan STAINLESS PIPE sehingga akan tahan lama, asal kan penggunaannya jangan kasar misal untuk mencongkel kaki part pada saat men-solder, dan jangan membersihkan mata solder dengan mengerik atau ampelas dll, cukup pakae tisyu, kertas, kapas, atau ga di bersikan jg ga papa, dia ttp bersih kok selama cuma untuk mensolder timah bukan plastik ato yg lainnya,,, klu ingin mensolder plastik gunakan saja solder biasa yang harganya cuma 7ribuan. hehehe,,,
  • Oh,, iya satu lagi kawan,,, janganlah menekan TRIGGER SWICTH melebihi dari 30 detik karna akan menyebabkan panas berlebih pada HEATHER yang bisa menyebabkan komponen/part jadi rusak kecuali pada kondisi tertentu saja, misalnya kondisi voltase sedang down dibawah 180v maka menekan TRIGGER SWITCH di perlukan agar mata solder panas, atau pada saat kita akan mensolder pada solderan kaki part yang besar misal FlayBack,Tuner TV dll maka kita bisa menekan TRIGGER SWITCH untuk menaikkan suhu panas pada HEATHER
  • Tambahan: Solder ini bisa menggunakan Elemen Solder Goot yang menggunakan tiga kabel
Maaf bukan promosi atau pun jualan cuma sekedar sharing untuk teman-taman saja. Demikian Semoga Bermanfaat
Read More >>

Read more ...
© 2011 copyright www.belajarber-sama.blogspot.com Themes By Gresik edited by belajarber-sama.blogspot
Free Download Software Full Crack Keygen Patch Serial