Wiki

This version (12 May 2021 14:27) is a draft.
Approvals: 0/1
The Previously approved version (10 May 2021 16:15) is available.Diff

Click here to return to the GPIO Conditioning page

Toggle On-Off



Description


The Toggle On/Off cell toggles its output when it detects a rising edge on its input. The amplitude of the output signal can be set using the drop-down control in the cell's GUI.

Usage


The toggle on/off cell detects rising edges on its input and toggles its output each time another rising edge is encountered. In other words, if the output is zero and a rising edge appears on the input, the output will change to one. Conversely, if the output is one and a rising edge appears on the input, the output will change to zero. The bit to be toggled at the output is chosen using the drop down in the module UI. The other bits (other than the selected one) of the output remain zero.

Targets Supported

NameADSP-214xxADSP-215xx/ADSP-SC5xxADAU145x/146x
—————————————-——————————————————————————————--——————————————-
Toggle On-Off Not supported Not supported Sample


Pins

Input

NameTypeDescription
———————————-——————-————————————————————
Detection inputControlControl Signal input that is detected by the toggle on/off cell
Interface read inputLogicConnected to a software interface register - reads the last stored value at startup

Output

NameTypeDescription
———————————--——————-—————————————————————————————-
Toggle outputControlToggling output. Toggles between zero and one each time a rising edge is detected on the input.
Interface write outputLogicConnected to a software interface register - writes the last output value


Configurable Parameters

GUI Parameter NameDefault ValueRangeFunction Description
—————————————- ———————- ———————- ———————————————————————————————————
BufferVal Bit 0 0 - 30Controls which bit on the output signals will toggle on/off. All other bits remain at zero at all times.


DSP Parameters

Parameter NameDescriptionADAU145x/ADAU146x
————————--———————————————————————————————————————————- ———————————
BitValControls which bit on the output signals will toggle on/off. All other bits remain at zero at all times.Integer32


DSP Parameter Computation


Not applicable

resources/tools-software/sigmastudiov2/modules/gpioconditioning/toggleonoff.txt · Last modified: 12 May 2021 14:27 by Prasad Kamath