We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi everyone
I have question about DAC, I'm trying to make function generator with my LPC2378? I really don't know what PCLK_DAC is use for, can someone give some literature to read, or short explanation or code example ?
Thank you,
Looking forward to your replyBojana
Hello Bojana,
In the ARM7 chip architecture, each peripheral (UART, ADC, Timer, DAC, ...) has a base clock which operates its digital functions. The clock frequency for each peripheral can be selected individually and is referred to as PCLK. Configuring which one of the available clock sources will be used for a peripheral (internal RC, main oscillator, etc.) allows you to control the amount of power used by the peripheral, and determine the clock rate at which the peripheral performs some functions.
In case of DAC, it is an analog peripheral which has less dependency on digital operations. The control register DACR still requires a clock source for reading and writing, and this is derived from PCLK. The settling time of this DAC has two settings, 1us and 2.5us by the BIAS bit. This determines the maximum rate of change you can expect for your function generator.
Please find the documentation for LPC2300 series at this link.
-arw