Wiki

The most recent version of this page is a draft.DiffThis version (10 Feb 2021 12:42) was approved by Sanjeeva Reddy.

This is an old revision of the document!


Click here to return to the Sources page

Pulse Generator


Description

The Pulse Generator block generates pulse at different frequencies with a configurable duty cycle.

Usage

This block has checkbox to enabled or disabled the algorithm. Check the box to enable this algorithm. It has the text fields for frequency and duty cycle to generate the pulse at different frequencies with different “ON” and “OFF” time of the pulse.It has the radio button to round the coefficients.

Targets Supported

NameADSP-214xx(Sample)ADSP-214xx(Block)ADSP-215xx/ADSP-SC5xx(Sample)ADSP-215xx/ADSP-SC5xx(Block)
Pulse Generator No YesNo Yes


Pins

Output

NameTypeDescription
Output0ControlOutput channel 0


Configurable Parameters

GUI Parameter NameDefault ValueRangeFunction Description
Frequency0.010.01 to 0.5* sample rateSets the frequency for pulse
ONTrueTrue/FalseEnable/Disable the algorithm for the channel. When the algorithm is disabled, the output pin will send out a constant value 0.0
DutyCycle2.080 to 100 Controls the ON time and OFF time of the pulse
RoundCoefffalse True/False Enable/Disable the frequency step rounding


DSP Parameters

Parameter NameDescriptionADSP-214xx/SC5xx/215xx
FrequencyStep size for generating the pulse for specified frequencyFloat
DutyCycleControls the ON and OFF time of the pulseFloat
ONEnable/Disable the moduleFloat
RoundCoeffRoundoff the frequency coefficientFloat


DSP Parameter Computation

  1. Frequency = fs/FS + 0.0000001 (if rounded)
  2. Frequency = fs/FS (not rounded)
  3. DutyCycle = DutyCylce/100


Where fs is frequency and FS is the sampling rate

/srv/wiki.analog.com/data/pages/resources/tools-software/sigmastudiov2/modules/sources/pulsewithdynamicdutycycle.txt · Last modified: 13 May 2021 08:45 by Prasad Kamath