Using MCUXpresso Config tool Ver 4.1
MKE04Z8xxx4.mex
ADC Clock input question:-
(No external crystal used)
How do I set the ADC clock input to using the Bus clock?
It defaults to using the inactive OSCERCLK (OSCCLK)
Sample MKE04Z8xxx4 adc clock set.mex file attached.
Hi,
It is same with my test result.
So far, the MCUXpresso Config Tool doesn't support KE04 with [Peripheral] config.
Customer need to use code to select the clock source, default use bus clock.
Wish it helps.
Have a great day,
Mike
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Yes, this is right.
User have these options (please see comments for connection to the appropriate clock source):
typedef enum _adc_clock_source
{
kADC_ClockSourceAlt0 = 0U, /*!< Bus clock. >*/ - default as well as after reset state taken from RM.
kADC_ClockSourceAlt1 = 1U, /*!< Bus clock divided by 2. >*/
kADC_ClockSourceAlt2 = 2U, /*!< Alternate clock (ALTCLK). >*/
kADC_ClockSourceAlt3 = 3U, /*!< Asynchronous clock (ADACK). >*/
} adc_clock_source_t;
where ALTCLK = OSCERCLK;
and ADACK is internal clock source inside ADC block with frequency taken from datasheet MKE04P24M48SF0.pdf page 24:
Have a nice day
Jiri