| Target Support Package™ FM5 | ![]() |
Output driver for MIOS 16-bit Parallel Port I/O Submodule (MPIOSM)
Target Support Package FM5/ MPC555 Driver Library/ Modular Input/Output System (MIOS1)

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.
Note You are responsible for ensuring that pin assignments of MIOS Digital In and MIOS Digital Out blocks in your model do not conflict. No error checking is performed to detect conditions where the same pin is referenced by both an input and an output block. If such a condition occurs, the behavior of the system is undefined. |

A vector of numbers in the range 0..15. Each number corresponds to a pin (MPIO32B0..MPIO32B15) on the MPIOSM.
The value to be placed on the output pins at initialization. This ensures the starting level is always known.
The sample time of this block.
![]() | MIOS Digital In | MIOS Digital Out (MPWMSM) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |