ThaiIO.com

repair notebook

PC interface Hardware and computer devices resource,serial port,USB,Parallel port,Wireless.

Today , 2007
May 3rd, 2008

Using Borland C++ Builder to program connection with IO Parallel Port

The fellow programmer that program to connect with computer’s port on Window by using Borland C++ Builder that use the method that I suggested in programming connect to port that is run on DOS. Also, present how to program by MS VC++ 6 for running on Window that is using function of dos.h file, but cannot be used, despite declare #include at the top of program.

First of all, I want to disclaim that I don’t use Borland C++ Builder in programming because I practice just MS VC++ 6 , but trying to search information in the internet , then I find the answer that we have to use in writing function to connect to I/O Port by helping of assembly. I reminded that I used the method of writing in Delphi that you will use it to write within your program or will write as function in binary file. It will be more convenient in using that has how to write like the following, Read the rest of this entry »

May 3rd, 2008

C++ communicate Parallel Port and Serial Port

C language is the one of good complier for interface program via Serial Port,Parallel Port,Card I/O 8255 with output devices.

Programming Microsoft Visual C++ 6 communicating Parallel Port

Outp(port,bytedata)

Send value out port as byte

Outpw(port,worddata)

Send value out port as word

Such as Outp(0×378,0xF1)

Outpd(port,worddata)

Send value out port as byte double words.

inp(port)

Read value as byte from port

inpw(port)

Read value as word from port.

Such as inpw(0×378)

inpd(port)

Read value as double words from port.

You can notice that the structure of function is like programming by VB because Dll File that is used in VB that is written from C. I will not mention the fundamental of communicating port. Read the rest of this entry »

May 2nd, 2008

Programming in Visual C++ 6 to connect with I/O Parallel Port

I have already mentioned the content about C, C++, connecting with PC Port. It’s not too hard. It’s hard at graphics that we write to put together with using, especially program ran on DOS. In this present, programming as Visual is populating because it can be GUI conveniently and not too hard. So, I try to use Microsoft Visual Basic 6 that is in Microsoft Visual Studio 6, for function and step of programming code for connecting port is not much because wizard program of MS VC++6, is created all for us.

In this program, we will use file conio.h that is include file for using function _outp() and _inp()

In this section, I will do as explanation with pictures (Visual Learning), controlling with messages and the arrange of number shown because if you write explanation as the last contexts, you will be hard to understand. Read the rest of this entry »

May 2nd, 2008

C++ communicate Serial Port as polling

I present you about programming by C, version that runs on DOS because there is easier explanation than program as visual that runs on Window that you can notice the article about MS VC++ 6 communicating with Parallel Port and also you can write and try to do by yourself. You can use TurboC because just 1 Mb compiler.

From the part 1, I mentioned about communication as interrupt. In this part, I will present you about communication as polling. The working like this, the flow of data will not be smooth. CPU cannot anticipate that when the new data arrive. It will verify the time with getting and sending data by speed rate that is higher than speed rate that send through keyboard. Read the rest of this entry »

May 2nd, 2008

C++ communicate Serial Port as interrupt

It’s C/C++ in programming to communicate with Serial Port or comport (RS-232). The program I recommend here can communicate between two computers that can send message to each other as interrupt.

For here, we will use Borland C as complier, but you will see me use // that I make for programming explanation. There will be code for reference inter like the following,

Intervector –> use setvect()function for setting the value of IRQ

Intervector –> use getvect()function for the value of IRQ

Intervector –> use for setting of Programmable Interrrupt Controller

Intervector –> use for setting in order to cancel using intervector

Comm Setting –> will use the value in setting rate of Baud rate, the number of bit in transferring data, stop bit, control register FIFO, open DTR-RTS-OUT2. Read the rest of this entry »

May 1st, 2008

Programming in Visual Basic to connect I2C Bus through Serial Port

After studying about communication with data or controlling output devices through Serial Port. In this part, We will learn about programming by Visual Basic through Serial Port for using programming to communicate with Bus system I2C (Inter Integrated Circuit ). You can find more information here http://www.esacademy.com/faq/i2c/.

Why do you have to use this system? Because there will be communication between IC and Module that can order or communicate in many and a long distance that have receiver and sender, the main module or Master to control all working in the system. For another module that is Slave will be controlled. The working of couple modules in this system, will be controlled by 2 signal lines, they have data line and signal line clock in order to use in setting rhythm of working. For taking devices or modules to connect in this system, it can be done by taking module to parallel, will use pressure level of electrical resource in each module will not be equal. Read the rest of this entry »

May 1st, 2008

Creating DLL file by Borland Delphi, connecting IO Parallel Port

As we know that VB can’t program to connect through Parallel Port directly. In the book, there will be explanation that we create DLL files that can write by using whatever language that has the function connecting to port. This website I have ever presented programming by C++, using Inp function for getting value along port and out is sending value out along port.

So now, we will introduce creating DLL file (Dynamic LInk LIbrary) by Borland Delphi, using Assembly programming to help for connecting through port by using the function of Assembly.

IN AL,DX

Get value at port’s position according to value in DX that is kept at AL

OUT DX,AL

Send value in AL to port’s position according to value in DX

Read the rest of this entry »

May 1st, 2008

Writing DLL file by Visual C++ 6, connecting IO Parallel Port

We can’t program by using Visual Basic, then connecting through Parallel port directly. We have to create DLL (Dynamic LInk LIbrary) file in order to borrow function connecting I/O port of the other languages to use. We can program by using functions that can connect port. In this article, I will present programming by C++ first. For someone who likes to program by Borland Delphi, click here. Let’s begin program DII file by MS VC++6 by using function connect with Input and Output of port like this,

  1. _Inp that is function that will read value from input port’s position that has the function like this,

_Inp = read value as byte, we will set function name in order to be use in VB- - - > inpVB

_Inpw = read value as word, we will set function name in order to be used in VB - - - > inpwVB

_Inpd = read value as double words, we will set function name in order to used in VB - - - > inpdwVB Read the rest of this entry »

April 30th, 2008

Programming in Visual Basic to connect modem by using API Function

As I introduce using MSComm 6 for Phone Dial-Up of modem through com port, this part, let’s use API Function that can use API Viewer to find code.

Start by creating new module file, I recommend to use as module file. From my experience in programming, if there is development or solve program, it will be convenient and easy for development. Read the rest of this entry »

April 30th, 2008

Programming in Visual Basic to connect modem by using MSComm6

As I mention about modem, it is modem for internet. Usually, working to connect with modem will have processed program for use, but if experiment for knowledge for one who like programming, it will be useful. It can apply for many.

 

This article will be the fundamental of step of programming and protocol command that is used for Dial-Up Phone, so we begin to know about protocol of modem first.

 

The protocol for connecting with modem

 

For connecting with modem, will have command according to standard of industry that produce modem, is protocol called AT Command in order to send command for controlling or get data from modem. Maybe, there is different command; we can see the form of command from manual of each modem that is bought. For command that is sent to control at modem that we will program, it has AT Command that must be used in the followings, Read the rest of this entry »

amateur sex teen xxx alternative music jazz music viagra 1950 ford stereo receiver dino quest toys by lontic company that sale butter churn MONTEVERDI & YOUNG DESK little rascals cabin fever dvd brobee plush chair gourmet pork Customer contact for RCA camcorder hannah montana uno spin Tramontina Stainless Steel Whistling Tea Kettle - 2 Qt Sony VGN-SR140E/B black pants 3-6 months norelco bg2030 Lego Batman The Tumbler Joker's Ice Cream Surprise dilantes chocolate +Rhymerroadbooks bitty baby snowsuit set Sorry slider apw international oxygen sensors US Marine Corps Perennial Hooded Sweatshirt JTV lab created white sapphire oval loose stone sugar lips tank tops hydraulic hooded peacoat hoover f7428900 test sony ebook PRS-700BC PDR Pharmacopoeia Pocket Dosing Guide 2009 - 9th Edition free mens health care sephora Lorac Croc Mocktail lip gloss collection the twilight saga bookset Sony VGN-SR140E/B kenco sliding windows best 1965 gifts Christmas hurst competition plus install kit 3733167 conair nails glitter gem beauty set bonus set gr1102 great gizmos baby's first christmas lovey carters Bianca Black and White Bath Towels Miller 300026 No 50Hd Heavy Duty Cart Lego Batman's buggy; the escape of mr. freeze bearpaw T410 boho holiday dessert plates Beverages Shop Teen XXX Hardcore free porn videos dating tutorial lesbian BDSM anal creampie Celebs naked old mature anal ethnic pussy asian shemale fuck dating articles Interior Accessories Shop free xxx cheapest viagra in uk cheap viagra viagra rise levitra alternative levitra vs viagra soft tabs cheapest online cialis 24 hour delivery canadian rx drugs bigtits i made free pornstars drunken asian girls BIGNATURALS big fat booty lessons in blow jobs porn fuck free porn videos free anal old mom video milfs amateur blowjob cheapest online diazepam 24 hour delivery cheap levitra rx pills buy lorazepam cheap cialis buy cheapest generic valium purchase new report female zyban order oxazepam prescription cheapest generic xanax viagra order herbal klipal for woman levitra buy drugs online buy herbal tramadol cialis soft tabs levitra cialis best herbal viagra soft tabs uk cialis buy viagra on line viagra levitra women buy cialis online without prescription natural levitra substitutes cheapest generic viagra cyber pharmacy propecia viagra soft tabs studies women
Close
E-mail It