MODDMA GPDMA Controller New features: transfer pins to memory buffer under periodic timer control and send double buffers to DAC

Dependents:   FirstTest WaveSim IO-dma-memmem DACDMAfuncgenlib ... more

Revision:
9:e7ecf909e834
Parent:
8:cb4d323ce6fd
Child:
10:3a46c1e383a4
--- a/example2.cpp	Sat Feb 05 08:53:26 2011 +0000
+++ b/example2.cpp	Tue Mar 08 17:47:43 2011 +0000
@@ -40,7 +40,7 @@
     
     // Power up the ADC and set PCLK
     LPC_SC->PCONP    |=  (1UL << 12);
-    LPC_SC->PCLKSEL0 &= ~(3UL << 16); // PCLK = CCLK/4 96M/4 = 24MHz
+    LPC_SC->PCLKSEL0 &= ~(3UL << 24); // PCLK = CCLK/4 96M/4 = 24MHz
     
     // Enable the ADC, 12MHz,  ADC0.0 & .1
     LPC_ADC->ADCR  = (1UL << 21) | (1UL << 8) | (3UL << 0);