How read the system clock on a mke04z8vtg

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

How read the system clock on a mke04z8vtg

909 Views
anto
Contributor II

is the first time you use mke04z8vt. I have set the internal clock so FEI, I would like to know which registry read to know exactly which is the clock frequency of system (ICSOUTCLK)

0 Kudos
5 Replies

664 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Antonello Stella,

After you configure the KE04 work in the FEI mode, the ICSOUT formula is illustrated as below.

2016-03-09_14-10-53.jpg

Hope it helps.
Have a great day,
Ping

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

0 Kudos

664 Views
anto
Contributor II

Hi eremyzhou,There is an error in your answer. I read the reference manual ,"KE04 Sub-Family Reference ManualSupports: MKE04Z8VTG4(R)", the FEI mode, the internal oscillator frequency is multiplied by 1280 see page 269.So (37.5k x 1280 ) / 2 (default division) = 24MHz.On page 274 there is a sample 20.5.1.1 TO SET THE FREQUENCY 36MHzICS_C2 = 0X00ICS_C1 = 0x04ICS_C3 = TRIM_VALUE_35.15625but applying the formula the result is wrong.Can you explain exactly how the procedure worksThere is a way to read the frequency of system on one pin of the microthank you

-


Messaggio originale----

Da: jeremyzhou <admin@community.freescale.com>

Data: 09/03/2016 7.13

A: "Antonello Stella"<microlab.l@libero.it>

Ogg: Re: - How read the system clock on a mke04z8vtg

a

body {

font-family: Helvetica, Arial, sans-serif;

-webkit-text-size-adjust: 100%;

}

h1, h2, h3, h4, h5, h6, p, hr {

-webkit-margin-before: 0;

-webkit-margin-after: 0;

-webkit-margin-start: 0;

-webkit-margin-end: 0;

}

.button td {

background-image: -moz-linear-gradient(top, #75B7E3 0%, #5498D6 50%, #408BD0 51%, #387AC8 100%) !important;

background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#75B7E3), color-stop(50%,#5498D6), color-stop(51%,#408BD0), color-stop(100%,#387AC8)) !important;

-webkit-box-shadow: inset 0 1px 0 #74b9de, 0 1px 3px rgba(0,0,0,.3) !important;

-moz-box-shadow: inset 0 1px 0 #74b9de, 0 1px 3px rgba(0,0,0,.3) !important;

}

-->

NXP Community

How read the system clock on a mke04z8vtg

reply from jeremyzhou in Kinetis Microcontrollers - View the full discussion

Hi Antonello Stella,

After you configure the KE04 work in the FEI mode, the ICSOUT formula is illustrated as below.

Hope it helps.

Have a great day,

Ping

0 Kudos

664 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Antonello Stella,

You're right, I made a mistake.

The FLL locks the frequency to 1280 times the internal or external reference frequency, and I've corrected the formula.

Sorry for bringing any inconveniences for you.

2016-03-10_11-13-36.jpg
Have a great day,
Ping

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

0 Kudos

664 Views
anto
Contributor II

Hi eremyzhou,

On page 274 there is a sample 20.5.1.1 TO SET THE FREQUENCY 36MHzICS_C2 = 0X00ICS_C1 = 0x04ICS_C3 = TRIM_VALUE_35.15625but applying the formula the result is wrong.Can you explain exactly how the procedure worksThere is a way to read the frequency of system on one pin of the microthank you

-


Messaggio originale----

Da: jeremyzhou <admin@community.freescale.com>

Data: 10/03/2016 4.33

A: "Antonello Stella"<microlab.l@libero.it>

Ogg: Re: - How read the system clock on a mke04z8vtg

a

body {

font-family: Helvetica, Arial, sans-serif;

-webkit-text-size-adjust: 100%;

}

h1, h2, h3, h4, h5, h6, p, hr {

-webkit-margin-before: 0;

-webkit-margin-after: 0;

-webkit-margin-start: 0;

-webkit-margin-end: 0;

}

.button td {

background-image: -moz-linear-gradient(top, #75B7E3 0%, #5498D6 50%, #408BD0 51%, #387AC8 100%) !important;

background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#75B7E3), color-stop(50%,#5498D6), color-stop(51%,#408BD0), color-stop(100%,#387AC8)) !important;

-webkit-box-shadow: inset 0 1px 0 #74b9de, 0 1px 3px rgba(0,0,0,.3) !important;

-moz-box-shadow: inset 0 1px 0 #74b9de, 0 1px 3px rgba(0,0,0,.3) !important;

}

-->

NXP Community

How read the system clock on a mke04z8vtg

reply from jeremyzhou in Kinetis Microcontrollers - View the full discussion

Hi Antonello Stella,

You're right, I made a mistake.

The FLL locks the frequency to 1280 times the internal or external reference frequency, and I've corrected the formula.

Sorry for bringing any inconveniences for you.

Have a great day,

Ping

0 Kudos

664 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Antonello Stella,

The kind of the code is from KE02's reference manual.

In the KE02, the FLL locks the frequency to 1024 times the internal or external reference frequency, so the code is suited to it.

However for the KE04, the kind of the code is not available and the formula above is correct.
Have a great day,
Ping

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

0 Kudos