Jump to content
43oh

How to change system clock frequency of tiva c launchpad using PLL on energia?


Recommended Posts

Hi Amine,

I don't think there is a way to do that with Energia libraries. You have to use TivaWare libraries.

For that you need to include:

#include <stdint.h>
#include <stdbool.h>
#include "driverlib/pin_map.h"
#include "driverlib/sysctl.c"

and I think I am not missing anything (I don't usually use the compiler that Energia uses).

Then this depends on which launchpad you have. Is it the smaller one? If it is just use:

SysCtlClockSet().

As an example for 80Mhz clock with the PLL, main oscillator with external 16Mhz crystal:

SysCtlClockSet(SYSCTL_SYSDIV_2_5|SYSCTL_USE_PLL|SYSCTL_OSC_MAIN|SYSCTL_XTAL_16MHZ);

For more info check this out:
https://sites.google.com/site/luiselectronicprojects/tutorials/tiva-tutorials/tm4c123-clock
 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...