Parallel Port Digital Input

Parallel Port Digital Input block


Simulink® Real-Time™ Library for Parallel Port

Scaling Input to Output

I/O Module Input

Block Output Data Type



Double (Format: 8 1-bit Channels)

TTL low = 0.0

TTL high = 1.0

uint8 (Format: One 8-bit Port)

TTL low corresponding bit is clear

TTL high corresponding bit is set

Block Parameters

Base address

Select a parallel port base address. This address depends on the target computer BIOS. From the list, select one of the following. If your base address is not one of the supplied standard base addresses, select Other and enter your base address in Alternate base address.

  • 0x3bc

  • 0x378

  • ox278

  • Other

Alternate base address

Enter an alternate parallel port base address, in hexadecimal. This parameter appears only if you select Other for Base address. For example,


From the list, select one of the following modes to specify how to treat data:

  • 8 1–bit Channels

    Treats data as individual bits. Configures block to accept up to eight 1-bit channels.

  • One 8–bit Port

    Treats data as a single byte. Configures block to accept one 8-bit port.


Enter a vector of numbers between 1 and 8. This parameter appears only if you select 8 1–bit Channels for Format. For example,

[1, 3]
Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

Introduced in R2007a

Was this topic helpful?