1.33.1.4 AC_SetVddScalar Function

C

void AC_SetVddScalar (AC_CHANNEL channel_id , uint8_t vdd_scalar)

Summary

Sets VDDSCALER value of a comparator.

Description

This function sets VDDSCALERn of a comparator. The VDDSCALERn associated with a comparator (COMPn) can be used as one of the inputs to the comparator. This allows to set flexible compare voltages.

Precondition

AC_Initialize must have been called for the associated AC instance.

Parameters

Param Description
channel Points to AC Channel
vdd_scalar Scaling factor (6-bits) ranges from 0 to 63.

Returns

None.

Example

AC_SetVddScalar (AC_CHANNEL_0, 0x0B);

Remarks

None.