SAMC21 clock setup with CMSIS

1 post / 0 new
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have been doing a microcontroller course on Udemy that focuses on CMSIS.  I currently use ASF3 but would like to use more CMSIS code since I feel it will be more "future proof" as Microchip seems to be heading new development towards Start (which I don't care for) as opposed to ASF3.  I have been pretty successful but can't seem to figure out setting up clocks.  The current configuration I have is 48Mhz bus via the DPLL and external 32K oscillator.  Does anyone have any working code examples you would be wiling to share?  I am using the SAMC21 but I'm sure any M0+ would be similar.  Thanks.