Download library here.

Check the tutorial page for an explanation about DAC.


DAC


#include "lpc17xx.h"
#include "lpc_types.h"
#include "dac.h"

int main (void)
{
    DACInit();				//Initialize DAC

    while(1)
    {
        DACSetValue(500);	//Set DAC value to (0,5 * 3V3) 
    }
}

 


Copyright 2011. Joomla 1.7 templates - Joomla template maker. The Simplecortex is developed by BRC-Electronics