MCUEXpresso Config tool - MKE04Z8 - ADC Clock source selection

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUEXpresso Config tool - MKE04Z8 - ADC Clock source selection

935 Views
george_ch
Contributor II

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.

Labels (1)
0 Kudos
2 Replies

710 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

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.

pastedImage_1.png

Wish it helps.


Have a great day,
Mike

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

710 Views
jch
NXP Employee
NXP Employee

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:

pastedImage_2.png

Have a nice day

Jiri

0 Kudos