Jump to content
43oh

amine

Members
  • Content Count

    2
  • Joined

  • Last visited

Reputation Activity

  1. Like
    amine reacted to igor in How to change system clock frequency of tiva c launchpad using PLL on energia?   
    Depends on the chip family
     
    TM4C1294
     
    SysCtlClockFreqSet
     
    On other family
     
    SysCtlClockSet
     
    These are the library calls in ROM or Tivaware.  If you want to see how to do it directly, look at the source code for those library routines.
  2. Like
    amine reacted to L.R.A in How to change system clock frequency of tiva c launchpad using PLL on energia?   
    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
     
×
×
  • Create New...