How to enable system clock, bus clock on MKE02Z64

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

How to enable system clock, bus clock on MKE02Z64

625 Views
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

Labels (1)
Tags (2)
0 Kudos
Reply
1 Reply

474 Views
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 Kudos
Reply