Skip to content

Instantly share code, notes, and snippets.

@Tony607
Created July 6, 2018 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tony607/8ce3a50d41faff0e10311ba19471c155 to your computer and use it in GitHub Desktop.
Save Tony607/8ce3a50d41faff0e10311ba19471c155 to your computer and use it in GitHub Desktop.
How to run deep learning model on microcontroller with CMSIS-NN (Part 1) | DLology
/******************** PLL Parameters ******************/
/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N
= 8000000 / 8 * 336 = 336MHz*/
// PLL_M = HSE_VALUE (in Hz) / 1MHz = 8000000 / 1000000 = 8
#define PLL_M 8
#define PLL_N 336
/* SYSCLK = PLL_VCO / PLL_P = 336MHz / 2 = 168MHz*/
#define PLL_P 2
/* USB OTG FS, SDIO and RNG Clock = PLL_VCO / PLLQ
= 336MHz / 7 = 48MHz*/
#define PLL_Q 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment