This is the documentation for the latest (main) development branch of mcuxpresso sdk. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

vref_1_example

Overview

The vref example shows how to use the vref driver.

In this example, the adc16 module is initiealized and used to measure the VREF output voltage. So, it cannot use interal VREF as the reference voltage. Instead, it can use VDD_ANA or VREFH, for detailed information, please refer to device datasheet.

Then, user should configure the VREF output pin as the ADC16’s sample input. When running the project, it will measure the VREF output voltage under different trim value.

Note: This example is only used for platforms that have the UTRIM[TRIM2V1] function.

Supported Boards