Content originally posted in LPCWare by asbjorn on Fri Mar 16 11:18:46 MST 2012
Hi,
I hope some of you can help me initialize the DAC on the LPC4350, or guide me to some example code. I'm using the LPC-link as debugger connected to the LPC4350-db1 through JTAG. I have previously used the DAC on the LPC1769, initializing by setting the PINSEL1 to p0.26, but is it the same pin register on the LPC4350?
Best Regards
Asbjørn Klausen
Hi,
I hope some of you can help me initialize the DAC on the LPC4350, or guide me to some example code. I'm using the LPC-link as debugger connected to the LPC4350-db1 through JTAG. I have previously used the DAC on the LPC1769, initializing by setting the PINSEL1 to p0.26, but is it the same pin register on the LPC4350?
Best Regards
Asbjørn Klausen
Hi Asbjørn,
Currently Diolan do not have DAC examples, but the NXP library contains DAC driver (lpc4350_dac.c). It is simple and, I think, DAC can be set operational with DAC_Init(), DAC_UpdateValue() and DAC_SetBias() functions. For pin configuration, look at chapters 15.4.6 - 15.4.8 of the LPC4350 user manual.
Best Regards,
Maxim Kombarov