MIOS Digital Out

Output driver for MIOS 16-bit Parallel Port I/O Submodule (MPIOSM)

Library

Target Support Package FM5/ MPC555 Driver Library/ Modular Input/Output System (MIOS1)

Description

The MIOS Digital Out block sets the state of selected pins (bits) on the MIOS 16-bit Parallel Port I/O Submodule (MPIOSM) of the MPC555. The Bits field specifies a vector of numbers in the range 0..15, corresponding to pins MPIO32B0..MPIO32B15 on the MPIOSM.

The input to the block is a wide vector with one signal element per pin. When the input signal is greater than zero, a logical 1 is written to the corresponding pin. When the input signal is less than or equal to zero, a logical zero is written to the corresponding pin.

If you want to write to several digital output pins at the same sample rate, using a single MIOS Digital Out block with a vector input signal will result in more efficient code. However, if you want to update different output pins at different sample rates, you must use a separate MIOS Digital Out block for each rate.

Refer to section 15.13, "MIOS 16-bit Parallel Port I/O Sub module (MPIOSM)," in the MPC555 User's Manual for further information.

Dialog Box

Bits

A vector of numbers in the range 0..15. Each number corresponds to a pin (MPIO32B0..MPIO32B15) on the MPIOSM.

Initial output level

The value to be placed on the output pins at initialization. This ensures the starting level is always known.

Sample time

The sample time of this block.

  


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