PEController BSP v4
Board Support Package for PEController from Taraz Technologies
 
Loading...
Searching...
No Matches
PWM Info
BSP » PWM

Contains the declaration and procedures relating the base PWM drivers. More...

Modules

 Type Definitions
 
 Structures
 
 Functions
 

Detailed Description

The PWM channels can be configured in individual / inverted pair form

  1. Individual PWM:
    To configure the channel for Individual PWM use BSP_PWM_ConfigChannel(). Once configured the duty cycle of the relevant channel can be updated by the function BSP_PWM_UpdateChannelDuty().
  2. Inverted Pair PWM:
    To configure the channel for Individual PWM use BSP_PWM_ConfigInvertedPair(). Once configured the duty cycle of the relevant channels can be updated by the function BSP_PWM_UpdatePairDuty().

The output of the PWM timers can be controlled using the following functions

  1. BSP_PWM_Start: Starts the PWM on required PWM pins
  2. BSP_PWM_Stop: Stops the PWM on required PWM pins
  3. BSP_PWMOut_Enable: Enable / disable the output for required PWM channels
  4. BSP_PWM_Config_Interrupt: Enable / Disable interrupt for a PWM channel as per requirement