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.

CC2340R5: ADC_CTL1 register can't write

Part Number: CC2340R5

Hello experts!

I want to config CC2340 ADC to do repeatedly single channel conversion with auto mode , and should config ADC.CTL1 register CONSEQ as 2h

but when i access to ADC.CTL1, there is no effect to write anything, even i read back the value of the register, it's always zero. attached my test code for you reference.

uint32_t tempCtl;

/* Enable conversion. This arms the peripheral and can now be triggered */
HWREG(ADC_BASE + ADC_O_CTL0) |= ADC_CTL0_ENC_ON|ADC_CTL0_PWRDN_MANUAL;

/* Read current control register */
tempCtl = HWREG(ADC_BASE + ADC_O_CTL1);

/* Clear trigger-related fields */
tempCtl &= ~(ADC_CTL1_SAMPMODE_M | ADC_CTL1_SC_M | ADC_CTL1_TRIGSRC_M);

/* Set sampling-mode to automatic, and trigger source to software */
tempCtl |= ADC_CTL1_SAMPMODE_AUTO | ADC_CTL1_TRIGSRC_SOFTWARE|ADC_CTL1_CONSEQ_REPEATSINGLE;

/* Write back control register */
HWREG(ADC_BASE + ADC_O_CTL1) = tempCtl;
tempCtl = HWREG(ADC_BASE + ADC_O_CTL1);

/* Trigger a conversion */
HWREG(ADC_BASE + ADC_O_CTL1) |= ADC_CTL1_SC_START;
}

and picture from memory browser.

Thanks and best regards