Content originally posted in LPCWare by akharsa on Wed Feb 23 11:19:07 MST 2011
Hello,
I'm working on a DSP design in wich I need to make use of the ADC along with DMA and also de DAC.
The first problem I got was getting a correct sampling freq at de ADC. With the DAC I can make this using the counter and generating requests from de DAQ. But with the ADC this is not possible.
I was told that a good idea was to use a TIMER Match to generate de requests. For making this, i setup de TIMER and generates de requests. But the DMAREQSEL bit must be '1' for the request to select between MAT0.0 and UART. Obviously I need MAT0.0
The problem is thath the following line:
DMAREQSEL |= 0x01;
Doesn't change de actual value of the register DMAREQSEL (0x4000C1C4). If I pause the debugger and then check for the value of DMAREQSEL it shows me 0x00. But if I manually change this value in the memory watch monitor to 0x01, request are generated but after this te value is again set to 0x00. It seems that my code doesn't update te value.
Does anyone get this type of behaivour?
Thanks in advance,
Alan