| Target Support Package™ FM5 | ![]() |
Configure Time Processor Unit (TPU3) channel for digital output
Target Support Package FM5/ MPC555 Driver Library/ Time Processor Unit (TPU3)

The TPU3 Digital Out block sets the state of the selected pin (channel) on the TPU3 submodule of the MPC555 (or MPC565 or MPC566). The Channel priority field specifies a number in the range 0..15, corresponding to the 16 independent channels on each TPU3 module (A, B or C). You can use each of these channels independently, so you could use up to 32 of these blocks (48 for an MPC565 or MPC566) specifying different channels at once.
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 channel.
Refer to Section 17, "Time Processor Unit 3", in the MPC555 User's Manual and the TPU3 Digital I/O Application Programming Note (search for "TPUPN18/D") for further information about the TPU3.
For an example showing how to use this block see the mpc555rt_io demo.

Select TPU module A, B or C; each has 16 channels. Note that the MPC555 only has modules A and B. MPC565 and MPC566 also have module C. An error will be thrown if you select C and your target processor does not support this.
Choose 0-15.
Choose Low, Medium or High.
The host CPU makes a channel active by assigning it one of the three priorities. You choose the order in which channels are serviced by setting the channel number and assigned priority. The order in which channels are serviced is determined by assigned priority first, followed by channel number (lowest first).
Default -1: this setting specifies that the block inherits its sample time from the block connected to its input (inheritance) (unless it is in a triggered subsystem). It makes no sense to sample faster than your input is changing, so normally you should leave this at the default.
TPU Digital Out doesn't use a timebase. The output pin is written to at the rate specified by the block sample time. See Time Processor Unit (TPU3) Configuration Parameters for details on settings for the TCR1 clock. See also the TPU3 Digital In Application Programming Note (search for "TPUPN18/D").
![]() | TPU3 Digital In | TPU3 Fast Quadrature Decode | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |