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.

TMS320F28388D: AdcSetMode() can be called after power up an ADC block ?

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hi experts,

Our ADC initialized code calls  AdcSetMode() after initialization of ADC block.

And we change 12-bit mode and 16-bit mode dynamically on an ADC balock.

In TRM (spruii0c), the initialization is the following sequence.

----------------------------------------------------

20.10 Power-Up Sequence
Upon device power-up or system level reset, the ADC will be powered down and disabled. When powering up
the ADC, use the following sequence:
1. Set the bit to enable the desired ADC clock in the PCLKCR13 register.
2. Set the desired ADC clock divider in the PRESCALE field of ADCCTL2.
3. Power up the ADC by setting the ADCPWDNZ bit in ADCCTL1.
4. Allow a delay before sampling. See the data manual for the necessary time.

----------------------------------------------------

In C2000Ware examples, AdcSetMode() is called between step2 and step3 in ConfigureADC().

It is called before power up ADC blocks.

Does AdcSetMode() need power down to call ?

 

Best regards,

Hidehiko