Documentation

Parallel Port Digital Input Status Bits

Parallel Port Digital Input Status Bits block

Library

Simulink® Real-Time™ Library for Parallel Port

Scaling Input to Output

I/O Module Input

Block Output Data Type

Scaling

TTL

Double (Format:5 1-bit Channels)

Double:
TTL low = 0.0

TTL high = 1.0

uint8 (Format:One 5-bit Port)

uint8:
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 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,

0x300
Format

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

  • 5 1–bit Channels

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

  • One 5–bit Port

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

Channels

Enter a vector of numbers between 1 and 5. This parameter appears only if you select 5 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).

Was this topic helpful?