Skip to Main Content Skip to Search
Product Documentation

Parallel Port Digital Input Status Bits - Parallel Port Digital Input Status Bits block

Library

xPC Target Library for Parallel Port

Scaling Input to Output

Hardware 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 PC 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.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS