===============================================================================================
                               DAC example program
===============================================================================================
Copyright(C) Redpine Signals 2016
All rights reserved by Redpine Signals.

This program should be used on your own responsibility.
Redpine Signals assumes no responsibility for any losses
incurred by customers or third parties arising from the use of this file. 

===============================================================================================

===============================================================================================                                                       
Function description:
===============================================================================================
This example explain the DAC functionality in static mode.
here input sample fed to DAC input register and generate DAC output on ULP_GPIO_4.
Following configurations are used in example.
1. DAC operation mode    : Static mode
2. DAC output GPIO       : ULP_GPIO4
3. Reference LDO voltage : 2.8V(Max output voltage of DAC is 2.8V)
===============================================================================================
Environment
===============================================================================================
Test Board:
---------------------
Smark EVK 

Assistance software:
---------------------
None

===============================================================================================
Usage Procedure:
===============================================================================================
compile and run the application.

===============================================================================================
Pass criteria:
===============================================================================================
Measure the voltage on ULP_GPIO4 using voltmeter.
Output voltage = ((Input sample / 2^10) * Vref value)
               = ((0x33A / 1024) * 2.8) = 2.25V.			   
===============================================================================================