3.12.2 DSM with Slew Rate Control
Data Signal Modulator with Slew Rate Control
3.12.2.1 Introduction
The Data Signal Modulator (DSM) is a peripheral that allows the user to mix a data stream, also known as a modulator signal, with a carrier signal to produce a modulated output. Both the carrier and the modulator signals are supplied to the DSM module either internally, from the output of a peripheral, or externally through an input pin. The modulated output signal is generated by performing a logical “AND” operation of both the carrier and modulator signals, and then provided to the DSM_out pin. This variant of the module has a Slew Rate Control.
3.12.2.2 Supported Device Families
PIC12/16F182x | PIC12/16F184x | PIC18F-K80 |
3.12.2.3 Required Header Files:
#include "mcc_generated_files/dsm/dsm.h"
3.12.2.4 Module Documentation
3.12.2.4.1 DSM
This file contains the API prototypes for the DSM module.
Module description
This file contains the API prototypes for the DSM module.
Functions
void DSM_Initialize (void)
Initializes the DSM module. This is called only once before calling other DSM APIs.
void DSM_ManualModulationSet (void)
Sets the modulation source signal to high.
void DSM_ManualModulationClear (void)
Sets the modulation source signal to low.
void DSM_ManualModulationToggle (void)
Toggles the modulation source signal.
void DSM_ModulationStart (void)
Enables the modulator and starts the signal modulation.
void DSM_ModulationStop (void)
Disables the modulator and stops the signal modulation.
void DSM_ModulatorOutputEnable (void)
Enables the modulation pin output.
void DSM_ModulatorOutputDisable (void)
Disables the modulation pin output.
Function Documentation
DSM_Initialize()
void DSM_Initialize (void )
Initializes the DSM module. This is called only once before calling other DSM APIs.
None. |
None. |
DSM_ManualModulationClear()
void DSM_ManualModulationClear (void )
Sets the modulation source signal to low.
DSM_Initialize() is already called. |
None. |
None. |
DSM_ManualModulationSet()
void DSM_ManualModulationSet (void )
Sets the modulation source signal to high.
DSM_Initialize() is already called. |
None. |
None. |
DSM_ManualModulationToggle()
void DSM_ManualModulationToggle (void )
Toggles the modulation source signal.
DSM_Initialize() is already called. |
None. |
None. |
DSM_ModulationStart()
void DSM_ModulationStart (void )
Enables the modulator and starts the signal modulation.
DSM_Initialize() is already called. |
None. |
None. |
DSM_ModulationStop()
void DSM_ModulationStop (void )
Disables the modulator and stops the signal modulation.
DSM_Initialize() is already called. |
None. |
None. |
DSM_ModulatorOutputDisable()
void DSM_ModulatorOutputDisable (void )
Disables the modulation pin output.
DSM_Initialize() is already called. |
None. |
None. |
DSM_ModulatorOutputEnable()
void DSM_ModulatorOutputEnable (void )
Enables the modulation pin output.
DSM_Initialize() is already called. |
None. |
None. |
3.12.2.5 File Documentation
3.12.2.5.1 source/dsm.c File Reference
This file contains the API implementations for the DSM module.
#include <xc.h> #include "../dsm.h"
Functions
void DSM_Initialize (void)
Initializes the DSM module. This is called only once before calling other DSM APIs.
void DSM_ManualModulationSet (void)
Sets the modulation source signal to high.
void DSM_ManualModulationClear (void)
Sets the modulation source signal to low.
void DSM_ManualModulationToggle (void)
Toggles the modulation source signal.
void DSM_ModulationStart (void)
Enables the modulator and starts the signal modulation.
void DSM_ModulationStop (void)
Disables the modulator and stops the signal modulation.
void DSM_ModulatorOutputEnable (void)
Enables the modulation pin output.
void DSM_ModulatorOutputDisable (void)
Disables the modulation pin output.
Detailed Description
This file contains the API implementations for the DSM module.
DSM Generated Driver File.
3.12.2.5.2 source/dsm.h File Reference
#include <stdint.h>
Functions
void DSM_Initialize (void)
Initializes the DSM module. This is called only once before calling other DSM APIs.
void DSM_ManualModulationSet (void)
Sets the modulation source signal to high.
void DSM_ManualModulationClear (void)
Sets the modulation source signal to low.
void DSM_ManualModulationToggle (void)
Toggles the modulation source signal.
void DSM_ModulationStart (void)
Enables the modulator and starts the signal modulation.
void DSM_ModulationStop (void)
Disables the modulator and stops the signal modulation.
void DSM_ModulatorOutputEnable (void)
Enables the modulation pin output.
void DSM_ModulatorOutputDisable (void)
Disables the modulation pin output.