max Property

Top  Previous  Next

Gets the value that represents 100% pulse width.

Syntax

Cell.PWM[n].max

Property Value

The value for a pulse width that will create a 100% duty cycle.

Remarks

Duty cycle for a pulse width value is relative to max. For example, a pulse width value that is half of max will create a 50% duty cycle.

 

The value of the max property varies with frequency.

 

This property cannot be set.

Examples

See example under width property.