How do i setup the FB_CLKOUT pin on the MK60dn512z?

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

How do i setup the FB_CLKOUT pin on the MK60dn512z?

Jump to solution
800 Views
jasonscott
Contributor IV

I am currently using the kinetis design studio and am trying to setup the fb_clkout pin.

I am using an external oscillator at 50MHz and was wanting to set the output clock to 50MHz as well.

What are my options?

Thanks for your time,

-Jay

Labels (1)
1 Solution
562 Views
jasonscott
Contributor IV

Okay, finally figured it out....

Here is what I did.

First I made sure that the OSCERCLK clock was set to 50 Mhz.

pastedImage_0.png

Then i went to CPU->External Bus -> Control Pins -> CLKOUT pin.

pastedImage_1.png

After enabling it and setting PTC3....

I went to Clock configurations -> system clocks tab.

pastedImage_2.png

And set the external clock prescaler to 1 and then the FB_CLKOUT was set to 48 Mhz.

Thank you Eric for your assistance and time,

-Jason

View solution in original post

0 Kudos
6 Replies
563 Views
jasonscott
Contributor IV

Okay, finally figured it out....

Here is what I did.

First I made sure that the OSCERCLK clock was set to 50 Mhz.

pastedImage_0.png

Then i went to CPU->External Bus -> Control Pins -> CLKOUT pin.

pastedImage_1.png

After enabling it and setting PTC3....

I went to Clock configurations -> system clocks tab.

pastedImage_2.png

And set the external clock prescaler to 1 and then the FB_CLKOUT was set to 48 Mhz.

Thank you Eric for your assistance and time,

-Jason

0 Kudos
562 Views
ericfoote1
NXP Employee
NXP Employee

Jason,

Do you know which version of the SDK you are using? That is a good starting point.

The default installation folder is C:\Freescale\SDK_x.x_...

The path to getting your CLKOUT properly muxed is dependent on which version of the SDK you're using.

Best,

Eric

0 Kudos
562 Views
jasonscott
Contributor IV

Hi Eric,

I am using version 3.20 of the kinetis design studio.

I have assigned the cpu component MK60DN512ZVLQ10.

In the processor expert I have my system Oscillator settings set to the following...

pastedImage_0.png

I also have been referencing this manual to do majority of my research...

http://cache.freescale.com/files/32bit/doc/ref_manual/K60P144M100SF2RM.pdf

However, the SIM_SOPT2 register that you mentioned above is different.

I will admit that this is my first ever experience with the KDS and I am at a huge learning disadvantage.

Thanks for your time,

-Jason

0 Kudos
562 Views
ericfoote1
NXP Employee
NXP Employee

Jay,

Which version of the KSDK are you using?

According to the reference manual for your board, the CLKOUT pin is PTC3, MUX option 5.

legend.PNG

pin_mux.PNG

First enable the clock for PORTC:

     CLOCK_EnableClock(kCLOCK_PortC);

Then set the Mux option to 5:

     PORT_SetPinMux(PORTC, 3U, kPORT_MuxAlt5);

Next, you will need to which clock signal is sent to the CLKOUT pin. This can be done by modifying the CLKOUTSEL bits in the SIM_SOPT2 register:

clkoutsel.PNG

clkoutselect.PNG

I am using KSDK 2.0, and so I would set this bit like this if I wanted to select the OSCERCLK0:

SIM->SOPT2 |= 0x000000D0;

Once these bits get set, the signal should appear on PTC3.

To reiterate, the three steps are to enable the clock for PortC, configure the mux options for the CLKOUT pin, PTC3, and to set the CLKOUTSEL bits to the desired clock signal.

Let me know if this helps.

Warm Regards,

Eric

562 Views
jasonscott
Contributor IV

Eric,

Still haven't had much luck on getting this implemented.

I must be missing some included files to be able to use the functions noted in your post.

Do you happen to know of a startup guide or something similar?

Thanks!

-Jay

0 Kudos
562 Views
jasonscott
Contributor IV

Hi Eric,

Thank you so much for your response.

I am currently using version 3.0 of the KDS software.

I was trying to look for a component to setup the clock output pin and didn't realize that your steps were an option.

I am trying your strategy now, and will let you know how it goes.

I appreciate your time!

-Jay

0 Kudos