SYSTICK register initialization
void SysTIck_ConfiguraTIon(void)
{
if(SysTIck_Config(SystemCoreClock/100))
{
while(1);
}
NVIC_SetPriority(SysTick_IRQn, 0x0);
}
The default clock of SysTick_Config is SysTick_CLKSource_HCLK, so using SysTick_CLKSourceConfig() to select the system clock before this will not change the clock of the systick
static __INLINE uint32_t SysTick_Config(uint32_t ticks)
{
if (ticks > SysTick_LOAD_RELOAD_Msk) return (1);
SysTick->LOAD= (ticks & SysTick_LOAD_RELOAD_Msk) - 1;
NVIC_SetPriority (SysTick_IRQn, (1 << __NVIC_PRIO_BITS) - 1);
SysTick->VAL= 0;
SysTick->CTRL=SysTick_CTRL_CLKSOURCE_Msk |
SysTick_CTRL_TICKINT_Msk|
SysTick_CTRL_ENABLE_Msk;
return(0);
}
systick interrupt service routine
void SysTick_Handler(void)
{
systime++;
}
delay program
void delay_ms (unsigned int ms)
{
unsigned int temp;
temp = systime;
while((systime - temp) < ms);
}
void SysTick_CLKSourceConfig (uint32_t SysTick_CLKSource) is defined in the misc.c file
static __INLINE uint32_t SysTick_Config (uint32_t ticks) defined in core_cm3.h
Polycrystalline sillicon (also called: polysilicon, poly crystal, poly-Si or also: multi-Si, mc-Si) are manufactured from cast square ingots, produced by cooling and solidifying molten silicon. The liquid silicon is poured into blocks which are cut into thin plates. The solidification of the material results into cells that contain many crystals, making the surface of the poly-Si/ mc-Si cell less perfect than its mono-Si counterpart. Due to these defects, polycrystalline cells absorb less solar energy, produce consequently less electricity and are thus less efficient than monocrystalline silicon (mono-Si) cells. Due to their slightly lower efficiency, poly-Si/ mc-Si cells are conventionally a bit larger, resulting in comparably larger PV modules, too. This factor has to be considered if space is limited. Nevertheless, the advantage of poly-Si/ mc-Si cells is that they are easier and thus cheaper to produce.
Poly Solar Cell,Solar Photovoltaic Cell,Most Efficient Solar Cell,Polycrystalline Solar Cells
Wuxi Sunket New Energy Technology Co.,Ltd , https://www.sunketsolar.com