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.

HALCoGen 03.03.01 code generated for ADC (minor/uncritical issue)

Other Parts Discussed in Thread: HALCOGEN

Hello,

using HALCoGen 03.03.01 to generate a default project/code for

the RM48 HDK hardware get's me this code snippet in

"adc.c" / "void adcInit(void)"

---------------Code snippet---------------

   /** - Setup group 2 sample discharge
    *     - Setup discharge prescaler
    *     - Enable/Disable discharge
    */
    adcREG1->G2SAMPDISEN = 0U << 8U
                         | 0x00000000U;

    /** - Enable ADC module */
    adcREG1->OPMODECR |= 0x80140001U;
---------------Code snippet END----------

In OPMODECR bits for "CHN TEST EN" are set

(invalid though) that are reserved for internal TI usage.

Is there something special/different that was intended ?

Regards

  • eval,

    Sorry for the long delay on responding.

    The CHN TEST EN field should be left at the value of 0xA ... which is the 0x14 in 0x80140010 because it's in bit positions 20:17.
    (1010 = Ah, 1 0100 = 14h). This means the mode that is reserved is disabled. It's not that the field is reserved, it is the mode that is reserved.