MCUEXpresso Config tool - MKE04Z8 - ADC Clock source selection

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MCUEXpresso Config tool - MKE04Z8 - ADC Clock source selection

1,156 次查看
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.

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

931 次查看
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 项奖励
回复

931 次查看
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 项奖励
回复