1.2.1.4 1.3.1.2 1.4.1.2 1.5.1.2 1.6.1.4 1.7.1.4 1.29.1.2 1.30.1.4 1.31.1.4 1.32.1.4 1.33.1.4 1.37.1.4 1.38.1.2 1.40.1.2 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.