This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540 DMA

Hello,

I'm not able to understand which should be the " DMA source address " setting up a DMA transfer with some ADC channels.

I think it should be the XDATA image of ADCL , ADCH ( 0xBA, 0xBB) , but I have not clear which is the corresponding address in XDATA

  • Hi,

    You are right that the correct DMA source address is the XDATA version of ADCL and ADCH. In fact, you will use ADCL as the source address and then select 16-bit transfer (or use a block transfer of length 2). The address for these are 0x70BA and 0x70BB, cf. Section 2.2.2 of the user guide.

    In the ioCC2540.h file found in the IAR installation, these addresses are defined as X_ADCL and X_ADCH.

  • Hi hec, thank you very much for your reply.