using kinetis l series with internal oscillator

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

using kinetis l series with internal oscillator

Jump to solution
1,723 Views
okaner
Contributor III

Hi all,

       I want to start using "MKL04Z32VFM4". I have used kinetis k series before. I have 2 question before design PCB. If anyone help me, I appreciate.

1) Is it possible to use 4mhz fast internal oscillator as system clock.

2) I want to use UART module at 1000000 (1Mbaud). is UART module of this MCU capable of running this baud rate.

- I used PE to use internal fast oscillator and setting uart to 1Mbaud, I did not faced with problem. I just want to get confirm before designing PCB.

Thank you...

Labels (1)
1 Solution
988 Views
perlam_i_au
Senior Contributor I

Dear Okan ERCAN:

For your first question I guess you are ask because of the 4MHz IRC internal generator on the MCG, in this case you cannot use this clock directly as system clock, please see on the clocking diagram, if you want to have a system clock you should configure which Input signal you want for MCGOUTCLK and then configure OUTDIV1 and CG to get the specific system clock frequency you want.

clockingKL04.JPG.jpg

For UART case you will notice that formula to calculate bad rate not only depends of the clock source for UART module, you should also consider OSR (UART0_C4[OSR]) and SBR (UART0_BDH[SBR] and UART0_BDL) values, as is described on the formula:

Baud Rate = Module clock / ((OSR+1) x SBR)

You need to consider all these parameters to verify if you could achieve a specific baud rate, based on the frequencies normally used on this module the common used baud rates (like the ones in the baud rate list on the hyperterminal) could be achieved, please also verify which module clock have you selected.

UARTcloking source.JPG.jpg

Regard PCB design I will recommend you the AN4747, EMC Design Tips for Kinetis L Family I hope you could  find interesting information here.


Have a nice day,
Perla Moncada

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

View solution in original post

0 Kudos
4 Replies
989 Views
perlam_i_au
Senior Contributor I

Dear Okan ERCAN:

For your first question I guess you are ask because of the 4MHz IRC internal generator on the MCG, in this case you cannot use this clock directly as system clock, please see on the clocking diagram, if you want to have a system clock you should configure which Input signal you want for MCGOUTCLK and then configure OUTDIV1 and CG to get the specific system clock frequency you want.

clockingKL04.JPG.jpg

For UART case you will notice that formula to calculate bad rate not only depends of the clock source for UART module, you should also consider OSR (UART0_C4[OSR]) and SBR (UART0_BDH[SBR] and UART0_BDL) values, as is described on the formula:

Baud Rate = Module clock / ((OSR+1) x SBR)

You need to consider all these parameters to verify if you could achieve a specific baud rate, based on the frequencies normally used on this module the common used baud rates (like the ones in the baud rate list on the hyperterminal) could be achieved, please also verify which module clock have you selected.

UARTcloking source.JPG.jpg

Regard PCB design I will recommend you the AN4747, EMC Design Tips for Kinetis L Family I hope you could  find interesting information here.


Have a nice day,
Perla Moncada

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

0 Kudos
988 Views
okaner
Contributor III

Many tanks to both of you. I will also reply the results after I produce my PCB. I will use Kinetis L series for our touch buttons in smart home system. I used K series as a main server. But it would be good if we change it with a more powerful MCU and MAC57Dxxx MCUs perfectly fits for my requirements . So I really wonder, when does MAC57Dxxx MCUs become available. Is there any estimated date, thank you all...

0 Kudos
988 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Okan,

Thanks for your reply.

Regarding to the MAC57Dxxx's final launching time, I also don't know and can't provide any estimated date.

Thank you for understanding.


Have a great day,
Ping

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

0 Kudos
988 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Okan

Thank you very much for your focus on Freescale Kinetis product. I am glad to provide service for you.

After read KL04's reference manual, I'm sure that your assumption could work out.

If you have any other questions, please feel free to contact with me.

Have a great day.

Ping


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