This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ADC Data abort

I am having a data abort problem when I initialize the AD converter of the LPC2103.
I am using uVision3, and here the code that is causing problem:

PINSEL1 |= 0x00030000;
 ADCR = 0x00200404;
ADCR |= 0x00010000;
when I get to the second line, I got a message: "data abort: Thumb Instruction at 000001C0H, memory access at e0034000H.
If I checked the assembly code I am just storing 0x00200404 at the address E0034000H. From the date sheet, I saw that this is the base address of the APB peripherie ADC, so I really don't see why it is not working.
Could some please help me?

Thanks in advance
Gaetan

0