USB-I2C/SPI/GPIO Interface Adapters
Published on USB-I2C/SPI/GPIO Interface Adapters (https://dlnware.com)

Home > C/C++ API > PWM (Pulse Width Modulation) Interface > Configuring PWM Interface

Configuring PWM Interface

To start using the PWM Interface, you need to configure and activate the PWM port:

  1. For each channel that you suppose to use:

    • Configure PWM frequency. The higher frequency, the smoother the output signal becomes. Read PWM Frequency [1].

    • Configure the duty cycle. The level of the output signal depends on the duty cycle value. Read PWM Duty Cycle [2].

  2. Enable all channels that you suppose to use. All channels are equal, but every channel can have specific parameters (frequency and duty cycle). Read PWM Channels [3].

  3. Enable the PWM port. When the PWM port is enabled, you can change configuration for each channel but you cannot activate or release channels.

Rating: 
Average: 5 (1 vote)

Links
[1] http://dlnware.com/dll/PWM-Frequency [2] http://dlnware.com/dll/PWM-Duty-Cycle [3] http://dlnware.com/dll/PWM-Channels