How to enable system clock, bus clock on MKE02Z64

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

How to enable system clock, bus clock on MKE02Z64

987 次查看
ad_d
Contributor I

I have already working hourmeter application on MKE02Z64 for our application.

Forhourmeter I am using RTC and using "

#define RTC_CLKSRC_1KHZ             1/*!< select LPO as RTC clock source  */

I am trying to add new feature, utilizing the PWM of the system and ADC.

For PWM want to use system clock and ADC wants to use bus clock.

I am trying to use FRDM board demo code for all this modified for my applicaiton.

Please can someone help me in checking the settings for clock.

My software is halting at default_isr.

Thanks,

AD

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

836 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Arti D,

    The system clock and bus clock is enabled in default.

    Do you mean how to choose bus clock as the ADC clock source?

    Actually, you can refer to the FRDM-KE02 sample code:

FRDM-KEXX Driver Library Package

    You can refer to KEXX_DRIVERS_V1.2.1_DEVD\kexx_drv_lib\build\iar\ke02\ADC_Int_demo, this code is using the bus clock as the ADC clock source.

ADC_SC3[ADICLK]=00  : bus clock.

  About the problem of default_isr, did you debug it step by step? which code will caused it? you can post your code, it will help us to check it.


Have a great day,
Jingjing

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

0 项奖励
回复