| Signal Processing Blockset™ | ![]() |
Signal Processing Sources
dspsrcs4
Signal Management / Switches and Counters
dspswit3
The Multiphase Clock block generates a sample-based 1-by-N vector of clock signals, where you specify the integer N in the Number of phases parameter. Each of the N phases has the same frequency, f, specified in hertz by the Clock frequency parameter.
The clock signal indexed by the Starting phase parameter is the first to become active, at t=0. The other signals in the output vector become active in turn, each one lagging the preceding signal's activation by 1/(N*f) seconds, the phase interval. The period of the sample-based output is therefore 1/(N*f) seconds.
The active level can be either high (1) or low (0), as specified by the Active level (polarity) parameter. The duration of the active level, D, is set by the Number of phase intervals over which the clock is active. This value, which can be an integer value between 1 and N-1, specifies the number of phase intervals that each signal should remain in the active state after becoming active. The active duty cycle of the signal is D/N.
Configure the Multiphase Clock block in the model below to generate a 100 Hz five-phase output in which the third signal is first to become active. Use a high active level with a duration of one interval.

The corresponding settings are as follows:
Clock frequency = 100
Number of phases = 5
Starting phase = 3
Number of phase intervals over which the clock is active = 1
Active level (polarity) = High (1)
The Scope window below shows the Multiphase Clock block's output for these settings. Note that the first active level appears at t=0 on y(3), the second active level appears at t=0.002 on y(4), the third active level appears at t=0.004 on y(5), the fourth active level appears at t=0.006 on y(1), and the fifth active level appears at t=0.008 on y(2). Each signal becomes active 1/(5*100) seconds after the previous signal.

To experiment further, try changing the Number of phase intervals over which clock is active setting to 3 so that the active-level duration is three phase intervals (60% duty cycle).

Opening this dialog causes a running simulation to pause. See Changing Source Block Parameters During Simulation in the online Simulink documentation for details.
The frequency of all output clock signals.
The number of different phases, N, in the output vector.
The vector index of the output signal to first become active.
The duration of the active level for every output signal.
The active level, High (1) or Low (0).
The output data type.
Double-precision floating point
Single-precision floating point
Boolean
| Clock | Simulink |
| Counter | Signal Processing Blockset |
| Pulse Generator | Simulink |
| Event-Count Comparator | Signal Processing Blockset |
![]() | Modified Covariance Method | Multiport Selector | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |