AN 509: Multiplexing SDIO Devices Using Altera MAX Series

ID 683683
Date 9/22/2014

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:

  1. 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.)
  2. 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.
  3. After installation, you must configure the Direct-IO program. Open the Windows control panel and click the Direct IO icon.
  4. 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.
  5. Configure the parallel port to ECP by changing the BIOS settings when you start your PC.
  6. Next, select the Security tab of the Direct IO control panel and browse to the directory path of the ParDS2W.exe program.
  7. Click Open and then click Add to add the program. The path of this utility is shown in the Allowed Processes field. Click OK.
  8. 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.
  9. 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.
  10. 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.
  11. 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.