Jump to main content

##

# 2.89.6 PWMx_OnCountSet Function

## C

    /* x = PWM instance number */

    void PWMx_OnCountSet (uint16_t onCount)

## Summary

Sets the on-time period of the PWM signal

## Description

Sets the on-time period of the PWM signal

## Precondition

None

## Parameters

Param | Description
--- | ---
onCount | on-time period of the PWM signal

## Returns

None

## Example

    PWM0_OnCountSet(1000);

## Remarks

None