Parallel Port Digital Input Status Bits

Parallel Port Digital Input Status Bits block

  • Library:
  • Simulink Real-Time / Digital Input / Parallel Port

Description

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

Parameters

expand all

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.

Programmatic Use

Block Parameter: BaseAddress

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

0x300

Programmatic Use

Block Parameter: BaseAddress

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.

  • Single 5–bit Port

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

Programmatic Use

Block Parameter: Format

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]

Programmatic Use

Block Parameter: Channels

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

Programmatic Use

Block Parameter: SampleTime

See Also

Introduced in R2007a