1.2.2. Setting up a Parallel Port Driven I2C Environment on PC
To set up a parallel port driven I2C environment on your PC, perform the following steps:
- Download a software utility, such as the Maxim parallel port utility, to communicate with the slave in the I2C defined protocol. Install the parallel port software. (The ParDS2W.exe program is used in this example.)
- You must install a parallel port driver to enable access to the parallel port in Windows XP or Windows 2000 for this parallel port utility.
- After installation, you must configure the Direct-IO program. Open the Windows control panel and click the Direct IO icon.
- Enter the Begin and End addresses of your parallel port (normally, this is 378 through 37F; however, confirm your PC’s parallel port address by looking at the settings in Control Panel/System/Hardware/Device Manager/Ports/ECP Printer Port (LPT)/Resources.
- Configure the parallel port to ECP by changing the BIOS settings when you start your PC.
- Next, select the Security tab of the Direct IO control panel and browse to the directory path of the ParDS2W.exe program.
- Click Open and then click Add to add the program. The path of this utility is shown in the Allowed Processes field. Click OK.
- Attach the parallel port I2C dongle that is supplied along with the MDN-B2 demo board. Use an extension cord, if necessary, to extend the parallel port connection closer to your demo board.
- Attach the 4-pin socket on the pigtail of the I2C parallel port dongle to the I2C header (JP3) of the demo board so that the red mark on the socket meets pin 1 on the JP3 header.
- Open the ParDS2W program, select the appropriate parallel port address of your PC (as seen when configuring Direct IO) and set the 2-Wire Device Address to 00h.
- Finally, you can test the I2C setup on the Test Circuit tab to see if you have a Test PASS message in the Status window. If you do, the I2C environment is set.
Did you find the information on this page useful?